feat(asm): PCALIGN alignment on amd64

Assisted-by: GLM 5.3 Flash
This commit is contained in:
2026-09-21 22:00:30 +02:00
parent 82ef289d3a
commit 2c9042d62c
3 changed files with 88 additions and 7 deletions
+9
View File
@@ -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