- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for XCHGL (0.02 sec)
-
test/codegen/issue31618.go
// Make sure we remove both inline marks in the following code. // Both +5 and +6 should map to real instructions, which can // be used as inline marks instead of explicit nops. func f(x int) int { // amd64:-"XCHGL" x = g(x) + 5 // amd64:-"XCHGL" x = g(x) + 6 return x } func g(x int) int { return x >> 3
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 23 17:39:11 UTC 2019 - 504 bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_386.s
MOVL AX, ret_lo+12(FP) MOVL DX, ret_hi+16(FP) RET TEXT ·StorepNoWB(SB), NOSPLIT, $0-8 MOVL ptr+0(FP), BX MOVL val+4(FP), AX XCHGL AX, 0(BX) RET TEXT ·Store(SB), NOSPLIT, $0-8 MOVL ptr+0(FP), BX MOVL val+4(FP), AX XCHGL AX, 0(BX) RET TEXT ·StoreRel(SB), NOSPLIT, $0-8 JMP ·Store(SB) TEXT ·StoreReluintptr(SB), NOSPLIT, $0-8 JMP ·Store(SB)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 6.5K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_amd64.s
JMP ·Xadd64(SB) // uint32 Xchg(ptr *uint32, new uint32) // Atomically: // old := *ptr; // *ptr = new; // return old; TEXT ·Xchg(SB), NOSPLIT, $0-20 MOVQ ptr+0(FP), BX MOVL new+8(FP), AX XCHGL AX, 0(BX) MOVL AX, ret+16(FP) RET // uint64 Xchg64(ptr *uint64, new uint64) // Atomically: // old := *ptr; // *ptr = new; // return old; TEXT ·Xchg64(SB), NOSPLIT, $0-24 MOVQ ptr+0(FP), BX
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 5.2K bytes - Viewed (0)