test:asmFull function test

This commit is contained in:
luoliwoshang
2025-08-21 11:04:03 +08:00
parent 9dfc6d1d52
commit b428a8af08
3 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package main
import (
"fmt"
)
//llgo:link asmFull llgo.asm
func asmFull(instruction string, regs map[string]any) uintptr { return 0 }
var testVar = 0
func main() {
verify()
}
func check(expected, actual int) {
if expected != actual {
panic(fmt.Sprintf("Expected: %d, Got: %d\n", expected, actual))
}
fmt.Println("asm check passed:", actual)
}