summaryrefslogtreecommitdiff
path: root/test/llvm_autogenerated
diff options
context:
space:
mode:
Diffstat (limited to 'test/llvm_autogenerated')
-rw-r--r--test/llvm_autogenerated/cfg-stackify.s131
-rw-r--r--test/llvm_autogenerated/cfg-stackify.wast12
-rw-r--r--test/llvm_autogenerated/dead-vreg.s8
-rw-r--r--test/llvm_autogenerated/fast-isel-noreg.s2
-rw-r--r--test/llvm_autogenerated/func.s2
-rw-r--r--test/llvm_autogenerated/irreducible-cfg.s40
-rw-r--r--test/llvm_autogenerated/lower-em-ehsjlj-options.s4
-rw-r--r--test/llvm_autogenerated/mem-intrinsics.s12
-rw-r--r--test/llvm_autogenerated/negative-base-reg.s2
-rw-r--r--test/llvm_autogenerated/phi.s4
-rw-r--r--test/llvm_autogenerated/reg-stackify.s14
-rw-r--r--test/llvm_autogenerated/return-int32.s2
-rw-r--r--test/llvm_autogenerated/return-void.s2
-rw-r--r--test/llvm_autogenerated/switch.s28
-rw-r--r--test/llvm_autogenerated/userstack.s2
-rw-r--r--test/llvm_autogenerated/varargs.s2
16 files changed, 135 insertions, 132 deletions
diff --git a/test/llvm_autogenerated/cfg-stackify.s b/test/llvm_autogenerated/cfg-stackify.s
index 4ddeb1a15..2a6727f31 100644
--- a/test/llvm_autogenerated/cfg-stackify.s
+++ b/test/llvm_autogenerated/cfg-stackify.s
@@ -7,8 +7,8 @@ test0:
.local i32
i32.const $1=, 1
.LBB0_1:
- loop
- block
+ loop
+ block
i32.lt_s $push0=, $1, $0
br_if 0, $pop0
return
@@ -31,8 +31,8 @@ test1:
.local i32
i32.const $1=, 1
.LBB1_1:
- loop
- block
+ loop
+ block
i32.lt_s $push0=, $1, $0
br_if 0, $pop0
return
@@ -52,12 +52,12 @@ test1:
.type test2,@function
test2:
.param i32, i32
- block
+ block
i32.const $push0=, 1
i32.lt_s $push1=, $1, $pop0
br_if 0, $pop1
.LBB2_2:
- loop
+ loop
f64.load $push2=, 0($0)
f64.const $push8=, 0x1.999999999999ap1
f64.mul $push3=, $pop2, $pop8
@@ -83,8 +83,8 @@ doublediamond:
.result i32
i32.const $push0=, 0
i32.store 0($2), $pop0
- block
- block
+ block
+ block
br_if 0, $0
i32.const $push4=, 1
i32.store 0($2), $pop4
@@ -93,7 +93,7 @@ doublediamond:
end_block
i32.const $push1=, 2
i32.store 0($2), $pop1
- block
+ block
br_if 0, $1
i32.const $push3=, 3
i32.store 0($2), $pop3
@@ -119,7 +119,7 @@ triangle:
.result i32
i32.const $push2=, 0
i32.store 0($0), $pop2
- block
+ block
br_if 0, $1
i32.const $push0=, 1
i32.store 0($0), $pop0
@@ -140,8 +140,8 @@ diamond:
.result i32
i32.const $push0=, 0
i32.store 0($0), $pop0
- block
- block
+ block
+ block
br_if 0, $1
i32.const $push2=, 1
i32.store 0($0), $pop2
@@ -177,10 +177,11 @@ single_block:
.type minimal_loop,@function
minimal_loop:
.param i32
+ .result i32
i32.const $push0=, 0
i32.store 0($0), $pop0
.LBB7_1:
- loop
+ loop i32
i32.const $push1=, 1
i32.store 0($0), $pop1
br 0
@@ -198,7 +199,7 @@ simple_loop:
i32.const $push0=, 0
i32.store 0($0), $pop0
.LBB8_1:
- loop
+ loop
i32.const $push3=, 1
i32.store 0($0), $pop3
i32.eqz $push4=, $1
@@ -219,11 +220,11 @@ doubletriangle:
.result i32
i32.const $push4=, 0
i32.store 0($2), $pop4
- block
+ block
br_if 0, $0
i32.const $push0=, 2
i32.store 0($2), $pop0
- block
+ block
br_if 0, $1
i32.const $push1=, 3
i32.store 0($2), $pop1
@@ -248,8 +249,8 @@ ifelse_earlyexits:
.result i32
i32.const $push0=, 0
i32.store 0($2), $pop0
- block
- block
+ block
+ block
br_if 0, $0
i32.const $push3=, 1
i32.store 0($2), $pop3
@@ -275,11 +276,12 @@ ifelse_earlyexits:
.type doublediamond_in_a_loop,@function
doublediamond_in_a_loop:
.param i32, i32, i32
+ .result i32
.LBB11_1:
- loop
+ loop i32
i32.const $push0=, 0
i32.store 0($2), $pop0
- block
+ block
br_if 0, $0
i32.const $push2=, 1
i32.store 0($2), $pop2
@@ -290,7 +292,7 @@ doublediamond_in_a_loop:
end_block
i32.const $push3=, 2
i32.store 0($2), $pop3
- block
+ block
br_if 0, $1
i32.const $push5=, 3
i32.store 0($2), $pop5
@@ -314,16 +316,16 @@ doublediamond_in_a_loop:
.type test3,@function
test3:
.param i32
- block
+ block
i32.const $push0=, 0
br_if 0, $pop0
i32.eq $0=, $0, $0
.LBB12_2:
- block
- loop
+ block
+ loop
br_if 1, $0
.LBB12_3:
- loop
+ loop
i32.eqz $push1=, $0
br_if 0, $pop1
end_loop
@@ -344,8 +346,8 @@ test3:
.type test4,@function
test4:
.param i32
- block
- block
+ block
+ block
i32.const $push0=, 3
i32.gt_s $push1=, $0, $pop0
br_if 0, $pop1
@@ -356,7 +358,7 @@ test4:
br 1
.LBB13_3:
end_block
- block
+ block
i32.const $push2=, 4
i32.eq $push3=, $0, $pop2
br_if 0, $pop3
@@ -382,8 +384,8 @@ test5:
i32.const $push4=, 1
i32.and $1=, $1, $pop4
.LBB14_1:
- block
- loop
+ block
+ loop
i32.const $push7=, 0
i32.const $push6=, 0
i32.store 0($pop7), $pop6
@@ -416,9 +418,9 @@ test6:
i32.const $push6=, 1
i32.and $2=, $0, $pop6
.LBB15_1:
- block
- block
- loop
+ block
+ block
+ loop
i32.const $push8=, 0
i32.const $push7=, 0
i32.store 0($pop8), $pop7
@@ -466,11 +468,11 @@ test7:
i32.const $push6=, 1
i32.and $0=, $0, $pop6
.LBB16_1:
- loop
+ loop
i32.const $push10=, 0
i32.const $push9=, 1
i32.store 0($pop10), $pop9
- block
+ block
br_if 0, $0
i32.const $push13=, 0
i32.const $push12=, 2
@@ -502,8 +504,9 @@ test7:
.globl test8
.type test8,@function
test8:
+ .result i32
.LBB17_1:
- loop
+ loop i32
i32.const $push0=, 0
br_if 0, $pop0
br 0
@@ -520,8 +523,8 @@ test9:
i32.const $push10=, 0
i32.store 0($pop11), $pop10
.LBB18_1:
- block
- loop
+ block
+ loop
i32.const $push14=, 0
i32.const $push13=, 1
i32.store 0($pop14), $pop13
@@ -531,11 +534,11 @@ test9:
i32.eqz $push24=, $pop1
br_if 1, $pop24
.LBB18_2:
- loop
+ loop
i32.const $push17=, 0
i32.const $push16=, 2
i32.store 0($pop17), $pop16
- block
+ block
i32.call $push4=, a@FUNCTION
i32.const $push15=, 1
i32.and $push5=, $pop4, $pop15
@@ -579,7 +582,7 @@ test10:
.local i32, i32, i32, i32, i32
i32.const $0=, 2
.LBB19_1:
- loop
+ loop
copy_local $2=, $1
copy_local $3=, $0
i32.const $1=, 0
@@ -587,18 +590,18 @@ test10:
br_if 0, $2
i32.const $2=, 4
.LBB19_3:
- block
- loop
+ block
+ loop
copy_local $4=, $3
copy_local $3=, $2
.LBB19_4:
- loop
+ loop
copy_local $push3=, $4
tee_local $push2=, $2=, $pop3
i32.const $push1=, 4
i32.gt_u $push0=, $pop2, $pop1
br_if 3, $pop0
- block
+ block
copy_local $4=, $3
br_table $2, 1, 0, 4, 2, 3, 1
.LBB19_6:
@@ -622,16 +625,16 @@ test11:
i32.const $push14=, 0
i32.const $push13=, 0
i32.store 0($pop14), $pop13
- block
- block
- block
- block
+ block
+ block
+ block
+ block
i32.const $push12=, 0
br_if 0, $pop12
i32.const $push16=, 0
i32.const $push5=, 1
i32.store 0($pop16), $pop5
- block
+ block
i32.const $push15=, 0
br_if 0, $pop15
i32.const $push7=, 0
@@ -686,10 +689,10 @@ test12:
.param i32
.local i32
.LBB21_1:
- block
- loop
- block
- block
+ block
+ loop
+ block
+ block
i32.load8_u $push7=, 0($0)
tee_local $push6=, $1=, $pop7
i32.const $push5=, 103
@@ -727,12 +730,12 @@ test12:
.type test13,@function
test13:
.local i32
- block
- block
+ block
+ block
i32.const $push0=, 0
br_if 0, $pop0
i32.const $0=, 0
- block
+ block
i32.const $push3=, 0
br_if 0, $pop3
i32.const $0=, 0
@@ -756,12 +759,12 @@ test13:
.type test14,@function
test14:
.LBB23_1:
- loop
+ loop
i32.const $push0=, 0
br_if 0, $pop0
end_loop
.LBB23_3:
- loop
+ loop
i32.const $push1=, 0
br_if 0, $pop1
end_loop
@@ -774,15 +777,15 @@ test14:
.type test15,@function
test15:
.local i32, i32
- block
- block
+ block
+ block
i32.const $push0=, 1
br_if 0, $pop0
i32.const $0=, 0
.LBB24_2:
- block
- block
- loop
+ block
+ block
+ loop
i32.const $push1=, 1
br_if 1, $pop1
i32.const $1=, 0
diff --git a/test/llvm_autogenerated/cfg-stackify.wast b/test/llvm_autogenerated/cfg-stackify.wast
index a0627c585..de3fbba9c 100644
--- a/test/llvm_autogenerated/cfg-stackify.wast
+++ b/test/llvm_autogenerated/cfg-stackify.wast
@@ -225,12 +225,12 @@
(i32.const 0)
)
)
- (func $minimal_loop (param $0 i32)
+ (func $minimal_loop (param $0 i32) (result i32)
(i32.store
(get_local $0)
(i32.const 0)
)
- (loop $label$0
+ (loop $label$0 i32
(i32.store
(get_local $0)
(i32.const 1)
@@ -333,8 +333,8 @@
(i32.const 0)
)
)
- (func $doublediamond_in_a_loop (param $0 i32) (param $1 i32) (param $2 i32)
- (loop $label$0
+ (func $doublediamond_in_a_loop (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (loop $label$0 i32
(i32.store
(get_local $2)
(i32.const 0)
@@ -609,8 +609,8 @@
)
(unreachable)
)
- (func $test8
- (loop $label$0
+ (func $test8 (result i32)
+ (loop $label$0 i32
(br_if $label$0
(i32.const 0)
)
diff --git a/test/llvm_autogenerated/dead-vreg.s b/test/llvm_autogenerated/dead-vreg.s
index ddd94176b..db0e73d20 100644
--- a/test/llvm_autogenerated/dead-vreg.s
+++ b/test/llvm_autogenerated/dead-vreg.s
@@ -5,7 +5,7 @@
foo:
.param i32, i32, i32
.local i32, i32, i32, i32, i32, i32
- block
+ block
i32.const $push3=, 1
i32.lt_s $push0=, $2, $pop3
br_if 0, $pop0
@@ -15,14 +15,14 @@ foo:
i32.const $push4=, 1
i32.lt_s $4=, $1, $pop4
.LBB0_2:
- loop
- block
+ loop
+ block
br_if 0, $4
i32.const $6=, 0
copy_local $7=, $0
copy_local $8=, $1
.LBB0_4:
- loop
+ loop
i32.store 0($7), $6
i32.add $6=, $6, $5
i32.const $push8=, 4
diff --git a/test/llvm_autogenerated/fast-isel-noreg.s b/test/llvm_autogenerated/fast-isel-noreg.s
index f875e5a15..1cf0dbbc6 100644
--- a/test/llvm_autogenerated/fast-isel-noreg.s
+++ b/test/llvm_autogenerated/fast-isel-noreg.s
@@ -16,7 +16,7 @@ a:
.type b,@function
b:
.result i32
- block
+ block
i32.const $push0=, 1
br_if 0, $pop0
unreachable
diff --git a/test/llvm_autogenerated/func.s b/test/llvm_autogenerated/func.s
index 2f47c5638..ec8cbedfc 100644
--- a/test/llvm_autogenerated/func.s
+++ b/test/llvm_autogenerated/func.s
@@ -43,7 +43,7 @@ f3:
f4:
.param i32
.result i32
- block
+ block
i32.const $push2=, 1
i32.and $push0=, $0, $pop2
i32.eqz $push4=, $pop0
diff --git a/test/llvm_autogenerated/irreducible-cfg.s b/test/llvm_autogenerated/irreducible-cfg.s
index dad5a409a..9cecc7b3e 100644
--- a/test/llvm_autogenerated/irreducible-cfg.s
+++ b/test/llvm_autogenerated/irreducible-cfg.s
@@ -6,8 +6,8 @@ test0:
.param i32, i32, i32, i32
.local f64, i32, i32
i32.const $5=, 0
- block
- block
+ block
+ block
i32.eqz $push18=, $2
br_if 0, $pop18
i32.const $push0=, 3
@@ -21,13 +21,13 @@ test0:
i32.const $6=, 1
.LBB0_4:
end_block
- loop
- block
- block
- block
- block
- block
- block
+ loop
+ block
+ block
+ block
+ block
+ block
+ block
br_table $6, 2, 0, 3, 1, 1
.LBB0_5:
end_block
@@ -82,8 +82,8 @@ test1:
.param i32, i32, i32, i32
.local f64, i32, i32
i32.const $5=, 0
- block
- block
+ block
+ block
i32.eqz $push23=, $2
br_if 0, $pop23
i32.const $push0=, 3
@@ -97,15 +97,15 @@ test1:
i32.const $6=, 1
.LBB1_4:
end_block
- loop
- block
- block
- block
- block
- block
- block
- block
- block
+ loop
+ block
+ block
+ block
+ block
+ block
+ block
+ block
+ block
br_table $6, 3, 0, 4, 1, 2, 2
.LBB1_5:
end_block
diff --git a/test/llvm_autogenerated/lower-em-ehsjlj-options.s b/test/llvm_autogenerated/lower-em-ehsjlj-options.s
index 7e49b89ce..0c00a2231 100644
--- a/test/llvm_autogenerated/lower-em-ehsjlj-options.s
+++ b/test/llvm_autogenerated/lower-em-ehsjlj-options.s
@@ -16,7 +16,7 @@ exception: # @exception
i32.const $push5=, 0
i32.const $push4=, 0
i32.store __THREW__($pop5), $pop4
- block
+ block
i32.const $push1=, 1
i32.ne $push2=, $0, $pop1
br_if 0, $pop2 # 0: down to label0
@@ -58,7 +58,7 @@ setjmp_longjmp: # @setjmp_longjmp
setThrew: # @setThrew
.param i32, i32
# BB#0: # %entry
- block
+ block
i32.const $push1=, 0
i32.load $push0=, __THREW__($pop1)
br_if 0, $pop0 # 0: down to label1
diff --git a/test/llvm_autogenerated/mem-intrinsics.s b/test/llvm_autogenerated/mem-intrinsics.s
index 3e23e1467..d7047b85c 100644
--- a/test/llvm_autogenerated/mem-intrinsics.s
+++ b/test/llvm_autogenerated/mem-intrinsics.s
@@ -96,9 +96,9 @@ frame_index:
drop_result:
.param i32, i32, i32, i32, i32
.result i32
- block
- block
- block
+ block
+ block
+ block
i32.eqz $push0=, $3
br_if 0, $pop0
i32.call $0=, def@FUNCTION
@@ -125,9 +125,9 @@ drop_result:
tail_dup_to_reuse_result:
.param i32, i32, i32, i32, i32
.result i32
- block
- block
- block
+ block
+ block
+ block
i32.eqz $push1=, $3
br_if 0, $pop1
i32.call $0=, def@FUNCTION
diff --git a/test/llvm_autogenerated/negative-base-reg.s b/test/llvm_autogenerated/negative-base-reg.s
index 2c822a6d6..b3807831c 100644
--- a/test/llvm_autogenerated/negative-base-reg.s
+++ b/test/llvm_autogenerated/negative-base-reg.s
@@ -8,7 +8,7 @@ main:
.local i32
i32.const $0=, -128
.LBB0_1:
- loop
+ loop
i32.const $push6=, args+128
i32.add $push0=, $0, $pop6
i32.const $push5=, 1
diff --git a/test/llvm_autogenerated/phi.s b/test/llvm_autogenerated/phi.s
index 1b81e27b9..20211dddc 100644
--- a/test/llvm_autogenerated/phi.s
+++ b/test/llvm_autogenerated/phi.s
@@ -5,7 +5,7 @@
test0:
.param i32
.result i32
- block
+ block
i32.const $push0=, -1
i32.gt_s $push1=, $0, $pop0
br_if 0, $pop1
@@ -28,7 +28,7 @@ test1:
i32.const $3=, 1
i32.const $4=, 0
.LBB1_1:
- loop
+ loop
copy_local $1=, $2
copy_local $2=, $3
copy_local $3=, $1
diff --git a/test/llvm_autogenerated/reg-stackify.s b/test/llvm_autogenerated/reg-stackify.s
index 13f6025ca..ddf8b4c12 100644
--- a/test/llvm_autogenerated/reg-stackify.s
+++ b/test/llvm_autogenerated/reg-stackify.s
@@ -103,7 +103,7 @@ stack_uses:
.Lfunc_begin7:
.param i32, i32, i32, i32
.result i32
- block
+ block
i32.const $push13=, 1
i32.lt_s $push5=, $0, $pop13
i32.const $push0=, 2
@@ -134,7 +134,7 @@ multiple_uses:
.Lfunc_begin8:
.param i32, i32, i32
.local i32
- block
+ block
i32.load $push3=, 0($2)
tee_local $push2=, $3=, $pop3
i32.ge_u $push0=, $pop2, $1
@@ -291,8 +291,8 @@ multiple_defs:
f64.select $5=, $pop11, $pop9, $pop8
f64.const $7=, 0x0p0
.LBB16_1:
- loop
- block
+ loop
+ block
f64.const $push14=, 0x1.73c083126e979p4
f64.ge $push0=, $7, $pop14
f64.ne $push1=, $7, $7
@@ -300,7 +300,7 @@ multiple_defs:
br_if 0, $pop2
copy_local $8=, $6
.LBB16_3:
- loop
+ loop
f64.const $push20=, -0x1.62cc8f5c28f5cp13
f64.const $push19=, -0x1p0
f64.add $push18=, $7, $pop19
@@ -309,7 +309,7 @@ multiple_defs:
copy_local $push16=, $8
tee_local $push15=, $6=, $pop16
f64.add $8=, $pop4, $pop15
- block
+ block
br_if 0, $3
copy_local $9=, $5
.LBB16_5:
@@ -415,7 +415,7 @@ stackify_indvar:
.local i32
i32.const $2=, 0
.LBB22_1:
- loop
+ loop
i32.load $push0=, 0($1)
i32.add $push1=, $2, $pop0
i32.store 0($1), $pop1
diff --git a/test/llvm_autogenerated/return-int32.s b/test/llvm_autogenerated/return-int32.s
index 81e1cd02d..80b98b7ff 100644
--- a/test/llvm_autogenerated/return-int32.s
+++ b/test/llvm_autogenerated/return-int32.s
@@ -15,7 +15,7 @@ return_i32:
return_i32_twice:
.param i32
.result i32
- block
+ block
i32.eqz $push6=, $0
br_if 0, $pop6
i32.const $push3=, 0
diff --git a/test/llvm_autogenerated/return-void.s b/test/llvm_autogenerated/return-void.s
index 996470fc4..bb2bcf510 100644
--- a/test/llvm_autogenerated/return-void.s
+++ b/test/llvm_autogenerated/return-void.s
@@ -11,7 +11,7 @@ return_void:
.type return_void_twice,@function
return_void_twice:
.param i32
- block
+ block
i32.eqz $push4=, $0
br_if 0, $pop4
i32.const $push2=, 0
diff --git a/test/llvm_autogenerated/switch.s b/test/llvm_autogenerated/switch.s
index 4b0b7f20a..d231ac3cc 100644
--- a/test/llvm_autogenerated/switch.s
+++ b/test/llvm_autogenerated/switch.s
@@ -4,16 +4,16 @@
.type bar32,@function
bar32:
.param i32
- block
+ block
i32.const $push0=, 23
i32.gt_u $push1=, $0, $pop0
br_if 0, $pop1
- block
- block
- block
- block
- block
- block
+ block
+ block
+ block
+ block
+ block
+ block
br_table $0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 4, 5, 0
.LBB0_2:
end_block
@@ -49,16 +49,16 @@ bar32:
.type bar64,@function
bar64:
.param i64
- block
+ block
i64.const $push1=, 23
i64.gt_u $push2=, $0, $pop1
br_if 0, $pop2
- block
- block
- block
- block
- block
- block
+ block
+ block
+ block
+ block
+ block
+ block
i32.wrap/i64 $push0=, $0
br_table $pop0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 4, 5, 0
.LBB1_2:
diff --git a/test/llvm_autogenerated/userstack.s b/test/llvm_autogenerated/userstack.s
index 5f45d3208..78647f306 100644
--- a/test/llvm_autogenerated/userstack.s
+++ b/test/llvm_autogenerated/userstack.s
@@ -293,7 +293,7 @@ copytoreg_fi:
i32.const $push6=, 1
i32.and $0=, $0, $pop6
.LBB10_1:
- loop
+ loop
i32.const $push7=, 1
i32.store 0($2), $pop7
copy_local $2=, $1
diff --git a/test/llvm_autogenerated/varargs.s b/test/llvm_autogenerated/varargs.s
index fa04d5923..2ab4aa361 100644
--- a/test/llvm_autogenerated/varargs.s
+++ b/test/llvm_autogenerated/varargs.s
@@ -136,7 +136,7 @@ caller_some:
.type startbb,@function
startbb:
.param i32, i32, i32
- block
+ block
i32.const $push0=, 1
i32.and $push1=, $0, $pop0
i32.eqz $push2=, $pop1