style(testdata): canonicalise forms_amd64.s
Assisted-by: GLM 5.3
This commit is contained in:
Vendored
+22
-21
@@ -1,4 +1,4 @@
|
|||||||
// Kernel: the operand forms the GOROOT campaign surfaced — numeric
|
// Kernel: the operand forms the GOROOT campaign surfaced: numeric
|
||||||
// PC-relative jumps, symbol-immediate materialisation (the toolchain rewrites
|
// PC-relative jumps, symbol-immediate materialisation (the toolchain rewrites
|
||||||
// MOVQ $sym(SB) into a RIP-relative LEA) and the negated constant-expression
|
// MOVQ $sym(SB) into a RIP-relative LEA) and the negated constant-expression
|
||||||
// ADJSP the cgo ABI macros write. Bytes are pinned against go tool asm by
|
// ADJSP the cgo ABI macros write. Bytes are pinned against go tool asm by
|
||||||
@@ -6,47 +6,48 @@
|
|||||||
#include "textflag.h"
|
#include "textflag.h"
|
||||||
|
|
||||||
DATA sd<>(SB)/4, $7
|
DATA sd<>(SB)/4, $7
|
||||||
|
|
||||||
GLOBL sd<>(SB), RODATA, $4
|
GLOBL sd<>(SB), RODATA, $4
|
||||||
|
|
||||||
// func Jumps(flag int64) int64
|
// func Jumps(flag int64) int64
|
||||||
TEXT ·Jumps(SB), NOSPLIT, $0-16
|
TEXT ·Jumps(SB), NOSPLIT, $0-16
|
||||||
MOVQ flag+0(FP), AX
|
MOVQ flag+0(FP), AX
|
||||||
TESTQ AX, AX
|
TESTQ AX, AX
|
||||||
JEQ 2(PC)
|
JEQ 2(PC)
|
||||||
MOVQ $1, AX
|
MOVQ $1, AX
|
||||||
JMP 3(PC)
|
JMP 3(PC)
|
||||||
MOVQ $2, AX
|
MOVQ $2, AX
|
||||||
MOVQ AX, ret+0(FP)
|
MOVQ AX, ret+0(FP)
|
||||||
RET
|
RET
|
||||||
|
|
||||||
// func SymImm() int64
|
// func SymImm() int64
|
||||||
TEXT ·SymImm(SB), NOSPLIT, $0-16
|
TEXT ·SymImm(SB), NOSPLIT, $0-16
|
||||||
MOVQ $sd<>(SB), AX
|
MOVQ $sd<>(SB), AX
|
||||||
MOVQ $·SymImm(SB), CX
|
MOVQ $·SymImm(SB), CX
|
||||||
MOVQ AX, ret+0(FP)
|
MOVQ AX, ret+0(FP)
|
||||||
RET
|
RET
|
||||||
|
|
||||||
// func Frame()
|
// func Frame()
|
||||||
TEXT ·Frame(SB), NOSPLIT, $0
|
TEXT ·Frame(SB), NOSPLIT, $0
|
||||||
PUSHFQ
|
PUSHFQ
|
||||||
CLD
|
CLD
|
||||||
ADJSP $(64 - 8)
|
ADJSP $ (64-8)
|
||||||
ADJSP $-(64 - 8)
|
ADJSP $- (64-8)
|
||||||
POPFQ
|
POPFQ
|
||||||
RET
|
RET
|
||||||
|
|
||||||
// func Tls() int64
|
// func Tls() int64
|
||||||
TEXT ·Tls(SB), NOSPLIT, $0-8
|
TEXT ·Tls(SB), NOSPLIT, $0-8
|
||||||
MOVQ TLS, BX
|
MOVQ TLS, BX
|
||||||
MOVQ 0(BX)(TLS*1), AX
|
MOVQ 0(BX)(TLS*1), AX
|
||||||
MOVQ AX, ret+0(FP)
|
MOVQ AX, ret+0(FP)
|
||||||
RET
|
RET
|
||||||
|
|
||||||
// func Aligned() int64
|
// func Aligned() int64
|
||||||
TEXT ·Aligned(SB), NOSPLIT, $0-8
|
TEXT ·Aligned(SB), NOSPLIT, $0-8
|
||||||
MOVQ $1, AX
|
MOVQ $1, AX
|
||||||
PCALIGN $16
|
PCALIGN $16
|
||||||
MOVQ $2, AX
|
MOVQ $2, AX
|
||||||
PCALIGN $32
|
PCALIGN $32
|
||||||
MOVQ AX, ret+0(FP)
|
MOVQ AX, ret+0(FP)
|
||||||
RET
|
RET
|
||||||
|
|||||||
Reference in New Issue
Block a user