test:linux with leaq to confirm asmFull
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
//go:build darwin
|
//go:build darwin && arm64
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//go:build linux
|
//go:build linux && amd64
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ func verify() {
|
|||||||
})
|
})
|
||||||
check(41, int(res1))
|
check(41, int(res1))
|
||||||
|
|
||||||
res2 := asmFull("movq {a}, {}; addq {b}, {}", map[string]any{
|
res2 := asmFull("leaq ({a},{b}), {}", map[string]any{
|
||||||
"a": 25,
|
"a": 25,
|
||||||
"b": 17,
|
"b": 17,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user