This commit is contained in:
T0b1
2023-04-18 12:21:54 +02:00
commit 0bb8f5c3be
14 changed files with 4993 additions and 0 deletions

11
tests/bad_br.clif Normal file
View File

@@ -0,0 +1,11 @@
function u0:2(i32) -> i32 system_v {
block0(v0: i32):
v1 = iconst.i32 1
v2 = iconst.i32 2
v3 = iconst.i32 3
v4 = iconst.i32 4
br_table v0, block1(v4), [block1(v1), block1(v2), block1(v2), block1(v3)] ; v4 = 4, v1 = 1, v2 = 2, v2 = 2, v3 = 3
block1(v5: i32):
return v5
}