Write a run test for brz.i128;

This commit is contained in:
Benjamin Bouvier
2019-10-02 11:10:19 +02:00
parent e0005f1e6c
commit a9d9f9f135

View File

@@ -0,0 +1,38 @@
test run
target x86_64
function %br_false() -> b1 {
ebb0:
v10 = iconst.i64 0x42
v11 = iconst.i64 0x00
v0 = iconcat v10, v11
brz v0, ebb2
jump ebb1
ebb1:
v1 = bconst.b1 true
return v1
ebb2:
v2 = bconst.b1 false
return v2
}
; run
function %br_true() -> b1 {
ebb0:
v10 = iconst.i64 0x00
v11 = iconst.i64 0x00
v0 = iconcat v10, v11
brz v0, ebb2
jump ebb1
ebb1:
v1 = bconst.b1 false
return v1
ebb2:
v2 = bconst.b1 true
return v2
}
; run