Skip to content

Commit

Permalink
tests/fixedbugs/issue50: fix asmdecl complaint
Browse files Browse the repository at this point in the history
Updates #50
  • Loading branch information
mmcloughlin committed Jan 21, 2019
1 parent 02ecaad commit 4bc8de3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/fixedbugs/issue50/asm.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ func main() {
x := Load(Param("x"), GP32())
xmm := XMM()
MOVQ(x, xmm)
Store(xmm, ReturnIndex(0))
r := GP32()
MOVQ(xmm, r)
Store(r, ReturnIndex(0))
RET()
Generate()
}
3 changes: 2 additions & 1 deletion tests/fixedbugs/issue50/issue50.s
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
TEXT ·Issue50(SB), NOSPLIT, $0-12
MOVL x+0(FP), AX
MOVQ AX, X0
MOVQ X0, ret+8(FP)
MOVQ X0, AX
MOVL AX, ret+8(FP)
RET

0 comments on commit 4bc8de3

Please sign in to comment.