Legalize brz.i128 and brnz.i128

This commit is contained in:
bjorn3
2019-06-29 16:38:53 +02:00
committed by Dan Gohman
parent 83ac6dd4d4
commit 762b5e494b
3 changed files with 54 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
test compile
target x86_64
function u0:0(i128) -> i8 fast {
ebb0(v0: i128):
brz v0, ebb1
v1 = iconst.i8 0
return v1
ebb1:
v2 = iconst.i8 1
return v2
}
function u0:1(i128) -> i8 fast {
ebb0(v0: i128):
brnz v0, ebb1
v1 = iconst.i8 0
return v1
ebb1:
v2 = iconst.i8 1
return v2
}