operand: const types

This commit is contained in:
Michael McLoughlin
2018-12-26 16:42:39 -08:00
parent b3644ec7fc
commit abd300c0e9
7 changed files with 227 additions and 24 deletions

View File

@@ -18,8 +18,8 @@ func TestLivenessBasic(t *testing.T) {
ctx.Function("add")
a := ctx.GP64v()
b := ctx.GP64v()
ctx.MOVQ(operand.Imm(1), a)
ctx.MOVQ(operand.Imm(2), b)
ctx.MOVQ(operand.U64(1), a)
ctx.MOVQ(operand.U64(2), b)
ctx.ADDQ(a, b)
AssertLiveness(t, ctx,