2021-10-29 01:18:34 -07:00
|
|
|
//go:build ignore
|
2019-07-28 17:58:49 -07:00
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
2026-03-06 20:14:02 +00:00
|
|
|
. "sources.truenas.cloud/code/avo/build"
|
|
|
|
|
. "sources.truenas.cloud/code/avo/operand"
|
2019-07-28 17:58:49 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
TEXT("Issue89", NOSPLIT, "func() uint64")
|
|
|
|
|
x := GP64()
|
|
|
|
|
MOVQ(U32(42), x)
|
|
|
|
|
for i := 0; i < 100; i++ {
|
|
|
|
|
zero := GP64()
|
|
|
|
|
XORQ(zero, zero)
|
|
|
|
|
ADDQ(zero, x)
|
|
|
|
|
}
|
|
|
|
|
Store(x, ReturnIndex(0))
|
|
|
|
|
RET()
|
|
|
|
|
Generate()
|
|
|
|
|
}
|