ref: dfa24594cbd5c2e8dee253abf7bd04edc3bb0612
parent: c3c49fcd05049a0f89f84ed1a8ce3c7267ef8a8f
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Fri Nov 13 10:18:56 EST 2020
amd64 builtins: disable profiling
--- a/src/plan9_builtins_amd64.s
+++ b/src/plan9_builtins_amd64.s
@@ -1,13 +1,13 @@
-TEXT __builtin_ctz(SB),$0
+TEXT __builtin_ctz(SB),1,$0
BYTE $0x0F; BYTE $0xBC; BYTE $0xC5 /* BSFL RARG, AX */
RET
-TEXT __builtin_clz(SB),$0
+TEXT __builtin_clz(SB),1,$0
BYTE $0x0F; BYTE $0xBD; BYTE $0xC5 /* BSRL RARG, AX */
XORL $31, AX
RET
-TEXT __builtin_clzll(SB),$0
+TEXT __builtin_clzll(SB),1,$0
BYTE $0x48; BYTE $0x0F; BYTE $0xBD; BYTE $0xC5 /* BSRQ RARG, AX */
XORL $63, AX
RET