Fix x86/br-i128 test case to use basic blocks.

This commit is contained in:
Nicolas B. Pierron
2019-09-11 18:23:13 +02:00
committed by Nicolas B. Pierron
parent 35c6d869f5
commit e8dc9ad8c9

View File

@@ -3,22 +3,28 @@ target x86_64
function u0:0(i128) -> i8 fast { function u0:0(i128) -> i8 fast {
ebb0(v0: i128): ebb0(v0: i128):
brz v0, ebb1 brz v0, ebb2
jump ebb1
ebb1:
v1 = iconst.i8 0 v1 = iconst.i8 0
return v1 return v1
ebb1: ebb2:
v2 = iconst.i8 1 v2 = iconst.i8 1
return v2 return v2
} }
function u0:1(i128) -> i8 fast { function u0:1(i128) -> i8 fast {
ebb0(v0: i128): ebb0(v0: i128):
brnz v0, ebb1 brnz v0, ebb2
jump ebb1
ebb1:
v1 = iconst.i8 0 v1 = iconst.i8 0
return v1 return v1
ebb1: ebb2:
v2 = iconst.i8 1 v2 = iconst.i8 1
return v2 return v2
} }