feat:llgo.Asm

test:asm test with `nop`
This commit is contained in:
luoliwoshang
2025-08-17 13:53:55 +08:00
parent b2c6534c92
commit a148964878
6 changed files with 80 additions and 0 deletions

10
cl/_testrt/asm/in.go Normal file
View File

@@ -0,0 +1,10 @@
package main
import _ "unsafe"
//go:linkname asm llgo.asm
func asm(instruction string)
func main() {
asm("nop")
}