test:linux with leaq to confirm asmFull

This commit is contained in:
luoliwoshang
2025-08-21 14:25:37 +08:00
parent ef1f2bce49
commit d548671b91
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
//go:build darwin
//go:build darwin && arm64
package main

View File

@@ -1,4 +1,4 @@
//go:build linux
//go:build linux && amd64
package main
@@ -22,7 +22,7 @@ func verify() {
})
check(41, int(res1))
res2 := asmFull("movq {a}, {}; addq {b}, {}", map[string]any{
res2 := asmFull("leaq ({a},{b}), {}", map[string]any{
"a": 25,
"b": 17,
})