Parse select instructions.

This commit is contained in:
Jakob Stoklund Olesen
2016-07-05 16:51:26 -07:00
parent 473e708dce
commit f18e5fe0fa
3 changed files with 23 additions and 1 deletions

View File

@@ -12,3 +12,9 @@ ebb0:
v1 = iconst.i8 6
v2 = ishl v0, v1
}
; Polymorphic istruction controlled by second operand.
function select() {
ebb0(vx0: i32, vx1:i32, vx2: b1):
v0 = select vx2, vx0, vx1
}

View File

@@ -9,3 +9,8 @@ ebb0:
v1 = iconst.i8 6
v2 = ishl v0, v1
}
function select() {
ebb0(vx0: i32, vx1: i32, vx2: b1):
v0 = select vx2, vx0, vx1
}