Add support for tied operands.

Include a very basic test using an Intel 'sub' instruction. More to
follow.
This commit is contained in:
Jakob Stoklund Olesen
2017-06-30 13:34:18 -07:00
parent 1a24489a0e
commit 8c60555409
3 changed files with 62 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
test regalloc
isa intel
; regex: V=v\d+
; Tied operands, both are killed at instruction.
function %tied_easy() -> i32 {
ebb0:
v0 = iconst.i32 12
v1 = iconst.i32 13
; not: copy
; check: isub
v2 = isub v0, v1
return v2
}