| 1 | //go:build ignore |
| 2 | |
| 3 | package main |
| 4 | |
| 5 | import . "github.com/mmcloughlin/avo/build" |
| 6 | |
| 7 | func main() { |
| 8 | TEXT("Issue50", NOSPLIT, "func(x uint32) uint32") |
| 9 | Doc( |
| 10 | "Issue50 reported that MOVD/MOVQ was missing the r32, xmm form.", |
| 11 | "This function deliberately exercises this instruction form.", |
| 12 | ) |
| 13 | x := Load(Param("x"), GP32()) |
| 14 | xmm := XMM() |
| 15 | MOVQ(x, xmm) |
| 16 | r := GP32() |
| 17 | MOVQ(xmm, r) |
| 18 | Store(r, ReturnIndex(0)) |
| 19 | RET() |
| 20 | Generate() |
| 21 | } |