feat(asm): PCALIGN alignment on amd64
Assisted-by: GLM 5.3 Flash
This commit is contained in:
Vendored
+9
@@ -41,3 +41,12 @@ TEXT ·Tls(SB), NOSPLIT, $0-8
|
||||
MOVQ 0(BX)(TLS*1), AX
|
||||
MOVQ AX, ret+0(FP)
|
||||
RET
|
||||
|
||||
// func Aligned() int64
|
||||
TEXT ·Aligned(SB), NOSPLIT, $0-8
|
||||
MOVQ $1, AX
|
||||
PCALIGN $16
|
||||
MOVQ $2, AX
|
||||
PCALIGN $32
|
||||
MOVQ AX, ret+0(FP)
|
||||
RET
|
||||
|
||||
Reference in New Issue
Block a user