2021-10-29 01:18:34 -07:00
|
|
|
//go:build ignore
|
2019-01-20 22:32:44 -08:00
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
2026-03-06 20:14:02 +00:00
|
|
|
import . "sources.truenas.cloud/code/avo/build"
|
2019-01-20 22:32:44 -08:00
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
TEXT("Issue50", NOSPLIT, "func(x uint32) uint32")
|
|
|
|
|
Doc(
|
|
|
|
|
"Issue50 reported that MOVD/MOVQ was missing the r32, xmm form.",
|
|
|
|
|
"This function deliberately exercises this instruction form.",
|
|
|
|
|
)
|
|
|
|
|
x := Load(Param("x"), GP32())
|
|
|
|
|
xmm := XMM()
|
|
|
|
|
MOVQ(x, xmm)
|
2019-01-20 23:19:06 -08:00
|
|
|
r := GP32()
|
|
|
|
|
MOVQ(xmm, r)
|
|
|
|
|
Store(r, ReturnIndex(0))
|
2019-01-20 22:32:44 -08:00
|
|
|
RET()
|
|
|
|
|
Generate()
|
|
|
|
|
}
|