feat(asm): symbol-valued DATA, division slash in symbols and plain semicolons
Assisted-by: GLM 5.3 Flash
This commit is contained in:
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
#include "textflag.h"
|
||||
|
||||
// The kernel exercises the U+2215 DIVISION SLASH inside a symbol's package
|
||||
// path: internal∕runtime∕atomic·Xchg, the spelling sync/atomic/asm.s uses.
|
||||
// The middle dot (U+00B7) still separates the package path from the name.
|
||||
|
||||
// func swap(a, b int64) int64
|
||||
TEXT ·swap(SB), NOSPLIT, $0-24
|
||||
MOVD a+0(FP), R4
|
||||
MOVD b+8(FP), R5
|
||||
CALL internal∕runtime∕atomic·Xchg(SB)
|
||||
MOVD R4, ret+16(FP)
|
||||
RET
|
||||
|
||||
// func note() int64
|
||||
TEXT ·note(SB), NOSPLIT, $0-8
|
||||
CALL runtime∕debug·SetGCPercent(SB)
|
||||
MOVD R0, ret+0(FP)
|
||||
RET
|
||||
Reference in New Issue
Block a user