diff options
248 files changed, 5510 insertions, 6287 deletions
diff --git a/test/revision b/test/revision index cd7710527..9444a45e4 100644 --- a/test/revision +++ b/test/revision @@ -1 +1 @@ -6423 +6633 diff --git a/test/s2wasm_known_binaryen_shell_test_failures.txt b/test/s2wasm_known_binaryen_shell_test_failures.txt index 6cd4d7eaa..7351cc448 100644 --- a/test/s2wasm_known_binaryen_shell_test_failures.txt +++ b/test/s2wasm_known_binaryen_shell_test_failures.txt @@ -60,6 +60,7 @@ complex-7.c.s.wast # abort called: the tests are self-validating and call abort when they detect a # failure. This may not be binaryen's fault (the toolchain may be emitting bad # code) but it could be binaryen's fault. +20030125-1.c.s.wast 920612-1.c.s.wast 920625-1.c.s.wast 920711-1.c.s.wast @@ -71,6 +72,7 @@ bcp-1.c.s.wast bitfld-3.c.s.wast builtin-constant.c.s.wast eeprof-1.c.s.wast +frame-address.c.s.wast pr22493-1.c.s.wast pr32244-1.c.s.wast pr34971.c.s.wast @@ -108,6 +110,8 @@ va-arg-pack-1.c.s.wast 960405-1.c.s.wast # __eqtf2 960521-1.c.s.wast # malloc 980506-3.c.s.wast # memset +980707-1.c.s.wast # strcmp +980709-1.c.s.wast # pow 990628-1.c.s.wast # malloc 991112-1.c.s.wast # isprint align-2.c.s.wast # __eqtf2 @@ -143,6 +147,7 @@ pr53688.c.s.wast # memset pr58419.c.s.wast # getpid pr59229.c.s.wast # memcpy printf-1.c.s.wast # isprint +printf-chk-1.c.s.wast # vprintf regstack-1.c.s.wast # __addtf3 strcmp-1.c.s.wast # strcmp strcpy-1.c.s.wast # memset @@ -152,3 +157,6 @@ strncmp-1.c.s.wast # strcmp struct-cpy-1.c.s.wast # memset va-arg-10.c.s.wast # strlen va-arg-22.c.s.wast # memcpy +va-arg-21.c.s.wast # malloc +vprintf-chk-1.c.s.wast # vprintf +vprintf-1.c.s.wast # vprintf diff --git a/test/s2wasm_known_gcc_test_failures.txt b/test/s2wasm_known_gcc_test_failures.txt index e705785e5..b36d482a2 100644 --- a/test/s2wasm_known_gcc_test_failures.txt +++ b/test/s2wasm_known_gcc_test_failures.txt @@ -9,12 +9,8 @@ pr54937.c.s # $exit fprintf-1.c.s gofast.c.s fprintf-chk-1.c.s -printf-chk-1.c.s -va-arg-21.c.s vfprintf-1.c.s vfprintf-chk-1.c.s -vprintf-1.c.s -vprintf-chk-1.c.s # Block address taken. 20071220-1.c.s diff --git a/test/torture-s/20000113-1.c.s b/test/torture-s/20000113-1.c.s index d3ccc4393..7181ffc80 100644 --- a/test/torture-s/20000113-1.c.s +++ b/test/torture-s/20000113-1.c.s @@ -12,9 +12,8 @@ foobar: # @foobar i32.const $push0=, 1 i32.and $push11=, $0, $pop0 tee_local $push10=, $0=, $pop11 - i32.const $push14=, 0 - i32.eq $push15=, $pop10, $pop14 - br_if 0, $pop15 # 0: down to label0 + i32.eqz $push14=, $pop10 + br_if 0, $pop14 # 0: down to label0 # BB#1: # %lor.lhs.false i32.const $push1=, 3 i32.and $push13=, $1, $pop1 diff --git a/test/torture-s/20000412-2.c.s b/test/torture-s/20000412-2.c.s index abdcea406..4cd9b63cf 100644 --- a/test/torture-s/20000412-2.c.s +++ b/test/torture-s/20000412-2.c.s @@ -20,9 +20,8 @@ f: # @f tee_local $push14=, $2=, $pop15 i32.store $push13=, 12($pop14), $0 tee_local $push12=, $0=, $pop13 - i32.const $push16=, 0 - i32.eq $push17=, $pop12, $pop16 - br_if 0, $pop17 # 0: down to label1 + i32.eqz $push16=, $pop12 + br_if 0, $pop16 # 0: down to label1 # BB#1: # %if.end i32.const $push0=, -1 i32.add $push1=, $0, $pop0 diff --git a/test/torture-s/20000801-2.c.s b/test/torture-s/20000801-2.c.s index 79fcba16f..fe6cf8e35 100644 --- a/test/torture-s/20000801-2.c.s +++ b/test/torture-s/20000801-2.c.s @@ -9,9 +9,8 @@ test: # @test .result i32 # BB#0: # %entry block - i32.const $push1=, 0 - i32.eq $push2=, $0, $pop1 - br_if 0, $pop2 # 0: down to label0 + i32.eqz $push1=, $0 + br_if 0, $pop1 # 0: down to label0 .LBB0_1: # %while.body # =>This Inner Loop Header: Depth=1 loop # label1: @@ -58,7 +57,7 @@ baz: # @baz .type main,@function main: # @main .result i32 - .local i32, i32 + .local i32 # BB#0: # %entry i32.const $push5=, __stack_pointer i32.const $push2=, __stack_pointer @@ -66,15 +65,15 @@ main: # @main i32.const $push4=, 16 i32.sub $push10=, $pop3, $pop4 i32.store $push12=, 0($pop5), $pop10 - tee_local $push11=, $1=, $pop12 - i32.const $push6=, 12 - i32.add $push7=, $pop11, $pop6 - copy_local $0=, $pop7 + tee_local $push11=, $0=, $pop12 i32.const $push0=, 0 - i32.store $discard=, 8($1), $pop0 - i32.const $push8=, 8 - i32.add $push9=, $1, $pop8 - i32.store $discard=, 12($1), $pop9 + i32.store $discard=, 8($pop11), $pop0 + i32.const $push6=, 8 + i32.add $push7=, $0, $pop6 + i32.store $discard=, 12($0), $pop7 + i32.const $push8=, 12 + i32.add $push9=, $0, $pop8 + copy_local $0=, $pop9 .LBB3_1: # %while.body.i # =>This Inner Loop Header: Depth=1 loop # label3: diff --git a/test/torture-s/20000815-1.c.s b/test/torture-s/20000815-1.c.s index 91a34d6ba..0c1ab54fb 100644 --- a/test/torture-s/20000815-1.c.s +++ b/test/torture-s/20000815-1.c.s @@ -30,9 +30,8 @@ invalidate_memory: # @invalidate_memory i32.shl $push4=, $3, $pop16 i32.load $push15=, table($pop4) tee_local $push14=, $0=, $pop15 - i32.const $push25=, 0 - i32.eq $push26=, $pop14, $pop25 - br_if 0, $pop26 # 0: down to label3 + i32.eqz $push25=, $pop14 + br_if 0, $pop25 # 0: down to label3 .LBB0_2: # %for.body6 # Parent Loop BB0_1 Depth=1 # => This Inner Loop Header: Depth=2 @@ -45,9 +44,8 @@ invalidate_memory: # @invalidate_memory tee_local $push18=, $4=, $pop19 i32.const $push17=, 255 i32.and $push5=, $pop18, $pop17 - i32.const $push27=, 0 - i32.eq $push28=, $pop5, $pop27 - br_if 0, $pop28 # 0: down to label6 + i32.eqz $push26=, $pop5 + br_if 0, $pop26 # 0: down to label6 # BB#3: # %land.lhs.true # in Loop: Header=BB0_2 Depth=2 br_if 6, $2 # 6: down to label0 @@ -56,9 +54,8 @@ invalidate_memory: # @invalidate_memory i32.const $push22=, 256 i32.lt_u $push8=, $4, $pop22 i32.or $push6=, $1, $pop8 - i32.const $push29=, 0 - i32.eq $push30=, $pop6, $pop29 - br_if 6, $pop30 # 6: down to label0 + i32.eqz $push27=, $pop6 + br_if 6, $pop27 # 6: down to label0 .LBB0_5: # %for.cond5.backedge # in Loop: Header=BB0_2 Depth=2 end_block # label6: @@ -146,9 +143,8 @@ main: # @main block loop # label8: block - i32.const $push33=, 0 - i32.eq $push34=, $2, $pop33 - br_if 0, $pop34 # 0: down to label10 + i32.eqz $push33=, $2 + br_if 0, $pop33 # 0: down to label10 .LBB3_2: # %for.body6.i # Parent Loop BB3_1 Depth=1 # => This Inner Loop Header: Depth=2 diff --git a/test/torture-s/20000910-2.c.s b/test/torture-s/20000910-2.c.s index 4545c7ce6..ec66e724c 100644 --- a/test/torture-s/20000910-2.c.s +++ b/test/torture-s/20000910-2.c.s @@ -13,17 +13,15 @@ main: # @main i32.load $push0=, list($pop7) i32.const $push6=, 42 i32.call $push1=, strchr@FUNCTION, $pop0, $pop6 - i32.const $push10=, 0 - i32.eq $push11=, $pop1, $pop10 - br_if 0, $pop11 # 0: down to label1 + i32.eqz $push10=, $pop1 + br_if 0, $pop10 # 0: down to label1 # BB#1: # %if.then.i i32.const $push9=, 0 i32.load $push2=, list+4($pop9) i32.const $push8=, 42 i32.call $push3=, strchr@FUNCTION, $pop2, $pop8 - i32.const $push12=, 0 - i32.eq $push13=, $pop3, $pop12 - br_if 1, $pop13 # 1: down to label0 + i32.eqz $push11=, $pop3 + br_if 1, $pop11 # 1: down to label0 # BB#2: # %foo.exit i32.const $push4=, 0 return $pop4 diff --git a/test/torture-s/20001009-2.c.s b/test/torture-s/20001009-2.c.s index 59a1cbddb..72b95c47a 100644 --- a/test/torture-s/20001009-2.c.s +++ b/test/torture-s/20001009-2.c.s @@ -11,9 +11,8 @@ foo: # @foo block i32.const $push5=, 0 i32.load $push1=, b($pop5) - i32.const $push9=, 0 - i32.eq $push10=, $pop1, $pop9 - br_if 0, $pop10 # 0: down to label0 + i32.eqz $push9=, $pop1 + br_if 0, $pop9 # 0: down to label0 # BB#1: # %for.body.preheader i32.const $0=, 1 .LBB0_2: # %for.body @@ -48,9 +47,8 @@ main: # @main block i32.const $push4=, 0 i32.load $push1=, b($pop4) - i32.const $push9=, 0 - i32.eq $push10=, $pop1, $pop9 - br_if 0, $pop10 # 0: down to label3 + i32.eqz $push9=, $pop1 + br_if 0, $pop9 # 0: down to label3 # BB#1: # %for.body.i.preheader i32.const $0=, 1 .LBB1_2: # %for.body.i diff --git a/test/torture-s/20001111-1.c.s b/test/torture-s/20001111-1.c.s index 5f27e5502..fa4f3e845 100644 --- a/test/torture-s/20001111-1.c.s +++ b/test/torture-s/20001111-1.c.s @@ -40,9 +40,8 @@ main: # @main block i32.const $push2=, 0 i32.load8_u $push0=, next_buffer($pop2) - i32.const $push5=, 0 - i32.eq $push6=, $pop0, $pop5 - br_if 0, $pop6 # 0: down to label0 + i32.eqz $push5=, $pop0 + br_if 0, $pop5 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable diff --git a/test/torture-s/20001203-2.c.s b/test/torture-s/20001203-2.c.s index bd0629b3e..f6837b9d8 100644 --- a/test/torture-s/20001203-2.c.s +++ b/test/torture-s/20001203-2.c.s @@ -11,9 +11,8 @@ create_array_type: # @create_array_type # BB#0: # %entry block block - i32.const $push48=, 0 - i32.eq $push49=, $0, $pop48 - br_if 0, $pop49 # 0: down to label1 + i32.eqz $push48=, $0 + br_if 0, $pop48 # 0: down to label1 # BB#1: # %if.end i32.load $push2=, 0($1) i32.const $push3=, 3 @@ -24,9 +23,8 @@ create_array_type: # @create_array_type i32.store16 $discard=, 8($0), $pop5 i32.const $5=, 0 block - i32.const $push50=, 0 - i32.eq $push51=, $1, $pop50 - br_if 0, $pop51 # 0: down to label2 + i32.eqz $push49=, $1 + br_if 0, $pop49 # 0: down to label2 # BB#2: # %cond.true i32.const $push6=, 20 i32.add $push7=, $1, $pop6 diff --git a/test/torture-s/20010118-1.c.s b/test/torture-s/20010118-1.c.s index 8a6501528..b6bc411ef 100644 --- a/test/torture-s/20010118-1.c.s +++ b/test/torture-s/20010118-1.c.s @@ -33,25 +33,25 @@ bar: # @bar br_if 1, $pop5 # 1: down to label0 .LBB1_2: # %if.then end_block # label1: - i32.load $push6=, 16($0) - f64.convert_s/i32 $push8=, $pop6 - f64.const $push9=, 0x0p0 - f64.mul $push10=, $pop8, $pop9 - f64.const $push11=, 0x1p-1 - f64.mul $push12=, $pop10, $pop11 - i32.trunc_s/f64 $5=, $pop12 + i32.load $5=, 16($0) i32.const $push19=, 4 i32.add $push20=, $0, $pop19 - i32.load $push7=, 20($0) - f64.convert_s/i32 $push13=, $pop7 - f64.const $push22=, 0x0p0 - f64.mul $push14=, $pop13, $pop22 - f64.const $push21=, 0x1p-1 - f64.mul $push15=, $pop14, $pop21 + i32.load $push6=, 20($0) + f64.convert_s/i32 $push13=, $pop6 + f64.const $push8=, 0x0p0 + f64.mul $push14=, $pop13, $pop8 + f64.const $push10=, 0x1p-1 + f64.mul $push15=, $pop14, $pop10 i32.trunc_s/f64 $push16=, $pop15 i32.add $push18=, $pop16, $2 i32.store $discard=, 0($pop20), $pop18 - i32.add $push17=, $5, $1 + f64.convert_s/i32 $push7=, $5 + f64.const $push22=, 0x0p0 + f64.mul $push9=, $pop7, $pop22 + f64.const $push21=, 0x1p-1 + f64.mul $push11=, $pop9, $pop21 + i32.trunc_s/f64 $push12=, $pop11 + i32.add $push17=, $pop12, $1 i32.store $discard=, 0($0), $pop17 i32.store $discard=, 8($0), $3 i32.store $discard=, 12($0), $4 diff --git a/test/torture-s/20010129-1.c.s b/test/torture-s/20010129-1.c.s index 931dfb850..957f5f880 100644 --- a/test/torture-s/20010129-1.c.s +++ b/test/torture-s/20010129-1.c.s @@ -44,9 +44,8 @@ baz3: # @baz3 .result i32 # BB#0: # %entry block - i32.const $push1=, 0 - i32.eq $push2=, $0, $pop1 - br_if 0, $pop2 # 0: down to label0 + i32.eqz $push1=, $0 + br_if 0, $pop1 # 0: down to label0 # BB#1: # %if.end i32.const $push0=, 1 return $pop0 @@ -112,9 +111,8 @@ foo: # @foo i32.const $8=, 0 block i32.or $push16=, $2, $3 - i32.const $push42=, 0 - i32.eq $push43=, $pop16, $pop42 - br_if 0, $pop43 # 0: down to label5 + i32.eqz $push42=, $pop16 + br_if 0, $pop42 # 0: down to label5 # BB#3: # %if.end17 # in Loop: Header=BB3_2 Depth=1 i32.const $push36=, 1 @@ -134,9 +132,8 @@ foo: # @foo i32.and $push19=, $6, $pop18 i32.or $push20=, $5, $pop19 i32.or $push21=, $10, $pop20 - i32.const $push44=, 0 - i32.eq $push45=, $pop21, $pop44 - br_if 4, $pop45 # 4: down to label1 + i32.eqz $push43=, $pop21 + br_if 4, $pop43 # 4: down to label1 .LBB3_6: # %while.cond.backedge # in Loop: Header=BB3_2 Depth=1 end_block # label5: diff --git a/test/torture-s/20010915-1.c.s b/test/torture-s/20010915-1.c.s index 5bbe10b32..bd2b3daad 100644 --- a/test/torture-s/20010915-1.c.s +++ b/test/torture-s/20010915-1.c.s @@ -80,9 +80,8 @@ x: # @x tee_local $push36=, $4=, $pop37 i32.load $push35=, 0($pop36) tee_local $push34=, $3=, $pop35 - i32.const $push68=, 0 - i32.eq $push69=, $pop34, $pop68 - br_if 0, $pop69 # 0: down to label2 + i32.eqz $push68=, $pop34 + br_if 0, $pop68 # 0: down to label2 # BB#3: # %if.then block i32.const $push7=, .L.str diff --git a/test/torture-s/20010925-1.c.s b/test/torture-s/20010925-1.c.s index 1287f0978..30809583c 100644 --- a/test/torture-s/20010925-1.c.s +++ b/test/torture-s/20010925-1.c.s @@ -34,9 +34,8 @@ foo: # @foo # BB#0: # %entry i32.const $3=, 1 block - i32.const $push0=, 0 - i32.eq $push1=, $2, $pop0 - br_if 0, $pop1 # 0: down to label0 + i32.eqz $push0=, $2 + br_if 0, $pop0 # 0: down to label0 # BB#1: # %if.end i32.call $discard=, memcpy@FUNCTION, $0, $1, $2 i32.const $3=, 0 diff --git a/test/torture-s/20011008-3.c.s b/test/torture-s/20011008-3.c.s index 68424113b..8bb115a75 100644 --- a/test/torture-s/20011008-3.c.s +++ b/test/torture-s/20011008-3.c.s @@ -33,9 +33,8 @@ __db_txnlist_lsnadd: # @__db_txnlist_lsnadd loop # label0: i32.const $6=, 1 block - i32.const $push9=, 0 - i32.eq $push10=, $4, $pop9 - br_if 0, $pop10 # 0: down to label2 + i32.eqz $push9=, $4 + br_if 0, $pop9 # 0: down to label2 # BB#2: # %cond.false # in Loop: Header=BB1_1 Depth=1 i32.load $6=, 0($5) diff --git a/test/torture-s/20011126-2.c.s b/test/torture-s/20011126-2.c.s index cb03a6619..c561123f0 100644 --- a/test/torture-s/20011126-2.c.s +++ b/test/torture-s/20011126-2.c.s @@ -22,9 +22,10 @@ main: # @main # Child Loop BB0_3 Depth 3 # Child Loop BB0_8 Depth 2 loop # label0: - copy_local $2=, $1 copy_local $0=, $3 - i32.load8_u $push19=, 0($2) + copy_local $push21=, $1 + tee_local $push20=, $2=, $pop21 + i32.load8_u $push19=, 0($pop20) tee_local $push18=, $1=, $pop19 copy_local $3=, $pop18 .LBB0_2: # %while.body.outer.i @@ -36,31 +37,31 @@ main: # @main block loop # label5: copy_local $4=, $2 - i32.const $push21=, 255 - i32.and $push1=, $3, $pop21 - i32.const $push20=, 97 - i32.ne $push2=, $pop1, $pop20 + i32.const $push23=, 255 + i32.and $push1=, $3, $pop23 + i32.const $push22=, 97 + i32.ne $push2=, $pop1, $pop22 br_if 2, $pop2 # 2: down to label4 .LBB0_3: # %while.cond2.i # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 loop # label7: - copy_local $push29=, $4 - tee_local $push28=, $5=, $pop29 - i32.const $push27=, 1 - i32.add $push26=, $pop28, $pop27 - tee_local $push25=, $4=, $pop26 - i32.load8_u $push24=, 0($pop25) - tee_local $push23=, $3=, $pop24 - i32.const $push22=, 120 - i32.eq $push3=, $pop23, $pop22 + copy_local $push31=, $4 + tee_local $push30=, $5=, $pop31 + i32.const $push29=, 1 + i32.add $push28=, $pop30, $pop29 + tee_local $push27=, $4=, $pop28 + i32.load8_u $push26=, 0($pop27) + tee_local $push25=, $3=, $pop26 + i32.const $push24=, 120 + i32.eq $push3=, $pop25, $pop24 br_if 0, $pop3 # 0: up to label7 # BB#4: # %while.cond2.i # in Loop: Header=BB0_2 Depth=2 end_loop # label8: - i32.const $push30=, 98 - i32.eq $push4=, $3, $pop30 + i32.const $push32=, 98 + i32.eq $push4=, $3, $pop32 br_if 3, $pop4 # 3: down to label3 # BB#5: # %while.cond11.preheader.i # in Loop: Header=BB0_2 Depth=2 @@ -71,27 +72,27 @@ main: # @main # in Loop: Header=BB0_1 Depth=1 end_loop # label6: i32.store8 $discard=, 0($0), $1 - i32.const $push32=, 1 - i32.add $1=, $2, $pop32 - i32.const $push31=, 1 - i32.add $3=, $0, $pop31 + i32.const $push34=, 1 + i32.add $1=, $2, $pop34 + i32.const $push33=, 1 + i32.add $3=, $0, $pop33 i32.ge_u $push7=, $2, $5 br_if 3, $pop7 # 3: up to label0 # BB#7: # %while.body14.while.body14_crit_edge.i.preheader # in Loop: Header=BB0_1 Depth=1 i32.add $1=, $0, $5 - i32.const $push33=, 0 - i32.sub $0=, $pop33, $2 + i32.const $push35=, 0 + i32.sub $0=, $pop35, $2 .LBB0_8: # %while.body14.while.body14_crit_edge.i # Parent Loop BB0_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label9: - i32.const $push35=, 1 - i32.add $2=, $2, $pop35 + i32.const $push37=, 1 + i32.add $2=, $2, $pop37 i32.load8_u $push8=, 0($2) i32.store8 $discard=, 0($3), $pop8 - i32.const $push34=, 1 - i32.add $push0=, $3, $pop34 + i32.const $push36=, 1 + i32.add $push0=, $3, $pop36 copy_local $3=, $pop0 i32.ne $push9=, $5, $2 br_if 0, $pop9 # 0: up to label9 diff --git a/test/torture-s/20020129-1.c.s b/test/torture-s/20020129-1.c.s index 4de43e9e5..dd7b7e3ae 100644 --- a/test/torture-s/20020129-1.c.s +++ b/test/torture-s/20020129-1.c.s @@ -13,13 +13,11 @@ foo: # @foo block block i32.load $push0=, 28($0) - i32.const $push17=, 0 - i32.eq $push18=, $pop0, $pop17 - br_if 0, $pop18 # 0: down to label2 + i32.eqz $push17=, $pop0 + br_if 0, $pop17 # 0: down to label2 # BB#1: # %if.end - i32.const $push19=, 0 - i32.eq $push20=, $3, $pop19 - br_if 1, $pop20 # 1: down to label1 + i32.eqz $push18=, $3 + br_if 1, $pop18 # 1: down to label1 br 2 # 2: down to label0 .LBB0_2: # %if.then end_block # label2: @@ -30,9 +28,8 @@ foo: # @foo i32.add $push3=, $1, $pop12 i32.const $push4=, 0 i32.store $discard=, 0($pop3), $pop4 - i32.const $push21=, 0 - i32.eq $push22=, $2, $pop21 - br_if 0, $pop22 # 0: down to label1 + i32.eqz $push19=, $2 + br_if 0, $pop19 # 0: down to label1 .LBB0_3: # %for.body # =>This Inner Loop Header: Depth=1 loop # label3: diff --git a/test/torture-s/20020213-1.c.s b/test/torture-s/20020213-1.c.s index 20e57a9ad..c80455d88 100644 --- a/test/torture-s/20020213-1.c.s +++ b/test/torture-s/20020213-1.c.s @@ -19,9 +19,8 @@ foo: # @foo i32.select $push4=, $pop3, $0, $pop5 i32.store $discard=, a+4($pop8), $pop4 block - i32.const $push9=, 0 - i32.eq $push10=, $1, $pop9 - br_if 0, $pop10 # 0: down to label0 + i32.eqz $push9=, $1 + br_if 0, $pop9 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then diff --git a/test/torture-s/20020406-1.c.s b/test/torture-s/20020406-1.c.s index f54d25296..ea23bc7cb 100644 --- a/test/torture-s/20020406-1.c.s +++ b/test/torture-s/20020406-1.c.s @@ -161,9 +161,8 @@ DUPFFexgcd: # @DUPFFexgcd block i32.load $push7=, 8($3) i32.load $push8=, 0($pop7) - i32.const $push39=, 0 - i32.eq $push40=, $pop8, $pop39 - br_if 0, $pop40 # 0: down to label4 + i32.eqz $push39=, $pop8 + br_if 0, $pop39 # 0: down to label4 # BB#5: # %DUPFFnew.exit167 i32.const $push9=, 12 i32.call $push37=, malloc@FUNCTION, $pop9 diff --git a/test/torture-s/20020413-1.c.s b/test/torture-s/20020413-1.c.s index 905988448..3261fe643 100644 --- a/test/torture-s/20020413-1.c.s +++ b/test/torture-s/20020413-1.c.s @@ -45,9 +45,8 @@ test: # @test i64.const $push102=, 0 i64.const $push101=, 0 i32.call $push42=, __eqtf2@FUNCTION, $0, $1, $pop102, $pop101 - i32.const $push141=, 0 - i32.eq $push142=, $pop42, $pop141 - br_if 1, $pop142 # 1: down to label1 + i32.eqz $push141=, $pop42 + br_if 1, $pop141 # 1: down to label1 # BB#2: # %if.else i64.const $push103=, 0 i64.const $push43=, 4611404543450677248 diff --git a/test/torture-s/20020506-1.c.s b/test/torture-s/20020506-1.c.s index c795c104a..223b6db40 100644 --- a/test/torture-s/20020506-1.c.s +++ b/test/torture-s/20020506-1.c.s @@ -14,17 +14,15 @@ test1: # @test1 i32.lt_s $push1=, $0, $pop0 br_if 0, $pop1 # 0: down to label2 # BB#1: # %if.then - i32.const $push2=, 0 - i32.eq $push3=, $1, $pop2 - br_if 1, $pop3 # 1: down to label1 + i32.eqz $push2=, $1 + br_if 1, $pop2 # 1: down to label1 # BB#2: # %if.then2 call abort@FUNCTION unreachable .LBB0_3: # %if.else end_block # label2: - i32.const $push4=, 0 - i32.eq $push5=, $1, $pop4 - br_if 1, $pop5 # 1: down to label0 + i32.eqz $push3=, $1 + br_if 1, $pop3 # 1: down to label0 .LBB0_4: # %if.end45 end_block # label1: return @@ -54,17 +52,15 @@ test2: # @test2 i32.lt_s $push4=, $pop2, $pop3 br_if 0, $pop4 # 0: down to label5 # BB#1: # %if.then - i32.const $push6=, 0 - i32.eq $push7=, $1, $pop6 - br_if 1, $pop7 # 1: down to label4 + i32.eqz $push6=, $1 + br_if 1, $pop6 # 1: down to label4 # BB#2: # %if.then2 call abort@FUNCTION unreachable .LBB1_3: # %if.else end_block # label5: - i32.const $push8=, 0 - i32.eq $push9=, $1, $pop8 - br_if 1, $pop9 # 1: down to label3 + i32.eqz $push7=, $1 + br_if 1, $pop7 # 1: down to label3 .LBB1_4: # %if.end45 end_block # label4: return @@ -90,17 +86,15 @@ test3: # @test3 i32.lt_s $push1=, $0, $pop0 br_if 0, $pop1 # 0: down to label8 # BB#1: # %if.then - i32.const $push2=, 0 - i32.eq $push3=, $1, $pop2 - br_if 1, $pop3 # 1: down to label7 + i32.eqz $push2=, $1 + br_if 1, $pop2 # 1: down to label7 # BB#2: # %if.then2 call abort@FUNCTION unreachable .LBB2_3: # %if.else end_block # label8: - i32.const $push4=, 0 - i32.eq $push5=, $1, $pop4 - br_if 1, $pop5 # 1: down to label6 + i32.eqz $push3=, $1 + br_if 1, $pop3 # 1: down to label6 .LBB2_4: # %if.end45 end_block # label7: return @@ -130,17 +124,15 @@ test4: # @test4 i32.lt_s $push4=, $pop2, $pop3 br_if 0, $pop4 # 0: down to label11 # BB#1: # %if.then - i32.const $push6=, 0 - i32.eq $push7=, $1, $pop6 - br_if 1, $pop7 # 1: down to label10 + i32.eqz $push6=, $1 + br_if 1, $pop6 # 1: down to label10 # BB#2: # %if.then2 call abort@FUNCTION unreachable .LBB3_3: # %if.else end_block # label11: - i32.const $push8=, 0 - i32.eq $push9=, $1, $pop8 - br_if 1, $pop9 # 1: down to label9 + i32.eqz $push7=, $1 + br_if 1, $pop7 # 1: down to label9 .LBB3_4: # %if.end45 end_block # label10: return @@ -166,17 +158,15 @@ test5: # @test5 i32.lt_s $push1=, $0, $pop0 br_if 0, $pop1 # 0: down to label14 # BB#1: # %if.then - i32.const $push2=, 0 - i32.eq $push3=, $1, $pop2 - br_if 1, $pop3 # 1: down to label13 + i32.eqz $push2=, $1 + br_if 1, $pop2 # 1: down to label13 # BB#2: # %if.then1 call abort@FUNCTION unreachable .LBB4_3: # %if.else end_block # label14: - i32.const $push4=, 0 - i32.eq $push5=, $1, $pop4 - br_if 1, $pop5 # 1: down to label12 + i32.eqz $push3=, $1 + br_if 1, $pop3 # 1: down to label12 .LBB4_4: # %if.end38 end_block # label13: return @@ -202,17 +192,15 @@ test6: # @test6 i32.lt_s $push1=, $0, $pop0 br_if 0, $pop1 # 0: down to label17 # BB#1: # %if.then - i32.const $push2=, 0 - i32.eq $push3=, $1, $pop2 - br_if 1, $pop3 # 1: down to label16 + i32.eqz $push2=, $1 + br_if 1, $pop2 # 1: down to label16 # BB#2: # %if.then1 call abort@FUNCTION unreachable .LBB5_3: # %if.else end_block # label17: - i32.const $push4=, 0 - i32.eq $push5=, $1, $pop4 - br_if 1, $pop5 # 1: down to label15 + i32.eqz $push3=, $1 + br_if 1, $pop3 # 1: down to label15 .LBB5_4: # %if.end38 end_block # label16: return @@ -238,17 +226,15 @@ test7: # @test7 i64.lt_s $push1=, $0, $pop0 br_if 0, $pop1 # 0: down to label20 # BB#1: # %if.then - i32.const $push2=, 0 - i32.eq $push3=, $1, $pop2 - br_if 1, $pop3 # 1: down to label19 + i32.eqz $push2=, $1 + br_if 1, $pop2 # 1: down to label19 # BB#2: # %if.then1 call abort@FUNCTION unreachable .LBB6_3: # %if.else end_block # label20: - i32.const $push4=, 0 - i32.eq $push5=, $1, $pop4 - br_if 1, $pop5 # 1: down to label18 + i32.eqz $push3=, $1 + br_if 1, $pop3 # 1: down to label18 .LBB6_4: # %if.end38 end_block # label19: return @@ -274,17 +260,15 @@ test8: # @test8 i64.lt_s $push1=, $0, $pop0 br_if 0, $pop1 # 0: down to label23 # BB#1: # %if.then - i32.const $push2=, 0 - i32.eq $push3=, $1, $pop2 - br_if 1, $pop3 # 1: down to label22 + i32.eqz $push2=, $1 + br_if 1, $pop2 # 1: down to label22 # BB#2: # %if.then1 call abort@FUNCTION unreachable .LBB7_3: # %if.else end_block # label23: - i32.const $push4=, 0 - i32.eq $push5=, $1, $pop4 - br_if 1, $pop5 # 1: down to label21 + i32.eqz $push3=, $1 + br_if 1, $pop3 # 1: down to label21 .LBB7_4: # %if.end38 end_block # label22: return diff --git a/test/torture-s/20020611-1.c.s b/test/torture-s/20020611-1.c.s index 60cbb38a4..e18f1a3fe 100644 --- a/test/torture-s/20020611-1.c.s +++ b/test/torture-s/20020611-1.c.s @@ -35,9 +35,8 @@ main: # @main i32.lt_u $push4=, $pop2, $pop3 i32.store $push0=, p($pop6), $pop4 i32.store $push1=, k($pop7), $pop0 - i32.const $push9=, 0 - i32.eq $push10=, $pop1, $pop9 - br_if 0, $pop10 # 0: down to label0 + i32.eqz $push9=, $pop1 + br_if 0, $pop9 # 0: down to label0 # BB#1: # %if.end i32.const $push8=, 0 call exit@FUNCTION, $pop8 diff --git a/test/torture-s/20020615-1.c.s b/test/torture-s/20020615-1.c.s index 706e63b8e..2812f2d9d 100644 --- a/test/torture-s/20020615-1.c.s +++ b/test/torture-s/20020615-1.c.s @@ -46,9 +46,8 @@ line_hints: # @line_hints i32.xor $3=, $pop10, $3 block block - i32.const $push56=, 0 - i32.eq $push57=, $0, $pop56 - br_if 0, $pop57 # 0: down to label1 + i32.eqz $push56=, $0 + br_if 0, $pop56 # 0: down to label1 # BB#1: # %entry i32.const $push49=, 4 i32.shr_s $push1=, $4, $pop49 @@ -68,9 +67,8 @@ line_hints: # @line_hints br 1 # 1: down to label0 .LBB0_3: # %if.else end_block # label1: - i32.const $push58=, 0 - i32.eq $push59=, $2, $pop58 - br_if 0, $pop59 # 0: down to label0 + i32.eqz $push57=, $2 + br_if 0, $pop57 # 0: down to label0 # BB#4: # %if.else i32.const $push52=, 4 i32.shr_s $push19=, $3, $pop52 diff --git a/test/torture-s/20020810-1.c.s b/test/torture-s/20020810-1.c.s index fb0702d3c..c6d80b3c6 100644 --- a/test/torture-s/20020810-1.c.s +++ b/test/torture-s/20020810-1.c.s @@ -60,9 +60,8 @@ main: # @main br_if 0, $pop0 # 0: down to label1 # BB#1: # %lor.lhs.false.i i32.const $push1=, 1 - i32.const $push3=, 0 - i32.eq $push4=, $pop1, $pop3 - br_if 0, $pop4 # 0: down to label1 + i32.eqz $push3=, $pop1 + br_if 0, $pop3 # 0: down to label1 # BB#2: # %if.end i32.const $push2=, 0 return $pop2 diff --git a/test/torture-s/20021015-1.c.s b/test/torture-s/20021015-1.c.s index e84458fe9..b6c24a4d4 100644 --- a/test/torture-s/20021015-1.c.s +++ b/test/torture-s/20021015-1.c.s @@ -35,9 +35,8 @@ main: # @main block i32.const $push1=, 0 i32.load8_u $push0=, g_list($pop1) - i32.const $push5=, 0 - i32.eq $push6=, $pop0, $pop5 - br_if 0, $pop6 # 0: down to label1 + i32.eqz $push5=, $pop0 + br_if 0, $pop5 # 0: down to label1 # BB#1: # %g.exit i32.const $push3=, 0 i32.const $push2=, 0 diff --git a/test/torture-s/20021024-1.c.s b/test/torture-s/20021024-1.c.s index 1fb5cf9e4..10431f4e7 100644 --- a/test/torture-s/20021024-1.c.s +++ b/test/torture-s/20021024-1.c.s @@ -45,9 +45,8 @@ bar: # @bar i64.store $discard=, m($pop18), $pop10 i64.const $push17=, 2 i64.store $discard=, 0($3), $pop17 - i32.const $push20=, 0 - i32.eq $push21=, $2, $pop20 - br_if 0, $pop21 # 0: up to label0 + i32.eqz $push20=, $2 + br_if 0, $pop20 # 0: up to label0 # BB#2: # %if.end end_loop # label1: i32.const $push11=, 3 diff --git a/test/torture-s/20021111-1.c.s b/test/torture-s/20021111-1.c.s index 5cd4233ed..7579d5442 100644 --- a/test/torture-s/20021111-1.c.s +++ b/test/torture-s/20021111-1.c.s @@ -10,9 +10,8 @@ aim_callhandler: # @aim_callhandler # BB#0: # %entry block block - i32.const $push11=, 0 - i32.eq $push12=, $1, $pop11 - br_if 0, $pop12 # 0: down to label1 + i32.eqz $push11=, $1 + br_if 0, $pop11 # 0: down to label1 # BB#1: # %entry i32.const $push0=, 65535 i32.eq $push1=, $3, $pop0 diff --git a/test/torture-s/20021120-3.c.s b/test/torture-s/20021120-3.c.s index 9eb88bbe5..b96bc7d46 100644 --- a/test/torture-s/20021120-3.c.s +++ b/test/torture-s/20021120-3.c.s @@ -9,27 +9,27 @@ foo: # @foo .result i32 .local i32 # BB#0: # %entry - i32.const $push8=, __stack_pointer - i32.const $push5=, __stack_pointer - i32.load $push6=, 0($pop5) - i32.const $push7=, 16 - i32.sub $push12=, $pop6, $pop7 - i32.store $push15=, 0($pop8), $pop12 - tee_local $push14=, $3=, $pop15 + i32.const $push9=, __stack_pointer + i32.const $push6=, __stack_pointer + i32.load $push7=, 0($pop6) + i32.const $push8=, 16 + i32.sub $push13=, $pop7, $pop8 + i32.store $push16=, 0($pop9), $pop13 + tee_local $push15=, $3=, $pop16 i32.div_u $push0=, $1, $2 - i32.store $discard=, 0($pop14), $pop0 + i32.store $discard=, 0($pop15), $pop0 i32.const $push1=, .L.str i32.call $discard=, sprintf@FUNCTION, $0, $pop1, $3 + i32.const $push12=, __stack_pointer + i32.const $push10=, 16 + i32.add $push11=, $3, $pop10 + i32.store $discard=, 0($pop12), $pop11 i32.const $push2=, 1 i32.add $push3=, $1, $pop2 - i32.const $push13=, 1 - i32.add $push4=, $2, $pop13 - i32.div_u $1=, $pop3, $pop4 - i32.const $push11=, __stack_pointer - i32.const $push9=, 16 - i32.add $push10=, $3, $pop9 - i32.store $discard=, 0($pop11), $pop10 - return $1 + i32.const $push14=, 1 + i32.add $push4=, $2, $pop14 + i32.div_u $push5=, $pop3, $pop4 + return $pop5 .endfunc .Lfunc_end0: .size foo, .Lfunc_end0-foo diff --git a/test/torture-s/20030125-1.c.s b/test/torture-s/20030125-1.c.s index f5d31bfcb..4b26aae75 100644 --- a/test/torture-s/20030125-1.c.s +++ b/test/torture-s/20030125-1.c.s @@ -78,8 +78,8 @@ q1: # @q1 main: # @main .result i32 # BB#0: # %if.end - i32.const $push0=, 0 - return $pop0 + call abort@FUNCTION + unreachable .endfunc .Lfunc_end5: .size main, .Lfunc_end5-main diff --git a/test/torture-s/20030128-1.c.s b/test/torture-s/20030128-1.c.s index 94d12c064..18f0a5617 100644 --- a/test/torture-s/20030128-1.c.s +++ b/test/torture-s/20030128-1.c.s @@ -6,23 +6,24 @@ .type main,@function main: # @main .result i32 + .local i32 # BB#0: # %entry - block - i32.const $push10=, 0 i32.const $push9=, 0 - i32.load8_u $push2=, x($pop9) + i32.load16_s $0=, y($pop9) + block i32.const $push8=, 0 - i32.load16_s $push1=, y($pop8) - i32.div_s $push3=, $pop2, $pop1 - i32.store8 $push0=, x($pop10), $pop3 - i32.const $push4=, 255 - i32.and $push5=, $pop0, $pop4 - i32.const $push6=, 246 - i32.ne $push7=, $pop5, $pop6 - br_if 0, $pop7 # 0: down to label0 + i32.const $push7=, 0 + i32.load8_u $push1=, x($pop7) + i32.div_s $push2=, $pop1, $0 + i32.store8 $push0=, x($pop8), $pop2 + i32.const $push3=, 255 + i32.and $push4=, $pop0, $pop3 + i32.const $push5=, 246 + i32.ne $push6=, $pop4, $pop5 + br_if 0, $pop6 # 0: down to label0 # BB#1: # %if.end - i32.const $push11=, 0 - call exit@FUNCTION, $pop11 + i32.const $push10=, 0 + call exit@FUNCTION, $pop10 unreachable .LBB0_2: # %if.then end_block # label0: diff --git a/test/torture-s/20030606-1.c.s b/test/torture-s/20030606-1.c.s index 8b21ad22d..a5ed4697d 100644 --- a/test/torture-s/20030606-1.c.s +++ b/test/torture-s/20030606-1.c.s @@ -11,9 +11,8 @@ foo: # @foo i32.const $push0=, 55 i32.store $discard=, 0($0), $pop0 block - i32.const $push7=, 0 - i32.eq $push8=, $1, $pop7 - br_if 0, $pop8 # 0: down to label0 + i32.eqz $push7=, $1 + br_if 0, $pop7 # 0: down to label0 # BB#1: # %if.then i32.const $push5=, 4 i32.add $push2=, $0, $pop5 diff --git a/test/torture-s/20030714-1.c.s b/test/torture-s/20030714-1.c.s index d492f2947..89b7e3d22 100644 --- a/test/torture-s/20030714-1.c.s +++ b/test/torture-s/20030714-1.c.s @@ -21,9 +21,8 @@ RenderBox_setStyle: # @RenderBox_setStyle block i32.const $push33=, 16 i32.and $push9=, $2, $pop33 - i32.const $push35=, 0 - i32.eq $push36=, $pop9, $pop35 - br_if 0, $pop36 # 0: down to label2 + i32.eqz $push35=, $pop9 + br_if 0, $pop35 # 0: down to label2 # BB#2: # %if.then i32.const $push34=, 16 i32.or $2=, $2, $pop34 @@ -44,9 +43,8 @@ RenderBox_setStyle: # @RenderBox_setStyle # BB#4: # %if.end i32.const $push17=, 1572864 i32.and $push12=, $2, $pop17 - i32.const $push37=, 0 - i32.eq $push38=, $pop12, $pop37 - br_if 1, $pop38 # 1: down to label0 + i32.eqz $push36=, $pop12 + br_if 1, $pop36 # 1: down to label0 # BB#5: # %if.then39 i32.const $push20=, 26 i32.add $0=, $0, $pop20 diff --git a/test/torture-s/20030715-1.c.s b/test/torture-s/20030715-1.c.s index bcacb5c31..ed51476b0 100644 --- a/test/torture-s/20030715-1.c.s +++ b/test/torture-s/20030715-1.c.s @@ -28,9 +28,8 @@ server_type: # @server_type block i32.const $push0=, .L.str i32.call $push1=, strcmp@FUNCTION, $2, $pop0 - i32.const $push5=, 0 - i32.eq $push6=, $pop1, $pop5 - br_if 0, $pop6 # 0: down to label1 + i32.eqz $push5=, $pop1 + br_if 0, $pop5 # 0: down to label1 # BB#1: # %if.else i32.const $4=, .L.str.2 i32.const $3=, 1 diff --git a/test/torture-s/20031010-1.c.s b/test/torture-s/20031010-1.c.s index 25d6fce31..96930fe4f 100644 --- a/test/torture-s/20031010-1.c.s +++ b/test/torture-s/20031010-1.c.s @@ -9,14 +9,12 @@ foo: # @foo .result i32 # BB#0: # %entry block - i32.const $push4=, 0 - i32.eq $push5=, $2, $pop4 - br_if 0, $pop5 # 0: down to label0 + i32.eqz $push4=, $2 + br_if 0, $pop4 # 0: down to label0 # BB#1: # %if.then block - i32.const $push6=, 0 - i32.eq $push7=, $3, $pop6 - br_if 0, $pop7 # 0: down to label1 + i32.eqz $push5=, $3 + br_if 0, $pop5 # 0: down to label1 # BB#2: # %if.then4 i32.select $push1=, $1, $0, $4 i32.select $push0=, $0, $1, $4 @@ -48,9 +46,8 @@ main: # @main i32.const $push6=, 1 i32.const $push5=, 1 i32.call $push3=, foo@FUNCTION, $pop2, $pop1, $pop0, $pop6, $pop5 - i32.const $push7=, 0 - i32.eq $push8=, $pop3, $pop7 - br_if 0, $pop8 # 0: down to label2 + i32.eqz $push7=, $pop3 + br_if 0, $pop7 # 0: down to label2 # BB#1: # %if.end i32.const $push4=, 0 return $pop4 diff --git a/test/torture-s/20031204-1.c.s b/test/torture-s/20031204-1.c.s index 8bc0fbc27..b0dbff3aa 100644 --- a/test/torture-s/20031204-1.c.s +++ b/test/torture-s/20031204-1.c.s @@ -88,9 +88,8 @@ root_nfs_parse_addr: # @root_nfs_parse_addr block i32.load8_u $push32=, 0($5) tee_local $push31=, $4=, $pop32 - i32.const $push33=, 0 - i32.eq $push34=, $pop31, $pop33 - br_if 0, $pop34 # 0: down to label6 + i32.eqz $push33=, $pop31 + br_if 0, $pop33 # 0: down to label6 # BB#9: # %land.lhs.true i32.const $push14=, 58 i32.ne $push15=, $4, $pop14 @@ -184,9 +183,8 @@ main: # @main block i32.load8_u $push34=, 0($4) tee_local $push33=, $2=, $pop34 - i32.const $push35=, 0 - i32.eq $push36=, $pop33, $pop35 - br_if 0, $pop36 # 0: down to label13 + i32.eqz $push35=, $pop33 + br_if 0, $pop35 # 0: down to label13 # BB#9: # %land.lhs.true.i i32.const $push14=, 58 i32.ne $push15=, $2, $pop14 diff --git a/test/torture-s/20040625-1.c.s b/test/torture-s/20040625-1.c.s index 20305f245..43c76959d 100644 --- a/test/torture-s/20040625-1.c.s +++ b/test/torture-s/20040625-1.c.s @@ -9,9 +9,8 @@ maybe_next: # @maybe_next .result i32 # BB#0: # %entry block - i32.const $push0=, 0 - i32.eq $push1=, $1, $pop0 - br_if 0, $pop1 # 0: down to label0 + i32.eqz $push0=, $1 + br_if 0, $pop0 # 0: down to label0 # BB#1: # %if.then i32.load $0=, 0($0):p2align=0 .LBB0_2: # %if.end diff --git a/test/torture-s/20040703-1.c.s b/test/torture-s/20040703-1.c.s index cb3e1002f..4369328b8 100644 --- a/test/torture-s/20040703-1.c.s +++ b/test/torture-s/20040703-1.c.s @@ -42,9 +42,8 @@ num_lshift: # @num_lshift .LBB0_3: # %if.end end_block # label7: block - i32.const $push113=, 0 - i32.eq $push114=, $6, $pop113 - br_if 0, $pop114 # 0: down to label8 + i32.eqz $push113=, $6 + br_if 0, $pop113 # 0: down to label8 # BB#4: # %if.then10 i32.const $push16=, 32 i32.sub $push17=, $pop16, $6 @@ -82,9 +81,8 @@ num_lshift: # @num_lshift .LBB0_8: # %if.then end_block # label6: i32.load $push2=, 8($1) - i32.const $push115=, 0 - i32.eq $push116=, $pop2, $pop115 - br_if 2, $pop116 # 2: down to label3 + i32.eqz $push114=, $pop2 + br_if 2, $pop114 # 2: down to label3 # BB#9: # %if.then.land.end_crit_edge i32.const $2=, 0 br 3 # 3: down to label2 @@ -107,9 +105,8 @@ num_lshift: # @num_lshift i32.store $4=, 0($pop38), $7 i32.store $6=, 0($1), $11 i32.wrap/i64 $push39=, $5 - i32.const $push117=, 0 - i32.eq $push118=, $pop39, $pop117 - br_if 2, $pop118 # 2: down to label1 + i32.eqz $push115=, $pop39 + br_if 2, $pop115 # 2: down to label1 # BB#13: # %if.then21 i32.const $push40=, 0 i32.store $discard=, 12($1), $pop40 @@ -188,9 +185,8 @@ num_lshift: # @num_lshift i32.add $push64=, $3, $pop63 i32.select $push105=, $pop64, $3, $4 tee_local $push104=, $3=, $pop105 - i32.const $push119=, 0 - i32.eq $push120=, $pop104, $pop119 - br_if 0, $pop120 # 0: down to label13 + i32.eqz $push116=, $pop104 + br_if 0, $pop116 # 0: down to label13 # BB#22: # %if.then24.i i32.const $push66=, 32 i32.sub $push109=, $pop66, $3 diff --git a/test/torture-s/20040709-1.c.s b/test/torture-s/20040709-1.c.s index 312b97888..8c0481dfc 100644 --- a/test/torture-s/20040709-1.c.s +++ b/test/torture-s/20040709-1.c.s @@ -4206,15 +4206,15 @@ testO: # @testO i32.const $push223=, 2047 i32.and $push222=, $pop62, $pop223 tee_local $push221=, $4=, $pop222 - i32.add $push69=, $3, $pop221 + i32.add $push73=, $pop221, $2 + i32.const $push71=, 15 + i32.rem_u $push74=, $pop73, $pop71 + i32.add $push69=, $3, $4 i32.const $push220=, 4095 i32.and $push70=, $pop69, $pop220 - i32.const $push71=, 15 - i32.rem_u $push72=, $pop70, $pop71 - i32.add $push73=, $4, $2 i32.const $push219=, 15 - i32.rem_u $push74=, $pop73, $pop219 - i32.ne $push75=, $pop72, $pop74 + i32.rem_u $push72=, $pop70, $pop219 + i32.ne $push75=, $pop74, $pop72 br_if 0, $pop75 # 0: down to label9 # BB#4: # %lor.lhs.false124 i32.const $push84=, 0 @@ -4601,15 +4601,15 @@ testP: # @testP i32.const $push223=, 2047 i32.and $push222=, $pop62, $pop223 tee_local $push221=, $4=, $pop222 - i32.add $push69=, $3, $pop221 + i32.add $push73=, $pop221, $2 + i32.const $push71=, 15 + i32.rem_u $push74=, $pop73, $pop71 + i32.add $push69=, $3, $4 i32.const $push220=, 4095 i32.and $push70=, $pop69, $pop220 - i32.const $push71=, 15 - i32.rem_u $push72=, $pop70, $pop71 - i32.add $push73=, $4, $2 i32.const $push219=, 15 - i32.rem_u $push74=, $pop73, $pop219 - i32.ne $push75=, $pop72, $pop74 + i32.rem_u $push72=, $pop70, $pop219 + i32.ne $push75=, $pop74, $pop72 br_if 0, $pop75 # 0: down to label10 # BB#4: # %lor.lhs.false118 i32.const $push84=, 0 @@ -5515,9 +5515,8 @@ testS: # @testS i32.store16 $discard=, sS($pop59), $pop50 block i32.const $push51=, 1 - i32.const $push154=, 0 - i32.eq $push155=, $pop51, $pop154 - br_if 0, $pop155 # 0: down to label11 + i32.eqz $push154=, $pop51 + br_if 0, $pop154 # 0: down to label11 # BB#1: # %if.end134 return .LBB114_2: # %if.then133 @@ -5728,9 +5727,8 @@ testT: # @testT i32.or $push30=, $pop29, $pop20 i32.store16 $discard=, sT($pop87), $pop30 i32.const $push77=, 1 - i32.const $push88=, 0 - i32.eq $push89=, $pop77, $pop88 - br_if 0, $pop89 # 0: down to label12 + i32.eqz $push88=, $pop77 + br_if 0, $pop88 # 0: down to label12 # BB#2: # %if.end140 return .LBB120_3: # %if.then139 @@ -6094,17 +6092,17 @@ testU: # @testU i32.const $push242=, 16 i32.shr_u $push241=, $0, $pop242 tee_local $push240=, $1=, $pop241 - i32.add $push73=, $4, $pop240 + i32.add $push77=, $pop240, $3 i32.const $push239=, 1 - i32.and $push74=, $pop73, $pop239 + i32.and $push78=, $pop77, $pop239 i32.const $push75=, 15 - i32.rem_u $push76=, $pop74, $pop75 - i32.add $push77=, $1, $3 + i32.rem_u $push79=, $pop78, $pop75 + i32.add $push73=, $4, $1 i32.const $push238=, 1 - i32.and $push78=, $pop77, $pop238 + i32.and $push74=, $pop73, $pop238 i32.const $push237=, 15 - i32.rem_u $push79=, $pop78, $pop237 - i32.ne $push80=, $pop76, $pop79 + i32.rem_u $push76=, $pop74, $pop237 + i32.ne $push80=, $pop79, $pop76 br_if 0, $pop80 # 0: down to label13 # BB#4: # %lor.lhs.false130 i32.const $push88=, 0 @@ -6382,17 +6380,17 @@ testV: # @testV i32.const $push135=, 16 i32.shr_u $push134=, $3, $pop135 tee_local $push133=, $2=, $pop134 - i32.add $push37=, $4, $pop133 + i32.add $push41=, $pop133, $0 i32.const $push132=, 1 - i32.and $push38=, $pop37, $pop132 + i32.and $push42=, $pop41, $pop132 i32.const $push39=, 15 - i32.rem_u $push40=, $pop38, $pop39 - i32.add $push41=, $2, $0 + i32.rem_u $push43=, $pop42, $pop39 + i32.add $push37=, $4, $2 i32.const $push131=, 1 - i32.and $push42=, $pop41, $pop131 + i32.and $push38=, $pop37, $pop131 i32.const $push130=, 15 - i32.rem_u $push43=, $pop42, $pop130 - i32.ne $push44=, $pop40, $pop43 + i32.rem_u $push40=, $pop38, $pop130 + i32.ne $push44=, $pop43, $pop40 br_if 0, $pop44 # 0: down to label14 # BB#3: # %lor.lhs.false136 i32.const $push52=, 0 diff --git a/test/torture-s/20040709-2.c.s b/test/torture-s/20040709-2.c.s index 4d101fc14..1ead3853e 100644 --- a/test/torture-s/20040709-2.c.s +++ b/test/torture-s/20040709-2.c.s @@ -3658,15 +3658,15 @@ testO: # @testO i32.const $push223=, 2047 i32.and $push222=, $pop62, $pop223 tee_local $push221=, $4=, $pop222 - i32.add $push69=, $3, $pop221 + i32.add $push73=, $pop221, $2 + i32.const $push71=, 15 + i32.rem_u $push74=, $pop73, $pop71 + i32.add $push69=, $3, $4 i32.const $push220=, 4095 i32.and $push70=, $pop69, $pop220 - i32.const $push71=, 15 - i32.rem_u $push72=, $pop70, $pop71 - i32.add $push73=, $4, $2 i32.const $push219=, 15 - i32.rem_u $push74=, $pop73, $pop219 - i32.ne $push75=, $pop72, $pop74 + i32.rem_u $push72=, $pop70, $pop219 + i32.ne $push75=, $pop74, $pop72 br_if 0, $pop75 # 0: down to label4 # BB#4: # %lor.lhs.false124 i32.const $push84=, 0 @@ -4053,15 +4053,15 @@ testP: # @testP i32.const $push223=, 2047 i32.and $push222=, $pop62, $pop223 tee_local $push221=, $4=, $pop222 - i32.add $push69=, $3, $pop221 + i32.add $push73=, $pop221, $2 + i32.const $push71=, 15 + i32.rem_u $push74=, $pop73, $pop71 + i32.add $push69=, $3, $4 i32.const $push220=, 4095 i32.and $push70=, $pop69, $pop220 - i32.const $push71=, 15 - i32.rem_u $push72=, $pop70, $pop71 - i32.add $push73=, $4, $2 i32.const $push219=, 15 - i32.rem_u $push74=, $pop73, $pop219 - i32.ne $push75=, $pop72, $pop74 + i32.rem_u $push72=, $pop70, $pop219 + i32.ne $push75=, $pop74, $pop72 br_if 0, $pop75 # 0: down to label5 # BB#4: # %lor.lhs.false118 i32.const $push84=, 0 @@ -4573,9 +4573,8 @@ testR: # @testR i32.store16 $discard=, sR($pop47), $pop38 block i32.const $push39=, 1 - i32.const $push106=, 0 - i32.eq $push107=, $pop39, $pop106 - br_if 0, $pop107 # 0: down to label6 + i32.eqz $push106=, $pop39 + br_if 0, $pop106 # 0: down to label6 # BB#1: # %if.end134 return .LBB108_2: # %if.then133 @@ -4813,9 +4812,8 @@ testS: # @testS i32.store16 $discard=, sS($pop47), $pop38 block i32.const $push39=, 1 - i32.const $push106=, 0 - i32.eq $push107=, $pop39, $pop106 - br_if 0, $pop107 # 0: down to label7 + i32.eqz $push106=, $pop39 + br_if 0, $pop106 # 0: down to label7 # BB#1: # %if.end134 return .LBB114_2: # %if.then133 @@ -5026,9 +5024,8 @@ testT: # @testT i32.or $push30=, $pop29, $pop20 i32.store16 $discard=, sT($pop87), $pop30 i32.const $push77=, 1 - i32.const $push88=, 0 - i32.eq $push89=, $pop77, $pop88 - br_if 0, $pop89 # 0: down to label8 + i32.eqz $push88=, $pop77 + br_if 0, $pop88 # 0: down to label8 # BB#2: # %if.end140 return .LBB120_3: # %if.then139 @@ -5338,17 +5335,17 @@ testU: # @testU i32.const $push194=, 16 i32.shr_u $push193=, $0, $pop194 tee_local $push192=, $1=, $pop193 - i32.add $push61=, $4, $pop192 + i32.add $push65=, $pop192, $3 i32.const $push191=, 1 - i32.and $push62=, $pop61, $pop191 + i32.and $push66=, $pop65, $pop191 i32.const $push63=, 15 - i32.rem_u $push64=, $pop62, $pop63 - i32.add $push65=, $1, $3 + i32.rem_u $push67=, $pop66, $pop63 + i32.add $push61=, $4, $1 i32.const $push190=, 1 - i32.and $push66=, $pop65, $pop190 + i32.and $push62=, $pop61, $pop190 i32.const $push189=, 15 - i32.rem_u $push67=, $pop66, $pop189 - i32.ne $push68=, $pop64, $pop67 + i32.rem_u $push64=, $pop62, $pop189 + i32.ne $push68=, $pop67, $pop64 br_if 0, $pop68 # 0: down to label9 # BB#4: # %lor.lhs.false130 i32.const $push76=, 0 @@ -5626,17 +5623,17 @@ testV: # @testV i32.const $push135=, 16 i32.shr_u $push134=, $3, $pop135 tee_local $push133=, $2=, $pop134 - i32.add $push37=, $4, $pop133 + i32.add $push41=, $pop133, $0 i32.const $push132=, 1 - i32.and $push38=, $pop37, $pop132 + i32.and $push42=, $pop41, $pop132 i32.const $push39=, 15 - i32.rem_u $push40=, $pop38, $pop39 - i32.add $push41=, $2, $0 + i32.rem_u $push43=, $pop42, $pop39 + i32.add $push37=, $4, $2 i32.const $push131=, 1 - i32.and $push42=, $pop41, $pop131 + i32.and $push38=, $pop37, $pop131 i32.const $push130=, 15 - i32.rem_u $push43=, $pop42, $pop130 - i32.ne $push44=, $pop40, $pop43 + i32.rem_u $push40=, $pop38, $pop130 + i32.ne $push44=, $pop43, $pop40 br_if 0, $pop44 # 0: down to label10 # BB#3: # %lor.lhs.false136 i32.const $push52=, 0 diff --git a/test/torture-s/20040811-1.c.s b/test/torture-s/20040811-1.c.s index 7c6e160ea..fc88c7ec3 100644 --- a/test/torture-s/20040811-1.c.s +++ b/test/torture-s/20040811-1.c.s @@ -8,43 +8,43 @@ main: # @main .result i32 .local i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push6=, __stack_pointer - i32.load $push8=, 0($pop6) - tee_local $push7=, $3=, $pop8 - copy_local $discard=, $pop7 - i32.const $2=, 0 + i32.const $push7=, __stack_pointer + i32.load $push9=, 0($pop7) + tee_local $push8=, $2=, $pop9 + copy_local $discard=, $pop8 + i32.const $1=, 0 .LBB0_1: # %lab # =>This Inner Loop Header: Depth=1 loop # label0: - copy_local $1=, $3 - i32.const $push20=, 1000 - i32.rem_s $push0=, $2, $pop20 - i32.const $push19=, 2 - i32.shl $push18=, $pop0, $pop19 - tee_local $push17=, $4=, $pop18 - i32.const $push16=, 19 - i32.add $push1=, $pop17, $pop16 - i32.const $push15=, -16 - i32.and $push2=, $pop1, $pop15 - i32.sub $push14=, $3, $pop2 - tee_local $push13=, $3=, $pop14 - copy_local $discard=, $pop13 - i32.const $push12=, 1 - i32.store $0=, 0($3), $pop12 - i32.add $push3=, $3, $4 - i32.const $push11=, 2 - i32.store $discard=, 0($pop3), $pop11 - i32.const $push10=, 0 - i32.store $discard=, p($pop10), $3 - i32.add $2=, $2, $0 - copy_local $3=, $1 - i32.const $push9=, 1000000 - i32.ne $push4=, $2, $pop9 - br_if 0, $pop4 # 0: up to label0 + i32.const $push21=, 1000 + i32.rem_s $push0=, $1, $pop21 + i32.const $push20=, 2 + i32.shl $push19=, $pop0, $pop20 + tee_local $push18=, $4=, $pop19 + i32.const $push17=, 19 + i32.add $push2=, $pop18, $pop17 + i32.const $push16=, -16 + i32.and $push3=, $pop2, $pop16 + i32.sub $push15=, $2, $pop3 + tee_local $push14=, $3=, $pop15 + copy_local $discard=, $pop14 + i32.const $push13=, 1 + i32.store $0=, 0($3), $pop13 + i32.add $push4=, $3, $4 + i32.const $push12=, 2 + i32.store $discard=, 0($pop4), $pop12 + i32.const $push11=, 0 + i32.store $discard=, p($pop11), $3 + i32.add $1=, $1, $0 + copy_local $push1=, $2 + copy_local $2=, $pop1 + i32.const $push10=, 1000000 + i32.ne $push5=, $1, $pop10 + br_if 0, $pop5 # 0: up to label0 # BB#2: # %cleanup3 end_loop # label1: - i32.const $push5=, 0 - return $pop5 + i32.const $push6=, 0 + return $pop6 .endfunc .Lfunc_end0: .size main, .Lfunc_end0-main diff --git a/test/torture-s/20041011-1.c.s b/test/torture-s/20041011-1.c.s index a3ca6a69a..d7aacde85 100644 --- a/test/torture-s/20041011-1.c.s +++ b/test/torture-s/20041011-1.c.s @@ -10,9 +10,8 @@ t1: # @t1 .local i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry block - i32.const $push67=, 0 - i32.eq $push68=, $0, $pop67 - br_if 0, $pop68 # 0: down to label0 + i32.eqz $push67=, $0 + br_if 0, $pop67 # 0: down to label0 # BB#1: # %while.body.preheader i32.const $push5=, -1 i32.add $push0=, $0, $pop5 @@ -167,9 +166,8 @@ t2: # @t2 .local i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry block - i32.const $push67=, 0 - i32.eq $push68=, $0, $pop67 - br_if 0, $pop68 # 0: down to label3 + i32.eqz $push67=, $0 + br_if 0, $pop67 # 0: down to label3 # BB#1: # %while.body.preheader i32.const $push4=, -1 i32.add $push0=, $0, $pop4 @@ -324,9 +322,8 @@ t3: # @t3 .local i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry block - i32.const $push67=, 0 - i32.eq $push68=, $0, $pop67 - br_if 0, $pop68 # 0: down to label6 + i32.eqz $push67=, $0 + br_if 0, $pop67 # 0: down to label6 # BB#1: # %while.body.preheader i32.const $push5=, -1 i32.add $push0=, $0, $pop5 @@ -481,9 +478,8 @@ t4: # @t4 .local i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry block - i32.const $push67=, 0 - i32.eq $push68=, $0, $pop67 - br_if 0, $pop68 # 0: down to label9 + i32.eqz $push67=, $0 + br_if 0, $pop67 # 0: down to label9 # BB#1: # %while.body.preheader i32.const $push4=, -1 i32.add $push0=, $0, $pop4 @@ -638,9 +634,8 @@ t5: # @t5 .local i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry block - i32.const $push65=, 0 - i32.eq $push66=, $0, $pop65 - br_if 0, $pop66 # 0: down to label12 + i32.eqz $push65=, $0 + br_if 0, $pop65 # 0: down to label12 # BB#1: # %while.body.preheader i32.const $push3=, -1 i32.add $push0=, $0, $pop3 @@ -793,9 +788,8 @@ t6: # @t6 .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry block - i32.const $push65=, 0 - i32.eq $push66=, $0, $pop65 - br_if 0, $pop66 # 0: down to label15 + i32.eqz $push65=, $0 + br_if 0, $pop65 # 0: down to label15 # BB#1: # %while.body.preheader i32.const $push3=, -1 i32.add $push0=, $0, $pop3 @@ -948,9 +942,8 @@ t7: # @t7 .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry block - i32.const $push67=, 0 - i32.eq $push68=, $0, $pop67 - br_if 0, $pop68 # 0: down to label18 + i32.eqz $push67=, $0 + br_if 0, $pop67 # 0: down to label18 # BB#1: # %while.body.preheader i32.const $push5=, -1 i32.add $push0=, $0, $pop5 @@ -1105,9 +1098,8 @@ t8: # @t8 .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry block - i32.const $push67=, 0 - i32.eq $push68=, $0, $pop67 - br_if 0, $pop68 # 0: down to label21 + i32.eqz $push67=, $0 + br_if 0, $pop67 # 0: down to label21 # BB#1: # %while.body.preheader i32.const $push5=, -1 i32.add $push0=, $0, $pop5 @@ -1262,9 +1254,8 @@ t9: # @t9 .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry block - i32.const $push67=, 0 - i32.eq $push68=, $0, $pop67 - br_if 0, $pop68 # 0: down to label24 + i32.eqz $push67=, $0 + br_if 0, $pop67 # 0: down to label24 # BB#1: # %while.body.preheader i32.const $push5=, -1 i32.add $push0=, $0, $pop5 @@ -1419,9 +1410,8 @@ t10: # @t10 .local i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry block - i32.const $push68=, 0 - i32.eq $push69=, $0, $pop68 - br_if 0, $pop69 # 0: down to label27 + i32.eqz $push68=, $0 + br_if 0, $pop68 # 0: down to label27 # BB#1: # %while.body.lr.ph i32.const $push6=, 0 i64.load $push0=, gull($pop6) @@ -1577,9 +1567,8 @@ t11: # @t11 .local i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry block - i32.const $push68=, 0 - i32.eq $push69=, $0, $pop68 - br_if 0, $pop69 # 0: down to label30 + i32.eqz $push68=, $0 + br_if 0, $pop68 # 0: down to label30 # BB#1: # %while.body.lr.ph i32.const $push6=, 0 i64.load $push0=, gull($pop6) diff --git a/test/torture-s/20041113-1.c.s b/test/torture-s/20041113-1.c.s index 1273e5908..1f30c6802 100644 --- a/test/torture-s/20041113-1.c.s +++ b/test/torture-s/20041113-1.c.s @@ -69,7 +69,7 @@ test: # @test main: # @main .param i32, i32 .result i32 - .local i32, i32 + .local i32, f64 # BB#0: # %entry i32.const $push10=, __stack_pointer i32.const $push7=, __stack_pointer @@ -78,17 +78,17 @@ main: # @main i32.sub $push11=, $pop8, $pop9 i32.store $2=, 0($pop10), $pop11 i32.const $push0=, 0 - f64.load $push1=, a($pop0) - f64.const $push2=, 0x1.4p3 - f64.div $push3=, $pop1, $pop2 - i32.trunc_s/f64 $3=, $pop3 + f64.load $3=, a($pop0) i32.const $push4=, 3 i32.store $discard=, 8($2), $pop4 i32.const $push5=, 2 i32.store $discard=, 4($2), $pop5 i32.const $push6=, 1 i32.store $discard=, 0($2), $pop6 - i32.store $discard=, 12($2), $3 + f64.const $push1=, 0x1.4p3 + f64.div $push2=, $3, $pop1 + i32.trunc_s/f64 $push3=, $pop2 + i32.store $discard=, 12($2), $pop3 call test@FUNCTION, $2, $2 i32.const $push12=, 0 call exit@FUNCTION, $pop12 diff --git a/test/torture-s/20041213-2.c.s b/test/torture-s/20041213-2.c.s index 4579eb9e0..385fd1e6c 100644 --- a/test/torture-s/20041213-2.c.s +++ b/test/torture-s/20041213-2.c.s @@ -10,9 +10,8 @@ foo: # @foo # BB#0: # %entry block block - i32.const $push5=, 0 - i32.eq $push6=, $0, $pop5 - br_if 0, $pop6 # 0: down to label1 + i32.eqz $push5=, $0 + br_if 0, $pop5 # 0: down to label1 # BB#1: # %for.cond1.preheader.preheader i32.const $2=, 0 i32.const $3=, 1 diff --git a/test/torture-s/20041214-1.c.s b/test/torture-s/20041214-1.c.s index a94a4156d..0657286c8 100644 --- a/test/torture-s/20041214-1.c.s +++ b/test/torture-s/20041214-1.c.s @@ -11,9 +11,8 @@ g: # @g # BB#0: # %entry block i32.load8_u $push0=, 0($1) - i32.const $push6=, 0 - i32.eq $push7=, $pop0, $pop6 - br_if 0, $pop7 # 0: down to label0 + i32.eqz $push6=, $pop0 + br_if 0, $pop6 # 0: down to label0 # BB#1: # %do_form_string.preheader i32.const $push3=, 2 i32.add $1=, $1, $pop3 @@ -54,9 +53,8 @@ f: # @f i32.load8_u $4=, 0($1) i32.store $discard=, 12($3), $2 block - i32.const $push12=, 0 - i32.eq $push13=, $4, $pop12 - br_if 0, $pop13 # 0: down to label3 + i32.eqz $push12=, $4 + br_if 0, $pop12 # 0: down to label3 # BB#1: # %do_form_string.i.preheader i32.load $2=, 12($3) i32.const $push9=, 2 diff --git a/test/torture-s/20041218-1.c.s b/test/torture-s/20041218-1.c.s index 8e9289a60..b09a3181e 100644 --- a/test/torture-s/20041218-1.c.s +++ b/test/torture-s/20041218-1.c.s @@ -100,9 +100,8 @@ foo: # @foo i32.store $3=, 0($2), $pop6 block block - i32.const $push9=, 0 - i32.eq $push10=, $1, $pop9 - br_if 0, $pop10 # 0: down to label2 + i32.eqz $push9=, $1 + br_if 0, $pop9 # 0: down to label2 # BB#1: # %for.body i32.const $4=, 1 i32.load $push0=, 0($0) diff --git a/test/torture-s/20050124-1.c.s b/test/torture-s/20050124-1.c.s index ed95e96ca..4249754de 100644 --- a/test/torture-s/20050124-1.c.s +++ b/test/torture-s/20050124-1.c.s @@ -13,9 +13,8 @@ foo: # @foo i32.add $2=, $0, $pop0 block block - i32.const $push7=, 0 - i32.eq $push8=, $1, $pop7 - br_if 0, $pop8 # 0: down to label1 + i32.eqz $push7=, $1 + br_if 0, $pop7 # 0: down to label1 # BB#1: # %if.then i32.const $push1=, 0 i32.lt_s $push2=, $0, $pop1 diff --git a/test/torture-s/20050215-1.c.s b/test/torture-s/20050215-1.c.s index 09edd5e6b..787b24f33 100644 --- a/test/torture-s/20050215-1.c.s +++ b/test/torture-s/20050215-1.c.s @@ -13,9 +13,8 @@ main: # @main i32.const $push13=, v i32.const $push0=, 4 i32.and $push1=, $pop13, $pop0 - i32.const $push17=, 0 - i32.eq $push18=, $pop1, $pop17 - br_if 0, $pop18 # 0: down to label2 + i32.eqz $push17=, $pop1 + br_if 0, $pop17 # 0: down to label2 # BB#1: # %if.then i32.const $push14=, v i32.const $push10=, 7 @@ -34,9 +33,8 @@ main: # @main i32.const $push4=, 0 i32.ne $push5=, $pop3, $pop4 i32.or $push9=, $pop8, $pop5 - i32.const $push19=, 0 - i32.eq $push20=, $pop9, $pop19 - br_if 1, $pop20 # 1: down to label0 + i32.eqz $push18=, $pop9 + br_if 1, $pop18 # 1: down to label0 .LBB0_3: # %if.end3 end_block # label1: i32.const $push12=, 0 diff --git a/test/torture-s/20050218-1.c.s b/test/torture-s/20050218-1.c.s index cd61a5d18..42d286d94 100644 --- a/test/torture-s/20050218-1.c.s +++ b/test/torture-s/20050218-1.c.s @@ -11,9 +11,8 @@ foo: # @foo # BB#0: # %entry i32.const $7=, 0 block - i32.const $push8=, 0 - i32.eq $push9=, $2, $pop8 - br_if 0, $pop9 # 0: down to label0 + i32.eqz $push8=, $2 + br_if 0, $pop8 # 0: down to label0 # BB#1: # %for.body.lr.ph i32.const $5=, 0 i32.const $4=, a @@ -32,9 +31,8 @@ foo: # @foo # in Loop: Header=BB0_2 Depth=1 i32.add $5=, $8, $5 block - i32.const $push10=, 0 - i32.eq $push11=, $1, $pop10 - br_if 0, $pop11 # 0: down to label3 + i32.eqz $push9=, $1 + br_if 0, $pop9 # 0: down to label3 # BB#4: # %if.then6 # in Loop: Header=BB0_2 Depth=1 i32.call $push2=, strlen@FUNCTION, $1 diff --git a/test/torture-s/20050502-1.c.s b/test/torture-s/20050502-1.c.s index 1f95fd95f..68dffa384 100644 --- a/test/torture-s/20050502-1.c.s +++ b/test/torture-s/20050502-1.c.s @@ -76,9 +76,8 @@ foo: # @foo i32.const $push22=, 24 i32.shr_s $push9=, $pop8, $pop22 i32.call $push10=, baz@FUNCTION, $pop9 - i32.const $push32=, 0 - i32.eq $push33=, $pop10, $pop32 - br_if 2, $pop33 # 2: down to label2 + i32.eqz $push32=, $pop10 + br_if 2, $pop32 # 2: down to label2 .LBB2_5: # %while.cond.backedge # in Loop: Header=BB2_3 Depth=1 end_block # label3: @@ -101,9 +100,8 @@ foo: # @foo i32.const $push31=, 34 i32.eq $push15=, $7, $pop31 i32.and $push11=, $pop15, $3 - i32.const $push34=, 0 - i32.eq $push35=, $pop11, $pop34 - br_if 0, $pop35 # 0: up to label1 + i32.eqz $push33=, $pop11 + br_if 0, $pop33 # 0: up to label1 br 2 # 2: down to label0 .LBB2_7: end_loop # label2: diff --git a/test/torture-s/20050826-1.c.s b/test/torture-s/20050826-1.c.s index b85dbb445..74c4c0bdc 100644 --- a/test/torture-s/20050826-1.c.s +++ b/test/torture-s/20050826-1.c.s @@ -92,9 +92,8 @@ foo: # @foo # in Loop: Header=BB1_2 Depth=1 i32.load8_u $1=, a($2) i32.add $2=, $2, $0 - i32.const $push22=, 0 - i32.eq $push23=, $1, $pop22 - br_if 0, $pop23 # 0: up to label6 + i32.eqz $push22=, $1 + br_if 0, $pop22 # 0: up to label6 # BB#4: # %if.then2.i end_loop # label7: call abort@FUNCTION @@ -157,9 +156,8 @@ main: # @main # in Loop: Header=BB2_2 Depth=1 i32.load8_u $1=, a($2) i32.add $2=, $2, $0 - i32.const $push22=, 0 - i32.eq $push23=, $1, $pop22 - br_if 0, $pop23 # 0: up to label10 + i32.eqz $push22=, $1 + br_if 0, $pop22 # 0: up to label10 # BB#4: # %if.then2.i.i end_loop # label11: call abort@FUNCTION diff --git a/test/torture-s/20050826-2.c.s b/test/torture-s/20050826-2.c.s index 85bd3baa2..674f8cff7 100644 --- a/test/torture-s/20050826-2.c.s +++ b/test/torture-s/20050826-2.c.s @@ -16,9 +16,8 @@ inet_check_attr: # @inet_check_attr block i32.load $push8=, 0($1) tee_local $push7=, $4=, $pop8 - i32.const $push17=, 0 - i32.eq $push18=, $pop7, $pop17 - br_if 0, $pop18 # 0: down to label2 + i32.eqz $push17=, $pop7 + br_if 0, $pop17 # 0: down to label2 # BB#2: # %if.then # in Loop: Header=BB0_1 Depth=1 i32.const $3=, -22 @@ -123,9 +122,6 @@ main: # @main i32.call $push2=, inet_check_attr@FUNCTION, $1, $4 br_if 0, $pop2 # 0: down to label5 # BB#1: # %for.body9.preheader - i32.const $push121=, 56 - i32.add $push122=, $4, $pop121 - copy_local $2=, $pop122 i32.load $push16=, 0($4) i32.const $push119=, 56 i32.add $push120=, $4, $pop119 @@ -168,7 +164,11 @@ main: # @main i32.const $push23=, 28 i32.add $push24=, $4, $pop23 i32.load $push9=, 0($pop24) - i32.ne $push44=, $pop9, $2 + i32.const $push121=, 56 + i32.add $push122=, $4, $pop121 + copy_local $push155=, $pop122 + tee_local $push154=, $2=, $pop155 + i32.ne $push44=, $pop9, $pop154 br_if 2, $pop44 # 2: down to label3 # BB#9: # %for.body9.preheader i32.const $push25=, 32 @@ -269,8 +269,8 @@ main: # @main i32.add $push146=, $4, $pop145 i32.store $discard=, 12($4), $pop146 i32.const $1=, 0 - i32.const $push154=, 0 - i32.store $discard=, 4($4), $pop154 + i32.const $push156=, 0 + i32.store $discard=, 4($4), $pop156 i32.call $push73=, inet_check_attr@FUNCTION, $1, $4 i32.const $push74=, -22 i32.ne $push75=, $pop73, $pop74 @@ -282,27 +282,26 @@ main: # @main block loop # label7: block - i32.const $push155=, 1 - i32.ne $push76=, $1, $pop155 + i32.const $push157=, 1 + i32.ne $push76=, $1, $pop157 br_if 0, $pop76 # 0: down to label9 # BB#18: # %land.lhs.true # in Loop: Header=BB1_17 Depth=1 i32.const $1=, 2 - i32.const $push160=, 0 - i32.eq $push161=, $3, $pop160 - br_if 1, $pop161 # 1: up to label7 + i32.eqz $push162=, $3 + br_if 1, $pop162 # 1: up to label7 br 3 # 3: down to label6 .LBB1_19: # %if.else # in Loop: Header=BB1_17 Depth=1 end_block # label9: - i32.const $push157=, 2 - i32.shl $push77=, $1, $pop157 + i32.const $push159=, 2 + i32.shl $push77=, $1, $pop159 i32.add $push78=, $4, $pop77 i32.load $2=, 0($pop78) block block - i32.const $push156=, 5 - i32.gt_s $push79=, $1, $pop156 + i32.const $push158=, 5 + i32.gt_s $push79=, $1, $pop158 br_if 0, $pop79 # 0: down to label11 # BB#20: # %land.lhs.true55 # in Loop: Header=BB1_17 Depth=1 @@ -319,10 +318,10 @@ main: # @main .LBB1_22: # %for.inc73 # in Loop: Header=BB1_17 Depth=1 end_block # label10: - i32.const $push159=, 1 - i32.add $1=, $1, $pop159 - i32.const $push158=, 14 - i32.lt_s $push82=, $1, $pop158 + i32.const $push161=, 1 + i32.add $1=, $1, $pop161 + i32.const $push160=, 14 + i32.lt_s $push82=, $1, $pop160 br_if 0, $pop82 # 0: up to label7 # BB#23: # %for.end75 end_loop # label8: diff --git a/test/torture-s/20051110-1.c.s b/test/torture-s/20051110-1.c.s index b9509c231..a739f7681 100644 --- a/test/torture-s/20051110-1.c.s +++ b/test/torture-s/20051110-1.c.s @@ -14,9 +14,8 @@ add_unwind_adjustsp: # @add_unwind_adjustsp i32.const $push2=, 2 i32.shr_s $push7=, $pop1, $pop2 tee_local $push6=, $0=, $pop7 - i32.const $push14=, 0 - i32.eq $push15=, $pop6, $pop14 - br_if 0, $pop15 # 0: down to label0 + i32.eqz $push14=, $pop6 + br_if 0, $pop14 # 0: down to label0 # BB#1: # %while.body.preheader i32.const $1=, bytes .LBB0_2: # %while.body diff --git a/test/torture-s/20051110-2.c.s b/test/torture-s/20051110-2.c.s index 3f206d14e..36306fbd1 100644 --- a/test/torture-s/20051110-2.c.s +++ b/test/torture-s/20051110-2.c.s @@ -23,9 +23,8 @@ add_unwind_adjustsp: # @add_unwind_adjustsp i32.const $push11=, 7 i32.shr_u $push10=, $pop12, $pop11 tee_local $push9=, $0=, $pop10 - i32.const $push14=, 0 - i32.eq $push15=, $pop9, $pop14 - br_if 1, $pop15 # 1: down to label1 + i32.eqz $push14=, $pop9 + br_if 1, $pop14 # 1: down to label1 # BB#2: # %if.then # in Loop: Header=BB0_1 Depth=1 br_if 0, $1 # 0: up to label0 @@ -67,9 +66,8 @@ main: # @main i32.const $push17=, 7 i32.shr_u $push16=, $pop18, $pop17 tee_local $push15=, $2=, $pop16 - i32.const $push22=, 0 - i32.eq $push23=, $pop15, $pop22 - br_if 1, $pop23 # 1: down to label3 + i32.eqz $push22=, $pop15 + br_if 1, $pop22 # 1: down to label3 # BB#2: # %if.then.i # in Loop: Header=BB1_1 Depth=1 br_if 0, $0 # 0: up to label2 diff --git a/test/torture-s/20051215-1.c.s b/test/torture-s/20051215-1.c.s index 24dafd055..f7e7c1d6b 100644 --- a/test/torture-s/20051215-1.c.s +++ b/test/torture-s/20051215-1.c.s @@ -22,9 +22,8 @@ foo: # @foo # =>This Inner Loop Header: Depth=1 loop # label1: block - i32.const $push10=, 0 - i32.eq $push11=, $2, $pop10 - br_if 0, $pop11 # 0: down to label3 + i32.eqz $push10=, $2 + br_if 0, $pop10 # 0: down to label3 # BB#3: # %if.then # in Loop: Header=BB0_2 Depth=1 i32.load $push1=, 0($2) diff --git a/test/torture-s/20060420-1.c.s b/test/torture-s/20060420-1.c.s index ff365c2cc..a80ed9687 100644 --- a/test/torture-s/20060420-1.c.s +++ b/test/torture-s/20060420-1.c.s @@ -26,9 +26,8 @@ foo: # @foo i32.add $push1=, $7, $0 i32.const $push85=, 15 i32.and $push2=, $pop1, $pop85 - i32.const $push156=, 0 - i32.eq $push157=, $pop2, $pop156 - br_if 1, $pop157 # 1: down to label2 + i32.eqz $push156=, $pop2 + br_if 1, $pop156 # 1: down to label2 # BB#3: # %for.body # in Loop: Header=BB0_2 Depth=1 i32.load $push3=, 0($1) diff --git a/test/torture-s/20061101-1.c.s b/test/torture-s/20061101-1.c.s index d8631ee0e..32b0b9a25 100644 --- a/test/torture-s/20061101-1.c.s +++ b/test/torture-s/20061101-1.c.s @@ -41,9 +41,8 @@ bug: # @bug loop # label2: i32.const $push6=, 1 i32.and $push1=, $3, $pop6 - i32.const $push11=, 0 - i32.eq $push12=, $pop1, $pop11 - br_if 2, $pop12 # 2: down to label1 + i32.eqz $push11=, $pop1 + br_if 2, $pop11 # 2: down to label1 # BB#2: # %while.body # in Loop: Header=BB1_1 Depth=1 i32.const $3=, 0 diff --git a/test/torture-s/20061101-2.c.s b/test/torture-s/20061101-2.c.s index 5b0dc1e2a..921783fd1 100644 --- a/test/torture-s/20061101-2.c.s +++ b/test/torture-s/20061101-2.c.s @@ -41,9 +41,8 @@ bug: # @bug loop # label2: i32.const $push6=, 1 i32.and $push1=, $3, $pop6 - i32.const $push11=, 0 - i32.eq $push12=, $pop1, $pop11 - br_if 2, $pop12 # 2: down to label1 + i32.eqz $push11=, $pop1 + br_if 2, $pop11 # 2: down to label1 # BB#2: # %while.body # in Loop: Header=BB1_1 Depth=1 i32.const $3=, 0 diff --git a/test/torture-s/20070212-3.c.s b/test/torture-s/20070212-3.c.s index 0478e2a85..db7ec8ce7 100644 --- a/test/torture-s/20070212-3.c.s +++ b/test/torture-s/20070212-3.c.s @@ -17,9 +17,8 @@ bar: # @bar i32.const $push2=, 1 i32.store $discard=, 0($0), $pop2 block - i32.const $push6=, 0 - i32.eq $push7=, $3, $pop6 - br_if 0, $pop7 # 0: down to label0 + i32.eqz $push6=, $3 + br_if 0, $pop6 # 0: down to label0 # BB#1: # %if.then3 i32.load $1=, 0($4) .LBB0_2: # %if.end5 diff --git a/test/torture-s/20070517-1.c.s b/test/torture-s/20070517-1.c.s index 542c44002..bff8e01a9 100644 --- a/test/torture-s/20070517-1.c.s +++ b/test/torture-s/20070517-1.c.s @@ -20,9 +20,8 @@ main: # @main i32.shl $push5=, $pop4, $0 i32.const $push6=, 1568 i32.and $push7=, $pop5, $pop6 - i32.const $push13=, 0 - i32.eq $push14=, $pop7, $pop13 - br_if 0, $pop14 # 0: down to label1 + i32.eqz $push13=, $pop7 + br_if 0, $pop13 # 0: down to label1 # BB#2: # %if.then.i i32.const $push1=, -9 i32.add $push0=, $0, $pop1 diff --git a/test/torture-s/20070614-1.c.s b/test/torture-s/20070614-1.c.s index 502d07434..af5c3e1a8 100644 --- a/test/torture-s/20070614-1.c.s +++ b/test/torture-s/20070614-1.c.s @@ -96,9 +96,8 @@ main: # @main tee_local $push3=, $0=, $pop4 f64.eq $push0=, $pop3, $0 i32.and $push2=, $pop1, $pop0 - i32.const $push10=, 0 - i32.eq $push11=, $pop2, $pop10 - br_if 0, $pop11 # 0: down to label2 + i32.eqz $push10=, $pop2 + br_if 0, $pop10 # 0: down to label2 # BB#1: # %baz.exit i32.const $push9=, 0 return $pop9 diff --git a/test/torture-s/20071011-1.c.s b/test/torture-s/20071011-1.c.s index 9a9e4699d..8f126e87a 100644 --- a/test/torture-s/20071011-1.c.s +++ b/test/torture-s/20071011-1.c.s @@ -12,9 +12,8 @@ foo: # @foo i32.const $push0=, 0 i32.store $discard=, 0($0), $pop0 block - i32.const $push1=, 0 - i32.eq $push2=, $1, $pop1 - br_if 0, $pop2 # 0: down to label0 + i32.eqz $push1=, $1 + br_if 0, $pop1 # 0: down to label0 # BB#1: # %if.then return .LBB0_2: # %if.end diff --git a/test/torture-s/20071018-1.c.s b/test/torture-s/20071018-1.c.s index 7c5ee0348..ad411dc02 100644 --- a/test/torture-s/20071018-1.c.s +++ b/test/torture-s/20071018-1.c.s @@ -50,9 +50,8 @@ main: # @main block i32.const $push0=, 1 i32.call $push1=, foo@FUNCTION, $pop0 - i32.const $push3=, 0 - i32.eq $push4=, $pop1, $pop3 - br_if 0, $pop4 # 0: down to label0 + i32.eqz $push3=, $pop1 + br_if 0, $pop3 # 0: down to label0 # BB#1: # %if.end i32.const $push2=, 0 return $pop2 diff --git a/test/torture-s/20071030-1.c.s b/test/torture-s/20071030-1.c.s index 57c849927..32d07092c 100644 --- a/test/torture-s/20071030-1.c.s +++ b/test/torture-s/20071030-1.c.s @@ -47,9 +47,8 @@ CalcPing: # @CalcPing end_loop # label2: i32.const $1=, 9999 block - i32.const $push22=, 0 - i32.eq $push23=, $2, $pop22 - br_if 0, $pop23 # 0: down to label3 + i32.eqz $push22=, $2 + br_if 0, $pop22 # 0: down to label3 # BB#5: # %if.end9 f32.convert_s/i32 $push6=, $2 f32.div $push7=, $3, $pop6 @@ -114,9 +113,8 @@ main: # @main # BB#2: # %for.end.i end_loop # label5: block - i32.const $push39=, 0 - i32.eq $push40=, $1, $pop39 - br_if 0, $pop40 # 0: down to label6 + i32.eqz $push39=, $1 + br_if 0, $pop39 # 0: down to label6 # BB#3: # %CalcPing.exit f32.convert_s/i32 $push6=, $1 f32.div $push7=, $2, $pop6 diff --git a/test/torture-s/20071120-1.c.s b/test/torture-s/20071120-1.c.s index 51a9dfecb..a3dd4843a 100644 --- a/test/torture-s/20071120-1.c.s +++ b/test/torture-s/20071120-1.c.s @@ -36,9 +36,8 @@ pop_to_parent_deferring_access_checks: # @pop_to_parent_deferring_access_checks i32.const $push13=, 0 i32.load $push12=, deferred_access_no_check($pop13) tee_local $push11=, $0=, $pop12 - i32.const $push20=, 0 - i32.eq $push21=, $pop11, $pop20 - br_if 0, $pop21 # 0: down to label0 + i32.eqz $push20=, $pop11 + br_if 0, $pop20 # 0: down to label0 # BB#1: # %if.then i32.const $push14=, 0 i32.const $push1=, -1 @@ -52,22 +51,19 @@ pop_to_parent_deferring_access_checks: # @pop_to_parent_deferring_access_checks i32.const $push17=, 0 i32.load $push16=, deferred_access_stack($pop17) tee_local $push15=, $0=, $pop16 - i32.const $push22=, 0 - i32.eq $push23=, $pop15, $pop22 - br_if 0, $pop23 # 0: down to label2 + i32.eqz $push21=, $pop15 + br_if 0, $pop21 # 0: down to label2 # BB#3: # %land.lhs.true.i i32.load $push19=, 0($0) tee_local $push18=, $1=, $pop19 - i32.const $push24=, 0 - i32.eq $push25=, $pop18, $pop24 - br_if 0, $pop25 # 0: down to label2 + i32.eqz $push22=, $pop18 + br_if 0, $pop22 # 0: down to label2 # BB#4: # %land.lhs.true.i25 i32.const $push3=, -1 i32.add $push4=, $1, $pop3 i32.store $push0=, 0($0), $pop4 - i32.const $push26=, 0 - i32.eq $push27=, $pop0, $pop26 - br_if 0, $pop27 # 0: down to label2 + i32.eqz $push23=, $pop0 + br_if 0, $pop23 # 0: down to label2 # BB#5: # %VEC_deferred_access_base_last.exit29 i32.const $push5=, 3 i32.shl $push6=, $1, $pop5 @@ -75,9 +71,8 @@ pop_to_parent_deferring_access_checks: # @pop_to_parent_deferring_access_checks i32.const $push8=, -8 i32.add $push9=, $pop7, $pop8 i32.load $push10=, 0($pop9) - i32.const $push28=, 0 - i32.eq $push29=, $pop10, $pop28 - br_if 1, $pop29 # 1: down to label1 + i32.eqz $push24=, $pop10 + br_if 1, $pop24 # 1: down to label1 # BB#6: # %if.end16 return .LBB2_7: # %cond.false.i26 diff --git a/test/torture-s/20071211-1.c.s b/test/torture-s/20071211-1.c.s index 77669b204..9aa8ea30d 100644 --- a/test/torture-s/20071211-1.c.s +++ b/test/torture-s/20071211-1.c.s @@ -35,9 +35,8 @@ main: # @main i64.const $push10=, 16777215 i64.and $push11=, $0, $pop10 i64.eqz $push12=, $pop11 - i32.const $push23=, 0 - i32.eq $push24=, $pop12, $pop23 - br_if 0, $pop24 # 0: down to label0 + i32.eqz $push23=, $pop12 + br_if 0, $pop23 # 0: down to label0 # BB#1: # %if.end i32.const $push22=, 0 return $pop22 diff --git a/test/torture-s/20071219-1.c.s b/test/torture-s/20071219-1.c.s index 26f2affc2..66ecaf88d 100644 --- a/test/torture-s/20071219-1.c.s +++ b/test/torture-s/20071219-1.c.s @@ -20,9 +20,8 @@ foo: # @foo # BB#2: # %if.else # in Loop: Header=BB0_1 Depth=1 block - i32.const $push7=, 0 - i32.eq $push8=, $1, $pop7 - br_if 0, $pop8 # 0: down to label3 + i32.eqz $push7=, $1 + br_if 0, $pop7 # 0: down to label3 # BB#3: # %if.then3 # in Loop: Header=BB0_1 Depth=1 i32.store8 $discard=, 0($3), $1 diff --git a/test/torture-s/20080519-1.c.s b/test/torture-s/20080519-1.c.s index b54c127a5..e5b8be5ca 100644 --- a/test/torture-s/20080519-1.c.s +++ b/test/torture-s/20080519-1.c.s @@ -45,9 +45,8 @@ regrename_optimize: # @regrename_optimize i64.const $push1=, 0 i64.store $discard=, 8($1):p2align=2, $pop1 block - i32.const $push43=, 0 - i32.eq $push44=, $5, $pop43 - br_if 0, $pop44 # 0: down to label1 + i32.eqz $push43=, $5 + br_if 0, $pop43 # 0: down to label1 # BB#1: # %for.body.preheader i32.const $3=, 0 i32.const $2=, -1 diff --git a/test/torture-s/20080604-1.c.s b/test/torture-s/20080604-1.c.s index 969d66a67..64c69fa1e 100644 --- a/test/torture-s/20080604-1.c.s +++ b/test/torture-s/20080604-1.c.s @@ -9,9 +9,8 @@ foo: # @foo block i32.const $push0=, 0 i32.load $push1=, x($pop0) - i32.const $push2=, 0 - i32.eq $push3=, $pop1, $pop2 - br_if 0, $pop3 # 0: down to label0 + i32.eqz $push2=, $pop1 + br_if 0, $pop2 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then diff --git a/test/torture-s/20081117-1.c.s b/test/torture-s/20081117-1.c.s index 9d693fdfe..b342dd055 100644 --- a/test/torture-s/20081117-1.c.s +++ b/test/torture-s/20081117-1.c.s @@ -41,9 +41,8 @@ main: # @main i32.add $push11=, $0, $pop10 i32.const $push1=, -2023406815 i32.call $push2=, f@FUNCTION, $pop11, $pop1 - i32.const $push17=, 0 - i32.eq $push18=, $pop2, $pop17 - br_if 0, $pop18 # 0: down to label0 + i32.eqz $push17=, $pop2 + br_if 0, $pop17 # 0: down to label0 # BB#1: # %if.end i32.const $push9=, __stack_pointer i32.const $push7=, 16 diff --git a/test/torture-s/20090113-1.c.s b/test/torture-s/20090113-1.c.s index 010c26d6c..fb2231967 100644 --- a/test/torture-s/20090113-1.c.s +++ b/test/torture-s/20090113-1.c.s @@ -139,14 +139,14 @@ main: # @main i32.const $push15=, 112 i32.sub $push19=, $pop14, $pop15 tee_local $push18=, $4=, $pop19 - copy_local $2=, $pop18 - i32.const $push16=, 36 - i32.add $push17=, $4, $pop16 - copy_local $3=, $pop17 i32.const $push1=, 0 - i32.store $discard=, 80($4), $pop1 + i32.store $discard=, 80($pop18), $pop1 i32.const $push2=, 3 i32.store $discard=, 48($4), $pop2 + copy_local $2=, $4 + i32.const $push16=, 36 + i32.add $push17=, $4, $pop16 + copy_local $3=, $pop17 .LBB1_1: # %for.body18.i # =>This Inner Loop Header: Depth=1 loop # label8: diff --git a/test/torture-s/20090113-2.c.s b/test/torture-s/20090113-2.c.s index a622fe40d..bc230b72f 100644 --- a/test/torture-s/20090113-2.c.s +++ b/test/torture-s/20090113-2.c.s @@ -84,9 +84,8 @@ foobar: # @foobar block i32.load $push37=, 0($1) tee_local $push36=, $0=, $pop37 - i32.const $push67=, 0 - i32.eq $push68=, $pop36, $pop67 - br_if 0, $pop68 # 0: down to label3 + i32.eqz $push67=, $pop36 + br_if 0, $pop67 # 0: down to label3 # BB#2: # %while.cond.preheader.i # in Loop: Header=BB1_1 Depth=1 block @@ -103,9 +102,8 @@ foobar: # @foobar i32.add $3=, $3, $pop40 i32.const $push39=, 1 i32.and $push3=, $0, $pop39 - i32.const $push69=, 0 - i32.eq $push70=, $pop3, $pop69 - br_if 0, $pop70 # 0: up to label5 + i32.eqz $push68=, $pop3 + br_if 0, $pop68 # 0: up to label5 .LBB1_4: # %while.end.i # in Loop: Header=BB1_1 Depth=1 end_loop # label6: @@ -178,9 +176,8 @@ foobar: # @foobar # in Loop: Header=BB1_6 Depth=2 end_block # label9: i32.load $4=, 0($4) - i32.const $push71=, 0 - i32.eq $push72=, $4, $pop71 - br_if 4, $pop72 # 4: down to label1 + i32.eqz $push69=, $4 + br_if 4, $pop69 # 4: down to label1 # BB#12: # %if.end25.i # in Loop: Header=BB1_6 Depth=2 i32.load $push10=, 8($4) @@ -320,9 +317,8 @@ bmp_iter_set_tail: # @bmp_iter_set_tail i32.add $2=, $2, $pop8 i32.const $push7=, 1 i32.and $push1=, $3, $pop7 - i32.const $push10=, 0 - i32.eq $push11=, $pop1, $pop10 - br_if 0, $pop11 # 0: up to label15 + i32.eqz $push10=, $pop1 + br_if 0, $pop10 # 0: up to label15 # BB#3: # %while.cond.while.end_crit_edge end_loop # label16: i32.const $push2=, 12 diff --git a/test/torture-s/20090113-3.c.s b/test/torture-s/20090113-3.c.s index 577bfc698..072c139b0 100644 --- a/test/torture-s/20090113-3.c.s +++ b/test/torture-s/20090113-3.c.s @@ -80,9 +80,8 @@ foobar: # @foobar loop # label0: block block - i32.const $push59=, 0 - i32.eq $push60=, $0, $pop59 - br_if 0, $pop60 # 0: down to label3 + i32.eqz $push59=, $0 + br_if 0, $pop59 # 0: down to label3 # BB#2: # %while.cond.preheader.i # in Loop: Header=BB1_1 Depth=1 i32.const $push38=, 1 @@ -96,9 +95,8 @@ foobar: # @foobar i32.shr_u $0=, $0, $pop40 i32.const $push39=, 1 i32.and $push2=, $0, $pop39 - i32.const $push61=, 0 - i32.eq $push62=, $pop2, $pop61 - br_if 0, $pop62 # 0: up to label4 + i32.eqz $push60=, $pop2 + br_if 0, $pop60 # 0: up to label4 # BB#4: # %while.cond.return.loopexit62_crit_edge.i # in Loop: Header=BB1_1 Depth=1 end_loop # label5: @@ -184,9 +182,8 @@ foobar: # @foobar i32.shr_u $0=, $0, $pop58 i32.const $push57=, 1 i32.and $push10=, $0, $pop57 - i32.const $push63=, 0 - i32.eq $push64=, $pop10, $pop63 - br_if 0, $pop64 # 0: up to label11 + i32.eqz $push61=, $pop10 + br_if 0, $pop61 # 0: up to label11 # BB#14: # %while.cond16.return.loopexit_crit_edge.i # in Loop: Header=BB1_1 Depth=1 end_loop # label12: diff --git a/test/torture-s/20100805-1.c.s b/test/torture-s/20100805-1.c.s index 5d40cbff6..f104f35cd 100644 --- a/test/torture-s/20100805-1.c.s +++ b/test/torture-s/20100805-1.c.s @@ -11,9 +11,8 @@ foo: # @foo i32.const $push0=, 1 i32.and $0=, $0, $pop0 block - i32.const $push3=, 0 - i32.eq $push4=, $1, $pop3 - br_if 0, $pop4 # 0: down to label0 + i32.eqz $push3=, $1 + br_if 0, $pop3 # 0: down to label0 # BB#1: # %for.body.preheader .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 diff --git a/test/torture-s/20100827-1.c.s b/test/torture-s/20100827-1.c.s index 68043fa5b..55d0c7dbf 100644 --- a/test/torture-s/20100827-1.c.s +++ b/test/torture-s/20100827-1.c.s @@ -13,9 +13,8 @@ foo: # @foo block block i32.load8_u $push0=, 0($0) - i32.const $push7=, 0 - i32.eq $push8=, $pop0, $pop7 - br_if 0, $pop8 # 0: down to label1 + i32.eqz $push7=, $pop0 + br_if 0, $pop7 # 0: down to label1 # BB#1: # %if.end.preheader i32.const $1=, 0 .LBB0_2: # %if.end @@ -23,9 +22,8 @@ foo: # @foo loop # label2: i32.add $push4=, $0, $1 tee_local $push3=, $2=, $pop4 - i32.const $push9=, 0 - i32.eq $push10=, $pop3, $pop9 - br_if 3, $pop10 # 3: down to label0 + i32.eqz $push8=, $pop3 + br_if 3, $pop8 # 3: down to label0 # BB#3: # %if.end5 # in Loop: Header=BB0_2 Depth=1 i32.const $push6=, 1 diff --git a/test/torture-s/20111227-1.c.s b/test/torture-s/20111227-1.c.s index 0f67d34fb..101915721 100644 --- a/test/torture-s/20111227-1.c.s +++ b/test/torture-s/20111227-1.c.s @@ -30,9 +30,8 @@ foo: # @foo # BB#0: # %entry i32.load16_u $0=, 0($0) block - i32.const $push4=, 0 - i32.eq $push5=, $1, $pop4 - br_if 0, $pop5 # 0: down to label1 + i32.eqz $push4=, $1 + br_if 0, $pop4 # 0: down to label1 # BB#1: # %if.then call bar@FUNCTION, $0 return diff --git a/test/torture-s/20111227-2.c.s b/test/torture-s/20111227-2.c.s index f61d44118..cef13a4b1 100644 --- a/test/torture-s/20111227-2.c.s +++ b/test/torture-s/20111227-2.c.s @@ -66,9 +66,8 @@ foo: # @foo block block block - i32.const $push8=, 0 - i32.eq $push9=, $1, $pop8 - br_if 0, $pop9 # 0: down to label6 + i32.eqz $push8=, $1 + br_if 0, $pop8 # 0: down to label6 # BB#1: # %entry i32.const $push0=, 1 i32.eq $push1=, $1, $pop0 diff --git a/test/torture-s/20111227-3.c.s b/test/torture-s/20111227-3.c.s index bb0aff5d7..fcc50b40e 100644 --- a/test/torture-s/20111227-3.c.s +++ b/test/torture-s/20111227-3.c.s @@ -66,9 +66,8 @@ foo: # @foo block block block - i32.const $push8=, 0 - i32.eq $push9=, $1, $pop8 - br_if 0, $pop9 # 0: down to label6 + i32.eqz $push8=, $1 + br_if 0, $pop8 # 0: down to label6 # BB#1: # %entry i32.const $push0=, 1 i32.eq $push1=, $1, $pop0 diff --git a/test/torture-s/20120427-1.c.s b/test/torture-s/20120427-1.c.s index a66216222..36571a1ea 100644 --- a/test/torture-s/20120427-1.c.s +++ b/test/torture-s/20120427-1.c.s @@ -81,9 +81,8 @@ main: # @main block block block - i32.const $push72=, 0 - i32.eq $push73=, $6, $pop72 - br_if 0, $pop73 # 0: down to label11 + i32.eqz $push72=, $6 + br_if 0, $pop72 # 0: down to label11 # BB#2: # %if.end14 # in Loop: Header=BB1_1 Depth=1 i32.const $push53=, 1 diff --git a/test/torture-s/20120427-2.c.s b/test/torture-s/20120427-2.c.s index 0cb5a34f5..c913eab50 100644 --- a/test/torture-s/20120427-2.c.s +++ b/test/torture-s/20120427-2.c.s @@ -81,9 +81,8 @@ main: # @main block block block - i32.const $push72=, 0 - i32.eq $push73=, $6, $pop72 - br_if 0, $pop73 # 0: down to label11 + i32.eqz $push72=, $6 + br_if 0, $pop72 # 0: down to label11 # BB#2: # %if.end14 # in Loop: Header=BB1_1 Depth=1 i32.const $push53=, 1 diff --git a/test/torture-s/20120615-1.c.s b/test/torture-s/20120615-1.c.s index 3dd352541..09dd9cf15 100644 --- a/test/torture-s/20120615-1.c.s +++ b/test/torture-s/20120615-1.c.s @@ -16,9 +16,8 @@ test1: # @test1 i32.shl $push3=, $pop2, $0 i32.const $push4=, 167936 i32.and $push5=, $pop3, $pop4 - i32.const $push6=, 0 - i32.eq $push7=, $pop5, $pop6 - br_if 0, $pop7 # 0: down to label0 + i32.eqz $push6=, $pop5 + br_if 0, $pop6 # 0: down to label0 # BB#2: # %if.end6 return .LBB0_3: # %if.end5 diff --git a/test/torture-s/20121108-1.c.s b/test/torture-s/20121108-1.c.s index d79f3549a..fe501616c 100644 --- a/test/torture-s/20121108-1.c.s +++ b/test/torture-s/20121108-1.c.s @@ -60,9 +60,8 @@ string_to_ip: # @string_to_ip i32.store $1=, 0($pop23), $pop35 i32.const $2=, 0 block - i32.const $push56=, 0 - i32.eq $push57=, $0, $pop56 - br_if 0, $pop57 # 0: down to label2 + i32.eqz $push56=, $0 + br_if 0, $pop56 # 0: down to label2 # BB#1: # %if.end9 i32.const $push27=, 12 i32.add $push28=, $1, $pop27 @@ -80,9 +79,8 @@ string_to_ip: # @string_to_ip i32.load8_u $push1=, 0($2) i32.select $push37=, $pop2, $2, $pop1 tee_local $push36=, $2=, $pop37 - i32.const $push58=, 0 - i32.eq $push59=, $pop36, $pop58 - br_if 0, $pop59 # 0: down to label4 + i32.eqz $push57=, $pop36 + br_if 0, $pop57 # 0: down to label4 # BB#2: # %if.end9.1 i32.const $push29=, 12 i32.add $push30=, $1, $pop29 @@ -97,9 +95,8 @@ string_to_ip: # @string_to_ip i32.load8_u $push7=, 0($2) i32.select $push43=, $pop8, $2, $pop7 tee_local $push42=, $2=, $pop43 - i32.const $push60=, 0 - i32.eq $push61=, $pop42, $pop60 - br_if 0, $pop61 # 0: down to label4 + i32.eqz $push58=, $pop42 + br_if 0, $pop58 # 0: down to label4 # BB#3: # %if.end9.2 i32.const $push31=, 12 i32.add $push32=, $1, $pop31 @@ -116,9 +113,8 @@ string_to_ip: # @string_to_ip i32.load8_u $push12=, 0($2) i32.select $push49=, $pop14, $2, $pop12 tee_local $push48=, $2=, $pop49 - i32.const $push62=, 0 - i32.eq $push63=, $pop48, $pop62 - br_if 1, $pop63 # 1: down to label3 + i32.eqz $push59=, $pop48 + br_if 1, $pop59 # 1: down to label3 # BB#4: # %if.then3.3 i32.const $push33=, 12 i32.add $push34=, $1, $pop33 diff --git a/test/torture-s/20140212-1.c.s b/test/torture-s/20140212-1.c.s index 3a496620b..c76013633 100644 --- a/test/torture-s/20140212-1.c.s +++ b/test/torture-s/20140212-1.c.s @@ -35,9 +35,8 @@ fn1: # @fn1 loop # label0: block block - i32.const $push24=, 0 - i32.eq $push25=, $1, $pop24 - br_if 0, $pop25 # 0: down to label3 + i32.eqz $push24=, $1 + br_if 0, $pop24 # 0: down to label3 # BB#2: # %if.then # in Loop: Header=BB0_1 Depth=1 i32.const $push20=, 1 @@ -52,9 +51,8 @@ fn1: # @fn1 .LBB0_4: # %if.end # in Loop: Header=BB0_1 Depth=1 end_block # label2: - i32.const $push26=, 0 - i32.eq $push27=, $2, $pop26 - br_if 0, $pop27 # 0: up to label0 + i32.eqz $push25=, $2 + br_if 0, $pop25 # 0: up to label0 # BB#5: # %if.then15 end_loop # label1: i32.const $push6=, 0 @@ -102,9 +100,8 @@ main: # @main loop # label4: block block - i32.const $push26=, 0 - i32.eq $push27=, $1, $pop26 - br_if 0, $pop27 # 0: down to label7 + i32.eqz $push26=, $1 + br_if 0, $pop26 # 0: down to label7 # BB#2: # %if.then.i # in Loop: Header=BB1_1 Depth=1 i32.const $3=, 1 @@ -120,9 +117,8 @@ main: # @main .LBB1_4: # %if.end.i # in Loop: Header=BB1_1 Depth=1 end_block # label6: - i32.const $push28=, 0 - i32.eq $push29=, $2, $pop28 - br_if 0, $pop29 # 0: up to label4 + i32.eqz $push27=, $2 + br_if 0, $pop27 # 0: up to label4 # BB#5: # %fn1.exit end_loop # label5: i32.const $push24=, 0 diff --git a/test/torture-s/920428-1.c.s b/test/torture-s/920428-1.c.s index 85321a16e..161db93dd 100644 --- a/test/torture-s/920428-1.c.s +++ b/test/torture-s/920428-1.c.s @@ -23,9 +23,8 @@ main: # @main # BB#0: # %entry block i32.const $push0=, 1 - i32.const $push2=, 0 - i32.eq $push3=, $pop0, $pop2 - br_if 0, $pop3 # 0: down to label0 + i32.eqz $push2=, $pop0 + br_if 0, $pop2 # 0: down to label0 # BB#1: # %if.end i32.const $push1=, 0 call exit@FUNCTION, $pop1 diff --git a/test/torture-s/920501-1.c.s b/test/torture-s/920501-1.c.s index 57fa460a8..f3bfec340 100644 --- a/test/torture-s/920501-1.c.s +++ b/test/torture-s/920501-1.c.s @@ -36,7 +36,7 @@ main: # @main # BB#0: # %if.end i32.const $push1=, 0 i64.const $push0=, 0 - i64.store $discard=, s($pop1):p2align=2, $pop0 + i64.store $discard=, s($pop1), $pop0 i32.const $push2=, 0 call exit@FUNCTION, $pop2 unreachable @@ -48,7 +48,7 @@ main: # @main .type s,@object .section .bss.s,"aw",@nobits .globl s - .p2align 2 + .p2align 3 s: .skip 8 .size s, 8 diff --git a/test/torture-s/920501-2.c.s b/test/torture-s/920501-2.c.s index 5e0ef9e20..5a888404a 100644 --- a/test/torture-s/920501-2.c.s +++ b/test/torture-s/920501-2.c.s @@ -51,9 +51,8 @@ powmod_ll: # @powmod_ll i64.const $5=, 1 block block - i32.const $push16=, 0 - i32.eq $push17=, $1, $pop16 - br_if 0, $pop17 # 0: down to label5 + i32.eqz $push16=, $1 + br_if 0, $pop16 # 0: down to label5 # BB#1: # %for.body.preheader i32.const $3=, -1 copy_local $4=, $1 @@ -85,9 +84,8 @@ powmod_ll: # @powmod_ll i32.add $push2=, $4, $pop12 i32.shl $push3=, $pop13, $pop2 i32.and $push4=, $pop3, $1 - i32.const $push18=, 0 - i32.eq $push19=, $pop4, $pop18 - br_if 0, $pop19 # 0: down to label10 + i32.eqz $push17=, $pop4 + br_if 0, $pop17 # 0: down to label10 # BB#6: # %if.then5 # in Loop: Header=BB1_5 Depth=1 i64.mul $push5=, $5, $0 @@ -146,9 +144,8 @@ facts: # @facts copy_local $12=, $4 i64.const $13=, 1 block - i32.const $push80=, 0 - i32.eq $push81=, $3, $pop80 - br_if 0, $pop81 # 0: down to label13 + i32.eqz $push80=, $3 + br_if 0, $pop80 # 0: down to label13 # BB#2: # %for.body.i.preheader # in Loop: Header=BB2_1 Depth=1 i32.const $2=, -1 @@ -187,9 +184,8 @@ facts: # @facts i32.add $push2=, $1, $pop45 i32.shl $push3=, $pop46, $pop2 i32.and $push4=, $pop3, $3 - i32.const $push82=, 0 - i32.eq $push83=, $pop4, $pop82 - br_if 0, $pop83 # 0: down to label20 + i32.eqz $push81=, $pop4 + br_if 0, $pop81 # 0: down to label20 # BB#7: # %if.then5.i # in Loop: Header=BB2_6 Depth=2 i64.mul $push5=, $11, $6 @@ -247,9 +243,8 @@ facts: # @facts i32.add $push9=, $1, $pop53 i32.shl $push10=, $pop54, $pop9 i32.and $push11=, $pop10, $3 - i32.const $push84=, 0 - i32.eq $push85=, $pop11, $pop84 - br_if 0, $pop85 # 0: down to label27 + i32.eqz $push82=, $pop11 + br_if 0, $pop82 # 0: down to label27 # BB#15: # %if.then5.i128 # in Loop: Header=BB2_14 Depth=2 i64.mul $push12=, $11, $15 @@ -305,9 +300,8 @@ facts: # @facts i32.add $push16=, $1, $pop61 i32.shl $push17=, $pop62, $pop16 i32.and $push18=, $pop17, $3 - i32.const $push86=, 0 - i32.eq $push87=, $pop18, $pop86 - br_if 0, $pop87 # 0: down to label32 + i32.eqz $push83=, $pop18 + br_if 0, $pop83 # 0: down to label32 # BB#23: # %if.then5.i102 # in Loop: Header=BB2_22 Depth=2 i64.mul $push19=, $11, $13 diff --git a/test/torture-s/920501-6.c.s b/test/torture-s/920501-6.c.s index ace4a868f..c3fe246aa 100644 --- a/test/torture-s/920501-6.c.s +++ b/test/torture-s/920501-6.c.s @@ -15,9 +15,8 @@ str2llu: # @str2llu block i32.load8_u $push7=, 1($0) tee_local $push6=, $3=, $pop7 - i32.const $push14=, 0 - i32.eq $push15=, $pop6, $pop14 - br_if 0, $pop15 # 0: down to label0 + i32.eqz $push14=, $pop6 + br_if 0, $pop14 # 0: down to label0 # BB#1: # %if.end.preheader i32.const $push1=, 2 i32.add $0=, $0, $pop1 @@ -344,9 +343,8 @@ main: # @main # BB#14: # %lor.lhs.false8 i64.load $push25=, 24($6) i64.eqz $push26=, $pop25 - i32.const $push55=, 0 - i32.eq $push56=, $pop26, $pop55 - br_if 0, $pop56 # 0: down to label28 + i32.eqz $push55=, $pop26 + br_if 0, $pop55 # 0: down to label28 # BB#15: # %if.end i32.const $push27=, 0 call exit@FUNCTION, $pop27 diff --git a/test/torture-s/920501-9.c.s b/test/torture-s/920501-9.c.s index 54da158c7..e1db3478d 100644 --- a/test/torture-s/920501-9.c.s +++ b/test/torture-s/920501-9.c.s @@ -87,9 +87,8 @@ print_longlong: # @print_longlong i64.shr_u $push1=, $0, $pop0 i32.wrap/i64 $push15=, $pop1 tee_local $push14=, $4=, $pop15 - i32.const $push16=, 0 - i32.eq $push17=, $pop14, $pop16 - br_if 0, $pop17 # 0: down to label1 + i32.eqz $push16=, $pop14 + br_if 0, $pop16 # 0: down to label1 # BB#1: # %if.then i32.store $discard=, 20($2), $3 i32.store $discard=, 16($2), $4 diff --git a/test/torture-s/920726-1.c.s b/test/torture-s/920726-1.c.s index 27e832b2b..a3bbb948c 100644 --- a/test/torture-s/920726-1.c.s +++ b/test/torture-s/920726-1.c.s @@ -45,9 +45,8 @@ first: # @first .LBB0_3: # %for.cond # in Loop: Header=BB0_1 Depth=1 end_block # label2: - i32.const $push26=, 0 - i32.eq $push27=, $2, $pop26 - br_if 1, $pop27 # 1: down to label1 + i32.eqz $push26=, $2 + br_if 1, $pop26 # 1: down to label1 # BB#4: # %if.else # in Loop: Header=BB0_1 Depth=1 i32.store8 $discard=, 0($0), $2 @@ -115,9 +114,8 @@ second: # @second .LBB1_3: # %for.cond # in Loop: Header=BB1_1 Depth=1 end_block # label5: - i32.const $push26=, 0 - i32.eq $push27=, $2, $pop26 - br_if 1, $pop27 # 1: down to label4 + i32.eqz $push26=, $2 + br_if 1, $pop26 # 1: down to label4 # BB#4: # %if.else # in Loop: Header=BB1_1 Depth=1 i32.store8 $discard=, 0($0), $2 diff --git a/test/torture-s/920731-1.c.s b/test/torture-s/920731-1.c.s index 6dc4e73f6..c3ae457fb 100644 --- a/test/torture-s/920731-1.c.s +++ b/test/torture-s/920731-1.c.s @@ -30,9 +30,8 @@ f: # @f i32.shr_s $0=, $0, $pop7 i32.const $push6=, 1 i32.and $push1=, $0, $pop6 - i32.const $push8=, 0 - i32.eq $push9=, $pop1, $pop8 - br_if 0, $pop9 # 0: up to label1 + i32.eqz $push8=, $pop1 + br_if 0, $pop8 # 0: up to label1 .LBB0_4: # %for.end end_loop # label2: end_block # label0: diff --git a/test/torture-s/921013-1.c.s b/test/torture-s/921013-1.c.s index 9b90ee62a..1fc78884c 100644 --- a/test/torture-s/921013-1.c.s +++ b/test/torture-s/921013-1.c.s @@ -9,9 +9,8 @@ f: # @f .result i32 # BB#0: # %entry block - i32.const $push10=, 0 - i32.eq $push11=, $3, $pop10 - br_if 0, $pop11 # 0: down to label0 + i32.eqz $push10=, $3 + br_if 0, $pop10 # 0: down to label0 # BB#1: # %while.body.preheader .LBB0_2: # %while.body # =>This Inner Loop Header: Depth=1 diff --git a/test/torture-s/930408-1.c.s b/test/torture-s/930408-1.c.s index 8d85c5154..12b74bf84 100644 --- a/test/torture-s/930408-1.c.s +++ b/test/torture-s/930408-1.c.s @@ -24,9 +24,8 @@ f: # @f block i32.const $push0=, 0 i32.load $push1=, s($pop0) - i32.const $push2=, 0 - i32.eq $push3=, $pop1, $pop2 - br_if 0, $pop3 # 0: down to label0 + i32.eqz $push2=, $pop1 + br_if 0, $pop2 # 0: down to label0 # BB#1: # %sw.epilog return $0 .LBB1_2: # %sw.bb diff --git a/test/torture-s/930518-1.c.s b/test/torture-s/930518-1.c.s index e19931924..9781b01c0 100644 --- a/test/torture-s/930518-1.c.s +++ b/test/torture-s/930518-1.c.s @@ -7,31 +7,31 @@ f: # @f .param i32 .result i32 - .local i32, i32, i32, i32 + .local i32, i32, i32 # BB#0: # %entry block - i32.const $push6=, 0 - i32.load $push5=, bar($pop6) - tee_local $push4=, $4=, $pop5 - i32.const $push1=, 1 - i32.gt_s $push2=, $pop4, $pop1 - br_if 0, $pop2 # 0: down to label0 + i32.const $push7=, 0 + i32.load $push6=, bar($pop7) + tee_local $push5=, $3=, $pop6 + i32.const $push2=, 1 + i32.gt_s $push3=, $pop5, $pop2 + br_if 0, $pop3 # 0: down to label0 # BB#1: # %while.body.preheader - i32.const $3=, 2 + i32.const $2=, 2 .LBB0_2: # %while.body # =>This Inner Loop Header: Depth=1 loop # label1: - i32.sub $3=, $3, $4 - i32.store $1=, 0($0), $3 - i32.const $4=, 1 + i32.sub $2=, $2, $3 + i32.store $1=, 0($0), $2 + i32.const $3=, 1 + i32.const $push10=, 4 + i32.add $push1=, $0, $pop10 + copy_local $0=, $pop1 i32.const $push9=, 0 i32.const $push8=, 1 - i32.store $2=, bar($pop9), $pop8 - i32.const $push7=, 4 - i32.add $push0=, $0, $pop7 - copy_local $0=, $pop0 - i32.gt_s $push3=, $1, $2 - br_if 0, $pop3 # 0: up to label1 + i32.store $push0=, bar($pop9), $pop8 + i32.gt_s $push4=, $1, $pop0 + br_if 0, $pop4 # 0: up to label1 .LBB0_3: # %while.end end_loop # label2: end_block # label0: @@ -46,57 +46,57 @@ f: # @f .type main,@function main: # @main .result i32 - .local i32, i32, i32, i32, i32, i32 + .local i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push17=, __stack_pointer - i32.const $push14=, __stack_pointer - i32.load $push15=, 0($pop14) - i32.const $push16=, 16 - i32.sub $push20=, $pop15, $pop16 - i32.store $2=, 0($pop17), $pop20 - i32.const $push21=, 0 - i32.load $3=, bar($pop21) - i64.const $push1=, 0 - i64.store $discard=, 8($2):p2align=2, $pop1 + i32.const $push18=, __stack_pointer + i32.const $push15=, __stack_pointer + i32.load $push16=, 0($pop15) + i32.const $push17=, 16 + i32.sub $push21=, $pop16, $pop17 + i32.store $1=, 0($pop18), $pop21 + i32.const $push22=, 0 + i32.load $2=, bar($pop22) + i64.const $push2=, 0 + i64.store $discard=, 8($1):p2align=2, $pop2 block - i32.const $push2=, 1 - i32.gt_s $push3=, $3, $pop2 - br_if 0, $pop3 # 0: down to label3 + i32.const $push3=, 1 + i32.gt_s $push4=, $2, $pop3 + br_if 0, $pop4 # 0: down to label3 # BB#1: # %while.body.i.preheader - i32.const $4=, 2 - i32.const $push18=, 8 - i32.add $push19=, $2, $pop18 - copy_local $5=, $pop19 + i32.const $3=, 2 + i32.const $push19=, 8 + i32.add $push20=, $1, $pop19 + copy_local $4=, $pop20 .LBB1_2: # %while.body.i # =>This Inner Loop Header: Depth=1 loop # label4: - i32.sub $4=, $4, $3 - i32.store $0=, 0($5), $4 - i32.const $3=, 1 + i32.sub $3=, $3, $2 + i32.store $0=, 0($4), $3 + i32.const $2=, 1 + i32.const $push25=, 4 + i32.add $push1=, $4, $pop25 + copy_local $4=, $pop1 i32.const $push24=, 0 i32.const $push23=, 1 - i32.store $1=, bar($pop24), $pop23 - i32.const $push22=, 4 - i32.add $push0=, $5, $pop22 - copy_local $5=, $pop0 - i32.gt_s $push4=, $0, $1 - br_if 0, $pop4 # 0: up to label4 + i32.store $push0=, bar($pop24), $pop23 + i32.gt_s $push5=, $0, $pop0 + br_if 0, $pop5 # 0: up to label4 # BB#3: # %f.exit end_loop # label5: - i32.load $push6=, 8($2) - i32.const $push9=, 2 - i32.ne $push10=, $pop6, $pop9 - br_if 0, $pop10 # 0: down to label3 + i32.load $push7=, 8($1) + i32.const $push10=, 2 + i32.ne $push11=, $pop7, $pop10 + br_if 0, $pop11 # 0: down to label3 # BB#4: # %f.exit - i32.const $push7=, 12 - i32.add $push8=, $2, $pop7 - i32.load $push5=, 0($pop8) - i32.const $push11=, 1 - i32.ne $push12=, $pop5, $pop11 - br_if 0, $pop12 # 0: down to label3 + i32.const $push8=, 12 + i32.add $push9=, $1, $pop8 + i32.load $push6=, 0($pop9) + i32.const $push12=, 1 + i32.ne $push13=, $pop6, $pop12 + br_if 0, $pop13 # 0: down to label3 # BB#5: # %if.end - i32.const $push13=, 0 - call exit@FUNCTION, $pop13 + i32.const $push14=, 0 + call exit@FUNCTION, $pop14 unreachable .LBB1_6: # %if.then end_block # label3: diff --git a/test/torture-s/930628-1.c.s b/test/torture-s/930628-1.c.s index 16a82194f..6f040c36f 100644 --- a/test/torture-s/930628-1.c.s +++ b/test/torture-s/930628-1.c.s @@ -36,14 +36,12 @@ main: # @main block loop # label2: block - i32.const $push17=, 0 - i32.eq $push18=, $0, $pop17 - br_if 0, $pop18 # 0: down to label4 + i32.eqz $push17=, $0 + br_if 0, $pop17 # 0: down to label4 # BB#2: # %for.cond15.preheader # in Loop: Header=BB1_1 Depth=1 - i32.const $push19=, 0 - i32.eq $push20=, $0, $pop19 - br_if 3, $pop20 # 3: down to label1 + i32.eqz $push18=, $0 + br_if 3, $pop18 # 3: down to label1 .LBB1_3: # %for.inc36.1.1 # in Loop: Header=BB1_1 Depth=1 end_block # label4: @@ -62,14 +60,12 @@ main: # @main # =>This Inner Loop Header: Depth=1 loop # label5: block - i32.const $push21=, 0 - i32.eq $push22=, $0, $pop21 - br_if 0, $pop22 # 0: down to label7 + i32.eqz $push19=, $0 + br_if 0, $pop19 # 0: down to label7 # BB#6: # %for.cond15.preheader.1 # in Loop: Header=BB1_5 Depth=1 - i32.const $push23=, 0 - i32.eq $push24=, $0, $pop23 - br_if 3, $pop24 # 3: down to label1 + i32.eqz $push20=, $0 + br_if 3, $pop20 # 3: down to label1 .LBB1_7: # %for.inc36.1.1.1 # in Loop: Header=BB1_5 Depth=1 end_block # label7: @@ -88,14 +84,12 @@ main: # @main # =>This Inner Loop Header: Depth=1 loop # label8: block - i32.const $push25=, 0 - i32.eq $push26=, $0, $pop25 - br_if 0, $pop26 # 0: down to label10 + i32.eqz $push21=, $0 + br_if 0, $pop21 # 0: down to label10 # BB#10: # %for.cond15.preheader.2 # in Loop: Header=BB1_9 Depth=1 - i32.const $push27=, 0 - i32.eq $push28=, $0, $pop27 - br_if 3, $pop28 # 3: down to label1 + i32.eqz $push22=, $0 + br_if 3, $pop22 # 3: down to label1 .LBB1_11: # %for.inc36.1.1.2 # in Loop: Header=BB1_9 Depth=1 end_block # label10: @@ -114,14 +108,12 @@ main: # @main # =>This Inner Loop Header: Depth=1 loop # label11: block - i32.const $push29=, 0 - i32.eq $push30=, $0, $pop29 - br_if 0, $pop30 # 0: down to label13 + i32.eqz $push23=, $0 + br_if 0, $pop23 # 0: down to label13 # BB#14: # %for.cond15.preheader.3 # in Loop: Header=BB1_13 Depth=1 - i32.const $push31=, 0 - i32.eq $push32=, $0, $pop31 - br_if 3, $pop32 # 3: down to label1 + i32.eqz $push24=, $0 + br_if 3, $pop24 # 3: down to label1 .LBB1_15: # %for.inc36.1.1.3 # in Loop: Header=BB1_13 Depth=1 end_block # label13: diff --git a/test/torture-s/930719-1.c.s b/test/torture-s/930719-1.c.s index 211ede4db..0999ca79c 100644 --- a/test/torture-s/930719-1.c.s +++ b/test/torture-s/930719-1.c.s @@ -17,9 +17,8 @@ f: # @f i32.ne $push1=, $1, $pop0 br_if 1, $pop1 # 1: down to label1 # BB#2: # %sw.bb.split - i32.const $push3=, 0 - i32.eq $push4=, $2, $pop3 - br_if 2, $pop4 # 2: down to label0 + i32.eqz $push3=, $2 + br_if 2, $pop3 # 2: down to label0 .LBB0_3: # %cleanup end_block # label2: i32.const $push2=, 0 diff --git a/test/torture-s/931102-1.c.s b/test/torture-s/931102-1.c.s index 29a512201..6025853d0 100644 --- a/test/torture-s/931102-1.c.s +++ b/test/torture-s/931102-1.c.s @@ -28,9 +28,8 @@ f: # @f tee_local $push5=, $0=, $pop6 i32.const $push4=, 1 i32.and $push2=, $pop5, $pop4 - i32.const $push10=, 0 - i32.eq $push11=, $pop2, $pop10 - br_if 0, $pop11 # 0: up to label1 + i32.eqz $push10=, $pop2 + br_if 0, $pop10 # 0: up to label1 .LBB0_3: # %while.end end_loop # label2: end_block # label0: diff --git a/test/torture-s/931102-2.c.s b/test/torture-s/931102-2.c.s index 241beffff..cc5975cc2 100644 --- a/test/torture-s/931102-2.c.s +++ b/test/torture-s/931102-2.c.s @@ -28,9 +28,8 @@ f: # @f tee_local $push5=, $0=, $pop6 i32.const $push4=, 1 i32.and $push2=, $pop5, $pop4 - i32.const $push10=, 0 - i32.eq $push11=, $pop2, $pop10 - br_if 0, $pop11 # 0: up to label1 + i32.eqz $push10=, $pop2 + br_if 0, $pop10 # 0: up to label1 .LBB0_3: # %while.end end_loop # label2: end_block # label0: diff --git a/test/torture-s/950221-1.c.s b/test/torture-s/950221-1.c.s index 4073d7d91..5c996dccd 100644 --- a/test/torture-s/950221-1.c.s +++ b/test/torture-s/950221-1.c.s @@ -55,9 +55,8 @@ f: # @f # BB#1: # %entry i32.const $push5=, 0 i32.load $push0=, el($pop5) - i32.const $push6=, 0 - i32.eq $push7=, $pop0, $pop6 - br_if 0, $pop7 # 0: down to label1 + i32.eqz $push6=, $pop0 + br_if 0, $pop6 # 0: down to label1 # BB#2: # %if.end return $0 .LBB2_3: # %alabel diff --git a/test/torture-s/950621-1.c.s b/test/torture-s/950621-1.c.s index 3da3af2a6..200704d93 100644 --- a/test/torture-s/950621-1.c.s +++ b/test/torture-s/950621-1.c.s @@ -11,9 +11,8 @@ f: # @f # BB#0: # %entry i32.const $1=, 0 block - i32.const $push5=, 0 - i32.eq $push6=, $0, $pop5 - br_if 0, $pop6 # 0: down to label0 + i32.eqz $push5=, $0 + br_if 0, $pop5 # 0: down to label0 # BB#1: # %land.lhs.true i32.load $push0=, 0($0) i32.const $push3=, -1 diff --git a/test/torture-s/960215-1.c.s b/test/torture-s/960215-1.c.s index 302249fb0..0ec5aa215 100644 --- a/test/torture-s/960215-1.c.s +++ b/test/torture-s/960215-1.c.s @@ -255,9 +255,8 @@ main: # @main i64.const $push119=, 0 i64.const $push36=, 4612108230892453888 i32.call $push37=, __eqtf2@FUNCTION, $2, $3, $pop119, $pop36 - i32.const $push192=, 0 - i32.eq $push193=, $pop37, $pop192 - br_if 0, $pop193 # 0: down to label0 + i32.eqz $push192=, $pop37 + br_if 0, $pop192 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable diff --git a/test/torture-s/960311-1.c.s b/test/torture-s/960311-1.c.s index 58b8bfc98..72d06ab92 100644 --- a/test/torture-s/960311-1.c.s +++ b/test/torture-s/960311-1.c.s @@ -27,9 +27,8 @@ b: # @b block i32.const $push0=, 128 i32.and $push1=, $0, $pop0 - i32.const $push21=, 0 - i32.eq $push22=, $pop1, $pop21 - br_if 0, $pop22 # 0: down to label0 + i32.eqz $push21=, $pop1 + br_if 0, $pop21 # 0: down to label0 # BB#1: # %if.then i32.const $push2=, 0 i32.const $push18=, 0 @@ -42,9 +41,8 @@ b: # @b block i32.const $push6=, 64 i32.and $push7=, $0, $pop6 - i32.const $push23=, 0 - i32.eq $push24=, $pop7, $pop23 - br_if 0, $pop24 # 0: down to label1 + i32.eqz $push22=, $pop7 + br_if 0, $pop22 # 0: down to label1 # BB#3: # %if.then6 i32.const $push8=, 0 i32.const $push19=, 0 @@ -57,9 +55,8 @@ b: # @b block i32.const $push12=, 32 i32.and $push13=, $0, $pop12 - i32.const $push25=, 0 - i32.eq $push26=, $pop13, $pop25 - br_if 0, $pop26 # 0: down to label2 + i32.eqz $push23=, $pop13 + br_if 0, $pop23 # 0: down to label2 # BB#5: # %if.then14 i32.const $push14=, 0 i32.const $push20=, 0 diff --git a/test/torture-s/960311-2.c.s b/test/torture-s/960311-2.c.s index e1d7fa52c..b269fab97 100644 --- a/test/torture-s/960311-2.c.s +++ b/test/torture-s/960311-2.c.s @@ -27,9 +27,8 @@ b: # @b block i32.const $push0=, 32768 i32.and $push1=, $0, $pop0 - i32.const $push21=, 0 - i32.eq $push22=, $pop1, $pop21 - br_if 0, $pop22 # 0: down to label0 + i32.eqz $push21=, $pop1 + br_if 0, $pop21 # 0: down to label0 # BB#1: # %if.then i32.const $push2=, 0 i32.const $push18=, 0 @@ -42,9 +41,8 @@ b: # @b block i32.const $push6=, 16384 i32.and $push7=, $0, $pop6 - i32.const $push23=, 0 - i32.eq $push24=, $pop7, $pop23 - br_if 0, $pop24 # 0: down to label1 + i32.eqz $push22=, $pop7 + br_if 0, $pop22 # 0: down to label1 # BB#3: # %if.then6 i32.const $push8=, 0 i32.const $push19=, 0 @@ -57,9 +55,8 @@ b: # @b block i32.const $push12=, 8192 i32.and $push13=, $0, $pop12 - i32.const $push25=, 0 - i32.eq $push26=, $pop13, $pop25 - br_if 0, $pop26 # 0: down to label2 + i32.eqz $push23=, $pop13 + br_if 0, $pop23 # 0: down to label2 # BB#5: # %if.then14 i32.const $push14=, 0 i32.const $push20=, 0 diff --git a/test/torture-s/960311-3.c.s b/test/torture-s/960311-3.c.s index 2a6d809f8..5d49c4ee4 100644 --- a/test/torture-s/960311-3.c.s +++ b/test/torture-s/960311-3.c.s @@ -40,9 +40,8 @@ b: # @b block i32.const $push6=, 1073741824 i32.and $push7=, $0, $pop6 - i32.const $push21=, 0 - i32.eq $push22=, $pop7, $pop21 - br_if 0, $pop22 # 0: down to label1 + i32.eqz $push21=, $pop7 + br_if 0, $pop21 # 0: down to label1 # BB#3: # %if.then3 i32.const $push8=, 0 i32.const $push19=, 0 @@ -55,9 +54,8 @@ b: # @b block i32.const $push12=, 536870912 i32.and $push13=, $0, $pop12 - i32.const $push23=, 0 - i32.eq $push24=, $pop13, $pop23 - br_if 0, $pop24 # 0: down to label2 + i32.eqz $push22=, $pop13 + br_if 0, $pop22 # 0: down to label2 # BB#5: # %if.then8 i32.const $push14=, 0 i32.const $push20=, 0 diff --git a/test/torture-s/960312-1.c.s b/test/torture-s/960312-1.c.s index 559386b55..d99e0b992 100644 --- a/test/torture-s/960312-1.c.s +++ b/test/torture-s/960312-1.c.s @@ -7,26 +7,26 @@ f: # @f .param i32 .result i32 - .local i32, i32, i32, i32, i32, i32 + .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.load $push5=, 8($0) - tee_local $push4=, $6=, $pop5 - i32.load $1=, 4($pop4) - i32.load $2=, 8($6) - i32.const $push1=, 16 - i32.add $push3=, $0, $pop1 - tee_local $push2=, $5=, $pop3 - i32.load $4=, 0($pop2) - i32.load $3=, 12($0) + i32.load $push4=, 8($0) + tee_local $push3=, $7=, $pop4 + i32.load $1=, 4($pop3) + i32.load $2=, 8($7) + i32.load $3=, 0($7) + i32.const $push0=, 16 + i32.add $push2=, $0, $pop0 + tee_local $push1=, $6=, $pop2 + i32.load $5=, 0($pop1) + i32.load $4=, 12($0) #APP #NO_APP - i32.load $push0=, 0($6) - i32.store $discard=, 8($6), $pop0 + i32.store $discard=, 8($7), $3 + i32.store $discard=, 0($7), $5 i32.store $discard=, 0($6), $4 - i32.store $discard=, 0($5), $3 i32.store $discard=, 12($0), $2 i32.store $discard=, 4($0), $1 - i32.store $discard=, 0($0), $6 + i32.store $discard=, 0($0), $7 return $0 .endfunc .Lfunc_end0: diff --git a/test/torture-s/960317-1.c.s b/test/torture-s/960317-1.c.s index 2be4f5419..7b8d26d7a 100644 --- a/test/torture-s/960317-1.c.s +++ b/test/torture-s/960317-1.c.s @@ -15,9 +15,8 @@ f: # @f tee_local $push5=, $0=, $pop6 i32.sub $push0=, $pop8, $pop5 i32.and $push1=, $1, $pop0 - i32.const $push12=, 0 - i32.eq $push13=, $pop1, $pop12 - br_if 0, $pop13 # 0: down to label0 + i32.eqz $push12=, $pop1 + br_if 0, $pop12 # 0: down to label0 # BB#1: # %if.end i32.const $push10=, -1 i32.xor $push2=, $0, $pop10 diff --git a/test/torture-s/960405-1.c.s b/test/torture-s/960405-1.c.s index b235f8017..1a0d82c40 100644 --- a/test/torture-s/960405-1.c.s +++ b/test/torture-s/960405-1.c.s @@ -17,9 +17,8 @@ main: # @main i32.const $push5=, 0 i64.load $push2=, y+8($pop5) i32.call $push4=, __eqtf2@FUNCTION, $pop1, $pop0, $pop3, $pop2 - i32.const $push10=, 0 - i32.eq $push11=, $pop4, $pop10 - br_if 0, $pop11 # 0: down to label0 + i32.eqz $push10=, $pop4 + br_if 0, $pop10 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable diff --git a/test/torture-s/960419-1.c.s b/test/torture-s/960419-1.c.s index 2b70c19ae..aa988a770 100644 --- a/test/torture-s/960419-1.c.s +++ b/test/torture-s/960419-1.c.s @@ -8,9 +8,8 @@ check: # @check .param i32 # BB#0: # %entry block - i32.const $push0=, 0 - i32.eq $push1=, $0, $pop0 - br_if 0, $pop1 # 0: down to label0 + i32.eqz $push0=, $0 + br_if 0, $pop0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then diff --git a/test/torture-s/960909-1.c.s b/test/torture-s/960909-1.c.s index 5f9a00aa1..ac2f84039 100644 --- a/test/torture-s/960909-1.c.s +++ b/test/torture-s/960909-1.c.s @@ -11,9 +11,8 @@ ffs: # @ffs # BB#0: # %entry i32.const $2=, 0 block - i32.const $push5=, 0 - i32.eq $push6=, $0, $pop5 - br_if 0, $pop6 # 0: down to label0 + i32.eqz $push5=, $0 + br_if 0, $pop5 # 0: down to label0 # BB#1: # %for.cond.preheader i32.const $2=, 1 i32.const $push2=, 1 @@ -30,9 +29,8 @@ ffs: # @ffs i32.const $push3=, 1 i32.shl $1=, $1, $pop3 i32.and $push1=, $1, $0 - i32.const $push7=, 0 - i32.eq $push8=, $pop1, $pop7 - br_if 0, $pop8 # 0: up to label1 + i32.eqz $push6=, $pop1 + br_if 0, $pop6 # 0: up to label1 .LBB0_4: # %cleanup end_loop # label2: end_block # label0: @@ -50,9 +48,8 @@ f: # @f .result i32 # BB#0: # %entry block - i32.const $push0=, 0 - i32.eq $push1=, $0, $pop0 - br_if 0, $pop1 # 0: down to label3 + i32.eqz $push0=, $0 + br_if 0, $pop0 # 0: down to label3 # BB#1: # %if.end return $0 .LBB1_2: # %if.then diff --git a/test/torture-s/961125-1.c.s b/test/torture-s/961125-1.c.s index 2253673e1..fdc467e4d 100644 --- a/test/torture-s/961125-1.c.s +++ b/test/torture-s/961125-1.c.s @@ -14,9 +14,8 @@ main: # @main # =>This Loop Header: Depth=1 # Child Loop BB0_3 Depth 2 loop # label0: - i32.const $push17=, 0 - i32.eq $push18=, $1, $pop17 - br_if 1, $pop18 # 1: down to label1 + i32.eqz $push17=, $1 + br_if 1, $pop17 # 1: down to label1 # BB#2: # %while.cond2.preheader.i # in Loop: Header=BB0_1 Depth=1 block diff --git a/test/torture-s/980223.c.s b/test/torture-s/980223.c.s index e16a1a01c..6dbf1b4e2 100644 --- a/test/torture-s/980223.c.s +++ b/test/torture-s/980223.c.s @@ -93,9 +93,8 @@ main: # @main block i32.const $push13=, 64 i32.and $push1=, $1, $pop13 - i32.const $push21=, 0 - i32.eq $push22=, $pop1, $pop21 - br_if 0, $pop22 # 0: down to label4 + i32.eqz $push21=, $pop1 + br_if 0, $pop21 # 0: down to label4 # BB#1: # %if.then.i i32.const $push19=, 0 i32.load $push18=, cons2($pop19) diff --git a/test/torture-s/980707-1.c.s b/test/torture-s/980707-1.c.s index 9a221cdda..ca2fcb75b 100644 --- a/test/torture-s/980707-1.c.s +++ b/test/torture-s/980707-1.c.s @@ -29,9 +29,8 @@ buildargv: # @buildargv .LBB0_3: # %while.cond1 # in Loop: Header=BB0_1 Depth=1 end_block # label3: - i32.const $push20=, 0 - i32.eq $push21=, $2, $pop20 - br_if 2, $pop21 # 2: down to label0 + i32.eqz $push20=, $2 + br_if 2, $pop20 # 2: down to label0 # BB#4: # %if.end # in Loop: Header=BB0_1 Depth=1 i32.const $push13=, 2 @@ -45,9 +44,8 @@ buildargv: # @buildargv loop # label4: i32.load8_u $push16=, 0($0) tee_local $push15=, $2=, $pop16 - i32.const $push22=, 0 - i32.eq $push23=, $pop15, $pop22 - br_if 3, $pop23 # 3: down to label2 + i32.eqz $push21=, $pop15 + br_if 3, $pop21 # 3: down to label2 # BB#6: # %while.cond7 # in Loop: Header=BB0_5 Depth=2 i32.const $push17=, 32 @@ -91,20 +89,20 @@ main: # @main .result i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push23=, __stack_pointer - i32.const $push20=, __stack_pointer - i32.load $push21=, 0($pop20) - i32.const $push22=, 256 - i32.sub $push24=, $pop21, $pop22 - i32.store $push28=, 0($pop23), $pop24 - tee_local $push27=, $1=, $pop28 - copy_local $0=, $pop27 - i32.const $push26=, 0 - i32.load8_u $push2=, .L.str+4($pop26) - i32.store8 $discard=, 4($1), $pop2 - i32.const $push25=, 0 - i32.load $push3=, .L.str($pop25):p2align=0 - i32.store $discard=, 0($1), $pop3 + i32.const $push19=, __stack_pointer + i32.const $push16=, __stack_pointer + i32.load $push17=, 0($pop16) + i32.const $push18=, 256 + i32.sub $push20=, $pop17, $pop18 + i32.store $push24=, 0($pop19), $pop20 + tee_local $push23=, $0=, $pop24 + i32.const $push22=, 0 + i32.load8_u $push1=, .L.str+4($pop22) + i32.store8 $discard=, 4($pop23), $pop1 + i32.const $push21=, 0 + i32.load $push2=, .L.str($pop21):p2align=0 + i32.store $discard=, 0($0), $pop2 + copy_local $0=, $0 i32.const $1=, 0 .LBB1_1: # %while.cond1.i # =>This Loop Header: Depth=1 @@ -112,56 +110,54 @@ main: # @main block loop # label7: block - i32.load8_u $push32=, 0($0) - tee_local $push31=, $2=, $pop32 - i32.const $push30=, 32 - i32.ne $push4=, $pop31, $pop30 - br_if 0, $pop4 # 0: down to label9 + i32.load8_u $push28=, 0($0) + tee_local $push27=, $2=, $pop28 + i32.const $push26=, 32 + i32.ne $push3=, $pop27, $pop26 + br_if 0, $pop3 # 0: down to label9 # BB#2: # %while.body3.i # in Loop: Header=BB1_1 Depth=1 - i32.const $push29=, 1 - i32.add $0=, $0, $pop29 + i32.const $push25=, 1 + i32.add $0=, $0, $pop25 br 1 # 1: up to label7 .LBB1_3: # %while.cond1.i # in Loop: Header=BB1_1 Depth=1 end_block # label9: - i32.const $push47=, 0 - i32.eq $push48=, $2, $pop47 - br_if 2, $pop48 # 2: down to label6 + i32.eqz $push41=, $2 + br_if 2, $pop41 # 2: down to label6 # BB#4: # %if.end.i # in Loop: Header=BB1_1 Depth=1 - i32.const $push34=, 2 - i32.shl $push5=, $1, $pop34 - i32.store $discard=, buildargv.arglist($pop5), $0 - i32.const $push33=, 1 - i32.add $2=, $1, $pop33 + i32.const $push30=, 2 + i32.shl $push4=, $1, $pop30 + i32.store $discard=, buildargv.arglist($pop4), $0 + i32.const $push29=, 1 + i32.add $2=, $1, $pop29 .LBB1_5: # %while.cond7.i # Parent Loop BB1_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label10: - i32.load8_u $push38=, 0($0) - tee_local $push37=, $1=, $pop38 - i32.const $push36=, 32 - i32.eq $push6=, $pop37, $pop36 - br_if 1, $pop6 # 1: down to label11 + i32.load8_u $push34=, 0($0) + tee_local $push33=, $1=, $pop34 + i32.const $push32=, 32 + i32.eq $push5=, $pop33, $pop32 + br_if 1, $pop5 # 1: down to label11 # BB#6: # %while.cond7.i # in Loop: Header=BB1_5 Depth=2 - i32.const $push49=, 0 - i32.eq $push50=, $1, $pop49 - br_if 3, $pop50 # 3: down to label8 + i32.eqz $push42=, $1 + br_if 3, $pop42 # 3: down to label8 # BB#7: # %while.body14.i # in Loop: Header=BB1_5 Depth=2 - i32.const $push35=, 1 - i32.add $0=, $0, $pop35 + i32.const $push31=, 1 + i32.add $0=, $0, $pop31 br 0 # 0: up to label10 .LBB1_8: # %if.end21.i # in Loop: Header=BB1_1 Depth=1 end_loop # label11: - i32.const $push40=, 0 - i32.store8 $discard=, 0($0), $pop40 - i32.const $push39=, 1 - i32.add $push1=, $0, $pop39 - copy_local $0=, $pop1 + i32.const $push36=, 0 + i32.store8 $discard=, 0($0), $pop36 + i32.const $push35=, 1 + i32.add $push0=, $0, $pop35 + copy_local $0=, $pop0 copy_local $1=, $2 br 0 # 0: up to label7 .LBB1_9: @@ -170,44 +166,29 @@ main: # @main .LBB1_10: # %buildargv.exit end_block # label6: block - block - i32.const $push7=, 2 - i32.shl $push8=, $1, $pop7 - i32.const $push9=, 0 - i32.store $push0=, buildargv.arglist($pop8), $pop9 - i32.load $push42=, buildargv.arglist($pop0) - tee_local $push41=, $0=, $pop42 - i32.load8_u $push10=, 0($pop41) - i32.const $push11=, 97 - i32.ne $push12=, $pop10, $pop11 - br_if 0, $pop12 # 0: down to label13 -# BB#11: # %if.end37 - i32.load8_u $push13=, 1($0) - br_if 0, $pop13 # 0: down to label13 -# BB#12: # %cond.true52 - i32.const $push14=, 0 - i32.load $push44=, buildargv.arglist+4($pop14) - tee_local $push43=, $0=, $pop44 - i32.load8_u $push15=, 0($pop43) - i32.const $push16=, 98 - i32.ne $push17=, $pop15, $pop16 - br_if 1, $pop17 # 1: down to label12 -# BB#13: # %if.end94 - i32.load8_u $push18=, 1($0) - br_if 1, $pop18 # 1: down to label12 -# BB#14: # %if.end104 - i32.const $push45=, 0 - i32.load $push19=, buildargv.arglist+8($pop45) - br_if 1, $pop19 # 1: down to label12 -# BB#15: # %if.end109 - i32.const $push46=, 0 - call exit@FUNCTION, $pop46 - unreachable -.LBB1_16: # %if.then42 - end_block # label13: - call abort@FUNCTION + i32.const $push6=, 2 + i32.shl $push7=, $1, $pop6 + i32.const $push8=, 0 + i32.store $push38=, buildargv.arglist($pop7), $pop8 + tee_local $push37=, $0=, $pop38 + i32.load $push9=, buildargv.arglist($pop37) + i32.const $push10=, .L.str.1 + i32.call $push11=, strcmp@FUNCTION, $pop9, $pop10 + br_if 0, $pop11 # 0: down to label12 +# BB#11: # %if.end + i32.load $push12=, buildargv.arglist+4($0) + i32.const $push13=, .L.str.2 + i32.call $push14=, strcmp@FUNCTION, $pop12, $pop13 + br_if 0, $pop14 # 0: down to label12 +# BB#12: # %if.end8 + i32.const $push39=, 0 + i32.load $push15=, buildargv.arglist+8($pop39) + br_if 0, $pop15 # 0: down to label12 +# BB#13: # %if.end11 + i32.const $push40=, 0 + call exit@FUNCTION, $pop40 unreachable -.LBB1_17: # %if.then108 +.LBB1_14: # %if.then10 end_block # label12: call abort@FUNCTION unreachable @@ -223,5 +204,15 @@ main: # @main .asciz " a b" .size .L.str, 5 + .type .L.str.1,@object # @.str.1 +.L.str.1: + .asciz "a" + .size .L.str.1, 2 + + .type .L.str.2,@object # @.str.2 +.L.str.2: + .asciz "b" + .size .L.str.2, 2 + .ident "clang version 3.9.0 " diff --git a/test/torture-s/981001-1.c.s b/test/torture-s/981001-1.c.s index d41f57d1f..d06f9f27e 100644 --- a/test/torture-s/981001-1.c.s +++ b/test/torture-s/981001-1.c.s @@ -21,27 +21,29 @@ sub: # @sub i32.and $push2=, $0, $pop13 br_if 1, $pop2 # 1: down to label0 # BB#2: # %if.then2 - i32.call $0=, sub@FUNCTION, $1 i32.const $push7=, -1 i32.add $push8=, $1, $pop7 i32.call $push9=, sub@FUNCTION, $pop8 - i32.const $push15=, 1 - i32.shl $push10=, $pop9, $pop15 - i32.add $push11=, $0, $pop10 - i32.mul $push12=, $0, $pop11 + i32.const $push17=, 1 + i32.shl $push10=, $pop9, $pop17 + i32.call $push16=, sub@FUNCTION, $1 + tee_local $push15=, $0=, $pop16 + i32.add $push11=, $pop10, $pop15 + i32.mul $push12=, $pop11, $0 return $pop12 .LBB0_3: # %cleanup end_block # label1: return $0 .LBB0_4: # %if.else end_block # label0: - i32.const $push18=, 1 - i32.add $push3=, $1, $pop18 - i32.call $0=, sub@FUNCTION, $pop3 - i32.call $push17=, sub@FUNCTION, $1 - tee_local $push16=, $1=, $pop17 - i32.mul $push5=, $pop16, $1 - i32.mul $push4=, $0, $0 + i32.call $push22=, sub@FUNCTION, $1 + tee_local $push21=, $0=, $pop22 + i32.mul $push5=, $pop21, $0 + i32.const $push20=, 1 + i32.add $push3=, $1, $pop20 + i32.call $push19=, sub@FUNCTION, $pop3 + tee_local $push18=, $0=, $pop19 + i32.mul $push4=, $pop18, $0 i32.add $push6=, $pop5, $pop4 return $pop6 .endfunc @@ -54,29 +56,29 @@ sub: # @sub .type main,@function main: # @main .result i32 - .local i32, i32 + .local i32 # BB#0: # %entry - i32.const $push0=, 30 - i32.call $1=, sub@FUNCTION, $pop0 - i32.const $push6=, 0 - i32.load $0=, flg($pop6) + i32.const $push7=, 0 + i32.load $0=, flg($pop7) block block - i32.const $push1=, 832040 - i32.ne $push2=, $1, $pop1 - br_if 0, $pop2 # 0: down to label3 + i32.const $push0=, 30 + i32.call $push1=, sub@FUNCTION, $pop0 + i32.const $push2=, 832040 + i32.ne $push3=, $pop1, $pop2 + br_if 0, $pop3 # 0: down to label3 # BB#1: # %if.end br_if 1, $0 # 1: down to label2 # BB#2: # %if.end2 - i32.const $push5=, 0 - call exit@FUNCTION, $pop5 + i32.const $push6=, 0 + call exit@FUNCTION, $pop6 unreachable .LBB1_3: # %if.end.thread end_block # label3: - i32.const $push7=, 0 - i32.const $push3=, 256 - i32.or $push4=, $0, $pop3 - i32.store $discard=, flg($pop7), $pop4 + i32.const $push8=, 0 + i32.const $push4=, 256 + i32.or $push5=, $0, $pop4 + i32.store $discard=, flg($pop8), $pop5 call abort@FUNCTION unreachable .LBB1_4: # %if.then1 diff --git a/test/torture-s/981019-1.c.s b/test/torture-s/981019-1.c.s index 806616857..e0744cf41 100644 --- a/test/torture-s/981019-1.c.s +++ b/test/torture-s/981019-1.c.s @@ -10,9 +10,8 @@ ff: # @ff # BB#0: # %entry block block - i32.const $push5=, 0 - i32.eq $push6=, $0, $pop5 - br_if 0, $pop6 # 0: down to label1 + i32.eqz $push5=, $0 + br_if 0, $pop5 # 0: down to label1 # BB#1: # %entry br_if 1, $2 # 1: down to label0 .LBB0_2: # %while.cond.preheader @@ -29,9 +28,8 @@ ff: # @ff br_if 2, $3 # 2: down to label2 # BB#4: # %while.body # in Loop: Header=BB0_3 Depth=1 - i32.const $push7=, 0 - i32.eq $push8=, $2, $pop7 - br_if 0, $pop8 # 0: up to label3 + i32.eqz $push6=, $2 + br_if 0, $pop6 # 0: up to label3 # BB#5: # %land.lhs.true end_loop # label4: i32.const $push2=, 0 @@ -111,9 +109,8 @@ main: # @main copy_local $push3=, $0 tee_local $push2=, $1=, $pop3 i32.eqz $0=, $pop2 - i32.const $push5=, 0 - i32.eq $push6=, $1, $pop5 - br_if 0, $pop6 # 0: up to label5 + i32.eqz $push5=, $1 + br_if 0, $pop5 # 0: up to label5 # BB#2: # %ff.exit end_loop # label6: i32.const $push1=, 0 diff --git a/test/torture-s/990127-1.c.s b/test/torture-s/990127-1.c.s index 7315ab32f..586419653 100644 --- a/test/torture-s/990127-1.c.s +++ b/test/torture-s/990127-1.c.s @@ -57,9 +57,8 @@ main: # @main i32.const $push73=, -1 i32.add $push5=, $pop74, $pop73 i32.store $discard=, 0($0), $pop5 - i32.const $push120=, 0 - i32.eq $push121=, $3, $pop120 - br_if 1, $pop121 # 1: down to label3 + i32.eqz $push120=, $3 + br_if 1, $pop120 # 1: down to label3 # BB#5: # %while.body.2 # in Loop: Header=BB0_4 Depth=1 i32.const $push77=, 1 @@ -85,9 +84,8 @@ main: # @main i32.const $push79=, -1 i32.add $push7=, $pop80, $pop79 i32.store $discard=, 0($0), $pop7 - i32.const $push122=, 0 - i32.eq $push123=, $3, $pop122 - br_if 1, $pop123 # 1: down to label5 + i32.eqz $push121=, $3 + br_if 1, $pop121 # 1: down to label5 # BB#8: # %while.body.3 # in Loop: Header=BB0_7 Depth=1 i32.const $push83=, 1 @@ -113,9 +111,8 @@ main: # @main i32.const $push85=, -1 i32.add $push9=, $pop86, $pop85 i32.store $discard=, 0($0), $pop9 - i32.const $push124=, 0 - i32.eq $push125=, $3, $pop124 - br_if 1, $pop125 # 1: down to label7 + i32.eqz $push122=, $3 + br_if 1, $pop122 # 1: down to label7 # BB#11: # %while.body.4 # in Loop: Header=BB0_10 Depth=1 i32.const $push89=, 1 @@ -141,9 +138,8 @@ main: # @main i32.const $push91=, -1 i32.add $push11=, $pop92, $pop91 i32.store $discard=, 0($0), $pop11 - i32.const $push126=, 0 - i32.eq $push127=, $3, $pop126 - br_if 1, $pop127 # 1: down to label9 + i32.eqz $push123=, $3 + br_if 1, $pop123 # 1: down to label9 # BB#14: # %while.body.5 # in Loop: Header=BB0_13 Depth=1 i32.const $push95=, 1 @@ -169,9 +165,8 @@ main: # @main i32.const $push97=, -1 i32.add $push13=, $pop98, $pop97 i32.store $discard=, 0($0), $pop13 - i32.const $push128=, 0 - i32.eq $push129=, $3, $pop128 - br_if 1, $pop129 # 1: down to label11 + i32.eqz $push124=, $3 + br_if 1, $pop124 # 1: down to label11 # BB#17: # %while.body.6 # in Loop: Header=BB0_16 Depth=1 i32.const $push101=, 1 @@ -197,9 +192,8 @@ main: # @main i32.const $push103=, -1 i32.add $push15=, $pop104, $pop103 i32.store $discard=, 0($0), $pop15 - i32.const $push130=, 0 - i32.eq $push131=, $3, $pop130 - br_if 1, $pop131 # 1: down to label13 + i32.eqz $push125=, $3 + br_if 1, $pop125 # 1: down to label13 # BB#20: # %while.body.7 # in Loop: Header=BB0_19 Depth=1 i32.const $push107=, 1 @@ -225,9 +219,8 @@ main: # @main i32.const $push109=, -1 i32.add $push17=, $pop110, $pop109 i32.store $discard=, 0($0), $pop17 - i32.const $push132=, 0 - i32.eq $push133=, $3, $pop132 - br_if 1, $pop133 # 1: down to label15 + i32.eqz $push126=, $3 + br_if 1, $pop126 # 1: down to label15 # BB#23: # %while.body.8 # in Loop: Header=BB0_22 Depth=1 i32.const $push113=, 1 @@ -253,9 +246,8 @@ main: # @main i32.const $push115=, -1 i32.add $push19=, $pop116, $pop115 i32.store $discard=, 0($0), $pop19 - i32.const $push134=, 0 - i32.eq $push135=, $3, $pop134 - br_if 1, $pop135 # 1: down to label17 + i32.eqz $push127=, $3 + br_if 1, $pop127 # 1: down to label17 # BB#26: # %while.body.9 # in Loop: Header=BB0_25 Depth=1 i32.const $push119=, 1 diff --git a/test/torture-s/990128-1.c.s b/test/torture-s/990128-1.c.s index 5cc536aa4..2a3c7d06e 100644 --- a/test/torture-s/990128-1.c.s +++ b/test/torture-s/990128-1.c.s @@ -99,9 +99,8 @@ sub: # @sub i32.const $push4=, 0 i32.load $2=, count($pop4) block - i32.const $push8=, 0 - i32.eq $push9=, $0, $pop8 - br_if 0, $pop9 # 0: down to label5 + i32.eqz $push8=, $0 + br_if 0, $pop8 # 0: down to label5 # BB#1: # %for.inc.i.preheader.preheader .LBB1_2: # %for.inc.i.preheader # =>This Loop Header: Depth=1 @@ -148,9 +147,8 @@ look: # @look .result i32 # BB#0: # %entry block - i32.const $push6=, 0 - i32.eq $push7=, $0, $pop6 - br_if 0, $pop7 # 0: down to label10 + i32.eqz $push6=, $0 + br_if 0, $pop6 # 0: down to label10 .LBB2_1: # %for.inc # =>This Inner Loop Header: Depth=1 loop # label11: diff --git a/test/torture-s/990404-1.c.s b/test/torture-s/990404-1.c.s index 13dc9ddca..34bc2ee84 100644 --- a/test/torture-s/990404-1.c.s +++ b/test/torture-s/990404-1.c.s @@ -66,9 +66,8 @@ main: # @main i32.gt_s $push14=, $3, $0 tee_local $push13=, $2=, $pop14 i32.select $push9=, $3, $0, $pop13 - i32.const $push61=, 0 - i32.eq $push62=, $pop9, $pop61 - br_if 2, $pop62 # 2: down to label0 + i32.eqz $push61=, $pop9 + br_if 2, $pop61 # 2: down to label0 # BB#2: # %if.end7 # in Loop: Header=BB0_1 Depth=1 i32.const $push60=, 9 diff --git a/test/torture-s/990628-1.c.s b/test/torture-s/990628-1.c.s index 094c869be..199b17e14 100644 --- a/test/torture-s/990628-1.c.s +++ b/test/torture-s/990628-1.c.s @@ -53,7 +53,7 @@ load_data: # @load_data i32.const $push3=, 0 i32.const $push27=, 404 i32.call $push26=, malloc@FUNCTION, $pop27 - tee_local $push25=, $2=, $pop26 + tee_local $push25=, $1=, $pop26 i32.store $push0=, data_ptr($pop3), $pop25 i32.const $push4=, 170 i32.const $push24=, 404 @@ -65,7 +65,7 @@ load_data: # @load_data i32.const $push21=, 0 i32.const $push20=, 0 i32.load $push19=, fetch.fetch_count($pop20) - tee_local $push18=, $3=, $pop19 + tee_local $push18=, $2=, $pop19 i32.const $push17=, 1 i32.add $push6=, $pop18, $pop17 i32.store $discard=, fetch.fetch_count($pop21), $pop6 @@ -73,40 +73,41 @@ load_data: # @load_data i32.const $push7=, 100 i32.const $push15=, 0 i32.const $push14=, 0 - i32.gt_s $push13=, $3, $pop14 - tee_local $push12=, $1=, $pop13 + i32.gt_s $push13=, $2, $pop14 + tee_local $push12=, $3=, $pop13 i32.select $push8=, $pop7, $pop15, $pop12 i32.store $discard=, sqlca($pop16), $pop8 block - br_if 0, $1 # 0: down to label0 + br_if 0, $3 # 0: down to label0 # BB#1: # %while.body.lr.ph .LBB2_2: # %while.body # =>This Inner Loop Header: Depth=1 loop # label1: - copy_local $1=, $3 + i32.const $push37=, 404 + i32.call $discard=, memcpy@FUNCTION, $1, $0, $pop37 + i32.const $push36=, 85 i32.const $push35=, 404 - i32.call $discard=, memcpy@FUNCTION, $2, $0, $pop35 - i32.const $push34=, 85 - i32.const $push33=, 404 - i32.call $discard=, memset@FUNCTION, $0, $pop34, $pop33 - i32.const $push32=, 404 - i32.add $push1=, $2, $pop32 - copy_local $2=, $pop1 + i32.call $discard=, memset@FUNCTION, $0, $pop36, $pop35 + i32.const $push34=, 404 + i32.add $push1=, $1, $pop34 + copy_local $1=, $pop1 + copy_local $push33=, $2 + tee_local $push32=, $3=, $pop33 i32.const $push31=, 1 - i32.add $push30=, $1, $pop31 - tee_local $push29=, $3=, $pop30 + i32.add $push30=, $pop32, $pop31 + tee_local $push29=, $2=, $pop30 i32.const $push28=, 1 i32.lt_s $push9=, $pop29, $pop28 br_if 0, $pop9 # 0: up to label1 # BB#3: # %while.cond.while.end_crit_edge end_loop # label2: i32.const $push10=, 0 - i32.const $push37=, 2 - i32.add $push2=, $1, $pop37 + i32.const $push39=, 2 + i32.add $push2=, $3, $pop39 i32.store $discard=, fetch.fetch_count($pop10), $pop2 - i32.const $push36=, 0 + i32.const $push38=, 0 i32.const $push11=, 100 - i32.store $discard=, sqlca($pop36), $pop11 + i32.store $discard=, sqlca($pop38), $pop11 .LBB2_4: # %while.end end_block # label0: return diff --git a/test/torture-s/991016-1.c.s b/test/torture-s/991016-1.c.s index c8cabc7ce..1cfd338d1 100644 --- a/test/torture-s/991016-1.c.s +++ b/test/torture-s/991016-1.c.s @@ -12,9 +12,8 @@ doit: # @doit block block block - i32.const $push19=, 0 - i32.eq $push20=, $0, $pop19 - br_if 0, $pop20 # 0: down to label2 + i32.eqz $push19=, $0 + br_if 0, $pop19 # 0: down to label2 # BB#1: # %entry i32.const $push6=, 1 i32.eq $push0=, $0, $pop6 diff --git a/test/torture-s/991112-1.c.s b/test/torture-s/991112-1.c.s index 390086852..04df976a8 100644 --- a/test/torture-s/991112-1.c.s +++ b/test/torture-s/991112-1.c.s @@ -41,9 +41,8 @@ main: # @main block i32.const $push0=, 97 i32.call $push1=, isprint@FUNCTION, $pop0 - i32.const $push5=, 0 - i32.eq $push6=, $pop1, $pop5 - br_if 0, $pop6 # 0: down to label0 + i32.eqz $push5=, $pop1 + br_if 0, $pop5 # 0: down to label0 # BB#1: # %if.end i32.const $push2=, 2 i32.call $push3=, isprint@FUNCTION, $pop2 diff --git a/test/torture-s/arith-rand-ll.c.s b/test/torture-s/arith-rand-ll.c.s index 73cab3650..702d9f518 100644 --- a/test/torture-s/arith-rand-ll.c.s +++ b/test/torture-s/arith-rand-ll.c.s @@ -51,9 +51,8 @@ random_bitstring: # @random_bitstring i32.const $push13=, 15 i32.and $push12=, $pop1, $pop13 tee_local $push11=, $2=, $pop12 - i32.const $push26=, 0 - i32.eq $push27=, $pop11, $pop26 - br_if 1, $pop27 # 1: down to label1 + i32.eqz $push26=, $pop11 + br_if 1, $pop26 # 1: down to label1 # BB#2: # %if.else # in Loop: Header=BB1_1 Depth=1 i64.const $push22=, 15 @@ -126,9 +125,8 @@ main: # @main i32.const $push79=, 15 i32.and $push78=, $pop1, $pop79 tee_local $push77=, $6=, $pop78 - i32.const $push176=, 0 - i32.eq $push177=, $pop77, $pop176 - br_if 1, $pop177 # 1: down to label10 + i32.eqz $push176=, $pop77 + br_if 1, $pop176 # 1: down to label10 # BB#3: # %if.else.i # in Loop: Header=BB2_2 Depth=2 i64.const $push88=, 15 @@ -175,9 +173,8 @@ main: # @main i32.const $push94=, 15 i32.and $push93=, $pop10, $pop94 tee_local $push92=, $6=, $pop93 - i32.const $push178=, 0 - i32.eq $push179=, $pop92, $pop178 - br_if 1, $pop179 # 1: down to label13 + i32.eqz $push177=, $pop92 + br_if 1, $pop177 # 1: down to label13 # BB#8: # %if.else.i457 # in Loop: Header=BB2_7 Depth=2 i64.const $push103=, 15 @@ -242,9 +239,8 @@ main: # @main # in Loop: Header=BB2_1 Depth=1 i32.wrap/i64 $push117=, $5 tee_local $push116=, $4=, $pop117 - i32.const $push180=, 0 - i32.eq $push181=, $pop116, $pop180 - br_if 0, $pop181 # 0: down to label15 + i32.eqz $push178=, $pop116 + br_if 0, $pop178 # 0: down to label15 # BB#16: # %cleanup.cont65 # in Loop: Header=BB2_1 Depth=1 block @@ -277,9 +273,8 @@ main: # @main # BB#19: # %lor.lhs.false103 # in Loop: Header=BB2_1 Depth=1 block - i32.const $push182=, 0 - i32.eq $push183=, $1, $pop182 - br_if 0, $pop183 # 0: down to label18 + i32.eqz $push179=, $1 + br_if 0, $pop179 # 0: down to label18 # BB#20: # %lor.lhs.false103 # in Loop: Header=BB2_1 Depth=1 i32.xor $push35=, $1, $6 @@ -291,9 +286,8 @@ main: # @main end_block # label18: i32.const $push129=, 65535 i32.and $push37=, $4, $pop129 - i32.const $push184=, 0 - i32.eq $push185=, $pop37, $pop184 - br_if 0, $pop185 # 0: down to label15 + i32.eqz $push180=, $pop37 + br_if 0, $pop180 # 0: down to label15 # BB#22: # %cleanup.cont158 # in Loop: Header=BB2_1 Depth=1 i32.const $push148=, 16 @@ -342,9 +336,8 @@ main: # @main # in Loop: Header=BB2_1 Depth=1 i32.const $push151=, 255 i32.and $push55=, $4, $pop151 - i32.const $push186=, 0 - i32.eq $push187=, $pop55, $pop186 - br_if 0, $pop187 # 0: down to label15 + i32.eqz $push181=, $pop55 + br_if 0, $pop181 # 0: down to label15 # BB#25: # %cleanup.cont249 # in Loop: Header=BB2_1 Depth=1 i32.const $push170=, 24 diff --git a/test/torture-s/arith-rand.c.s b/test/torture-s/arith-rand.c.s index 05db0f094..9f943e731 100644 --- a/test/torture-s/arith-rand.c.s +++ b/test/torture-s/arith-rand.c.s @@ -49,9 +49,8 @@ random_bitstring: # @random_bitstring i32.const $push10=, 15 i32.and $push9=, $pop1, $pop10 tee_local $push8=, $2=, $pop9 - i32.const $push20=, 0 - i32.eq $push21=, $pop8, $pop20 - br_if 1, $pop21 # 1: down to label1 + i32.eqz $push20=, $pop8 + br_if 1, $pop20 # 1: down to label1 # BB#2: # %if.else # in Loop: Header=BB1_1 Depth=1 i32.add $1=, $2, $1 @@ -59,9 +58,8 @@ random_bitstring: # @random_bitstring block i32.const $push16=, 256 i32.and $push2=, $3, $pop16 - i32.const $push22=, 0 - i32.eq $push23=, $pop2, $pop22 - br_if 0, $pop23 # 0: down to label2 + i32.eqz $push21=, $pop2 + br_if 0, $pop21 # 0: down to label2 # BB#3: # %if.then1 # in Loop: Header=BB1_1 Depth=1 i32.const $push18=, 1 @@ -119,9 +117,8 @@ main: # @main i32.const $push61=, 15 i32.and $push60=, $pop1, $pop61 tee_local $push59=, $4=, $pop60 - i32.const $push138=, 0 - i32.eq $push139=, $pop59, $pop138 - br_if 1, $pop139 # 1: down to label9 + i32.eqz $push138=, $pop59 + br_if 1, $pop138 # 1: down to label9 # BB#3: # %if.else.i # in Loop: Header=BB2_2 Depth=2 i32.add $2=, $4, $2 @@ -129,9 +126,8 @@ main: # @main block i32.const $push67=, 256 i32.and $push2=, $5, $pop67 - i32.const $push140=, 0 - i32.eq $push141=, $pop2, $pop140 - br_if 0, $pop141 # 0: down to label10 + i32.eqz $push139=, $pop2 + br_if 0, $pop139 # 0: down to label10 # BB#4: # %if.then1.i # in Loop: Header=BB2_2 Depth=2 i32.const $push69=, 1 @@ -164,9 +160,8 @@ main: # @main i32.const $push73=, 15 i32.and $push72=, $pop7, $pop73 tee_local $push71=, $4=, $pop72 - i32.const $push142=, 0 - i32.eq $push143=, $pop71, $pop142 - br_if 1, $pop143 # 1: down to label12 + i32.eqz $push140=, $pop71 + br_if 1, $pop140 # 1: down to label12 # BB#8: # %if.else.i343 # in Loop: Header=BB2_7 Depth=2 i32.add $3=, $4, $3 @@ -174,9 +169,8 @@ main: # @main block i32.const $push79=, 256 i32.and $push8=, $5, $pop79 - i32.const $push144=, 0 - i32.eq $push145=, $pop8, $pop144 - br_if 0, $pop145 # 0: down to label13 + i32.eqz $push141=, $pop8 + br_if 0, $pop141 # 0: down to label13 # BB#9: # %if.then1.i347 # in Loop: Header=BB2_7 Depth=2 i32.const $push81=, 1 @@ -194,9 +188,8 @@ main: # @main # in Loop: Header=BB2_1 Depth=1 end_loop # label12: block - i32.const $push146=, 0 - i32.eq $push147=, $2, $pop146 - br_if 0, $pop147 # 0: down to label14 + i32.eqz $push142=, $2 + br_if 0, $pop142 # 0: down to label14 # BB#12: # %cleanup.cont # in Loop: Header=BB2_1 Depth=1 block @@ -228,9 +221,8 @@ main: # @main # in Loop: Header=BB2_1 Depth=1 i32.const $push91=, 65535 i32.and $push20=, $2, $pop91 - i32.const $push148=, 0 - i32.eq $push149=, $pop20, $pop148 - br_if 0, $pop149 # 0: down to label14 + i32.eqz $push143=, $pop20 + br_if 0, $pop143 # 0: down to label14 # BB#16: # %cleanup.cont86 # in Loop: Header=BB2_1 Depth=1 i32.const $push110=, 16 @@ -279,9 +271,8 @@ main: # @main # in Loop: Header=BB2_1 Depth=1 i32.const $push113=, 255 i32.and $push38=, $2, $pop113 - i32.const $push150=, 0 - i32.eq $push151=, $pop38, $pop150 - br_if 0, $pop151 # 0: down to label14 + i32.eqz $push144=, $pop38 + br_if 0, $pop144 # 0: down to label14 # BB#19: # %cleanup.cont177 # in Loop: Header=BB2_1 Depth=1 i32.const $push132=, 24 diff --git a/test/torture-s/ashldi-1.c.s b/test/torture-s/ashldi-1.c.s index de3a25a97..c1d721487 100644 --- a/test/torture-s/ashldi-1.c.s +++ b/test/torture-s/ashldi-1.c.s @@ -37,9 +37,8 @@ main: # @main block loop # label4: i32.const $push10=, 1 - i32.const $push14=, 0 - i32.eq $push15=, $pop10, $pop14 - br_if 2, $pop15 # 2: down to label3 + i32.eqz $push14=, $pop10 + br_if 2, $pop14 # 2: down to label3 # BB#5: # %for.cond2 # in Loop: Header=BB0_4 Depth=1 i32.const $push13=, 1 diff --git a/test/torture-s/bcp-1.c.s b/test/torture-s/bcp-1.c.s index 90d84595a..8b0ad147e 100644 --- a/test/torture-s/bcp-1.c.s +++ b/test/torture-s/bcp-1.c.s @@ -301,16 +301,14 @@ main: # @main i32.const $push50=, 0 i32.load $push23=, good_t0($pop50) i32.call_indirect $push24=, $pop23 - i32.const $push57=, 0 - i32.eq $push58=, $pop24, $pop57 - br_if 0, $pop58 # 0: down to label4 + i32.eqz $push57=, $pop24 + br_if 0, $pop57 # 0: down to label4 # BB#12: # %for.cond23 i32.const $push51=, 0 i32.load $push25=, good_t0+4($pop51) i32.call_indirect $push26=, $pop25 - i32.const $push59=, 0 - i32.eq $push60=, $pop26, $pop59 - br_if 0, $pop60 # 0: down to label4 + i32.eqz $push58=, $pop26 + br_if 0, $pop58 # 0: down to label4 # BB#13: # %for.cond23.1 i32.const $push52=, 0 i32.load $push27=, good_t0+8($pop52) @@ -339,16 +337,14 @@ main: # @main i32.const $push53=, 0 i32.load $push29=, opt_t0($pop53) i32.call_indirect $push30=, $pop29 - i32.const $push61=, 0 - i32.eq $push62=, $pop30, $pop61 - br_if 0, $pop62 # 0: down to label6 + i32.eqz $push59=, $pop30 + br_if 0, $pop59 # 0: down to label6 # BB#19: # %for.cond34 i32.const $push54=, 0 i32.load $push31=, opt_t0+4($pop54) i32.call_indirect $push32=, $pop31 - i32.const $push63=, 0 - i32.eq $push64=, $pop32, $pop63 - br_if 0, $pop64 # 0: down to label6 + i32.eqz $push60=, $pop32 + br_if 0, $pop60 # 0: down to label6 # BB#20: # %for.cond34.1 i32.const $push55=, 0 i32.load $push33=, opt_t0+8($pop55) diff --git a/test/torture-s/builtin-bitops-1.c.s b/test/torture-s/builtin-bitops-1.c.s index 024bc12ed..4760c0294 100644 --- a/test/torture-s/builtin-bitops-1.c.s +++ b/test/torture-s/builtin-bitops-1.c.s @@ -11,9 +11,8 @@ my_ffs: # @my_ffs # BB#0: # %entry i32.const $1=, 0 block - i32.const $push7=, 0 - i32.eq $push8=, $0, $pop7 - br_if 0, $pop8 # 0: down to label0 + i32.eqz $push7=, $0 + br_if 0, $pop7 # 0: down to label0 # BB#1: # %for.body.preheader i32.const $1=, 0 .LBB0_2: # %for.body @@ -222,9 +221,8 @@ my_ffsl: # @my_ffsl # BB#0: # %entry i32.const $1=, 0 block - i32.const $push7=, 0 - i32.eq $push8=, $0, $pop7 - br_if 0, $pop8 # 0: down to label13 + i32.eqz $push7=, $0 + br_if 0, $pop7 # 0: down to label13 # BB#1: # %for.body.preheader i32.const $1=, 0 .LBB6_2: # %for.body @@ -685,9 +683,8 @@ main: # @main i32.select $4=, $pop4, $pop212, $10 i32.const $9=, 0 block - i32.const $push378=, 0 - i32.eq $push379=, $10, $pop378 - br_if 0, $pop379 # 0: down to label43 + i32.eqz $push378=, $10 + br_if 0, $pop378 # 0: down to label43 # BB#2: # %for.body.i.preheader # in Loop: Header=BB18_1 Depth=1 i32.const $9=, 0 @@ -719,9 +716,8 @@ main: # @main # BB#7: # %if.end # in Loop: Header=BB18_1 Depth=1 block - i32.const $push380=, 0 - i32.eq $push381=, $10, $pop380 - br_if 0, $pop381 # 0: down to label46 + i32.eqz $push379=, $10 + br_if 0, $pop379 # 0: down to label46 # BB#8: # %land.lhs.true # in Loop: Header=BB18_1 Depth=1 i32.clz $1=, $10 @@ -892,9 +888,8 @@ main: # @main i32.select $4=, $pop36, $pop252, $10 i32.const $9=, 0 block - i32.const $push382=, 0 - i32.eq $push383=, $10, $pop382 - br_if 0, $pop383 # 0: down to label59 + i32.eqz $push380=, $10 + br_if 0, $pop380 # 0: down to label59 # BB#29: # %for.body.i1251.preheader # in Loop: Header=BB18_28 Depth=1 i32.const $9=, 0 @@ -926,9 +921,8 @@ main: # @main # BB#34: # %if.end49 # in Loop: Header=BB18_28 Depth=1 block - i32.const $push384=, 0 - i32.eq $push385=, $10, $pop384 - br_if 0, $pop385 # 0: down to label62 + i32.eqz $push381=, $10 + br_if 0, $pop381 # 0: down to label62 # BB#35: # %land.lhs.true52 # in Loop: Header=BB18_28 Depth=1 i32.clz $1=, $10 @@ -1374,9 +1368,8 @@ main: # @main i32.shr_u $push142=, $pop344, $10 i32.const $push343=, 1 i32.and $push143=, $pop142, $pop343 - i32.const $push386=, 0 - i32.eq $push387=, $pop143, $pop386 - br_if 1, $pop387 # 1: down to label90 + i32.eqz $push382=, $pop143 + br_if 1, $pop382 # 1: down to label90 # BB#94: # %for.inc.i1938 # in Loop: Header=BB18_93 Depth=1 i32.const $push347=, 1 @@ -1406,9 +1399,8 @@ main: # @main # =>This Inner Loop Header: Depth=1 loop # label91: i32.wrap/i64 $push151=, $7 - i32.const $push388=, 0 - i32.eq $push389=, $pop151, $pop388 - br_if 1, $pop389 # 1: down to label92 + i32.eqz $push383=, $pop151 + br_if 1, $pop383 # 1: down to label92 # BB#99: # %for.inc.i1848 # in Loop: Header=BB18_98 Depth=1 i64.const $push352=, 1 diff --git a/test/torture-s/builtin-prefetch-4.c.s b/test/torture-s/builtin-prefetch-4.c.s index f10121019..c66a41c68 100644 --- a/test/torture-s/builtin-prefetch-4.c.s +++ b/test/torture-s/builtin-prefetch-4.c.s @@ -442,9 +442,8 @@ main: # @main i32.add $push2=, $pop8, $pop34 i32.store $discard=, ptr($pop36), $pop2 i32.const $push33=, 1 - i32.const $push73=, 0 - i32.eq $push74=, $pop33, $pop73 - br_if 0, $pop74 # 0: down to label0 + i32.eqz $push73=, $pop33 + br_if 0, $pop73 # 0: down to label0 # BB#3: # %if.end20 i32.const $push40=, 0 i32.const $push39=, 0 @@ -453,9 +452,8 @@ main: # @main i32.add $push9=, $pop3, $pop38 i32.store $discard=, ptr($pop40), $pop9 i32.const $push37=, 1 - i32.const $push75=, 0 - i32.eq $push76=, $pop37, $pop75 - br_if 0, $pop76 # 0: down to label0 + i32.eqz $push74=, $pop37 + br_if 0, $pop74 # 0: down to label0 # BB#4: # %if.end28 i32.const $push44=, 0 i32.const $push43=, 0 @@ -464,9 +462,8 @@ main: # @main i32.add $push4=, $pop10, $pop42 i32.store $discard=, ptr($pop44), $pop4 i32.const $push41=, 1 - i32.const $push77=, 0 - i32.eq $push78=, $pop41, $pop77 - br_if 0, $pop78 # 0: down to label0 + i32.eqz $push75=, $pop41 + br_if 0, $pop75 # 0: down to label0 # BB#5: # %if.end36 i32.const $push48=, 0 i32.const $push47=, 0 @@ -475,9 +472,8 @@ main: # @main i32.add $push11=, $pop5, $pop46 i32.store $discard=, ptr($pop48), $pop11 i32.const $push45=, 1 - i32.const $push79=, 0 - i32.eq $push80=, $pop45, $pop79 - br_if 0, $pop80 # 0: down to label0 + i32.eqz $push76=, $pop45 + br_if 0, $pop76 # 0: down to label0 # BB#6: # %if.end44 i32.const $push52=, 0 i32.const $push51=, 0 @@ -486,9 +482,8 @@ main: # @main i32.add $push13=, $pop12, $pop50 i32.store $discard=, arrindex($pop52), $pop13 i32.const $push49=, 1 - i32.const $push81=, 0 - i32.eq $push82=, $pop49, $pop81 - br_if 0, $pop82 # 0: down to label0 + i32.eqz $push77=, $pop49 + br_if 0, $pop77 # 0: down to label0 # BB#7: # %if.end52 i32.const $push56=, 0 i32.const $push55=, 0 @@ -497,9 +492,8 @@ main: # @main i32.add $push15=, $pop14, $pop54 i32.store $discard=, arrindex($pop56), $pop15 i32.const $push53=, 1 - i32.const $push83=, 0 - i32.eq $push84=, $pop53, $pop83 - br_if 0, $pop84 # 0: down to label0 + i32.eqz $push78=, $pop53 + br_if 0, $pop78 # 0: down to label0 # BB#8: # %if.end64 i32.const $push60=, 0 i32.const $push59=, 0 @@ -508,9 +502,8 @@ main: # @main i32.add $push17=, $pop16, $pop58 i32.store $discard=, arrindex($pop60), $pop17 i32.const $push57=, 1 - i32.const $push85=, 0 - i32.eq $push86=, $pop57, $pop85 - br_if 0, $pop86 # 0: down to label0 + i32.eqz $push79=, $pop57 + br_if 0, $pop79 # 0: down to label0 # BB#9: # %if.end72 i32.const $push64=, 0 i32.const $push63=, 0 @@ -519,9 +512,8 @@ main: # @main i32.add $push19=, $pop18, $pop62 i32.store $discard=, arrindex($pop64), $pop19 i32.const $push61=, 1 - i32.const $push87=, 0 - i32.eq $push88=, $pop61, $pop87 - br_if 0, $pop88 # 0: down to label0 + i32.eqz $push80=, $pop61 + br_if 0, $pop80 # 0: down to label0 # BB#10: # %if.end76 i32.const $push68=, 0 i32.const $push67=, 0 diff --git a/test/torture-s/cbrt.c.s b/test/torture-s/cbrt.c.s index 8ea69015f..2f571dff2 100644 --- a/test/torture-s/cbrt.c.s +++ b/test/torture-s/cbrt.c.s @@ -42,9 +42,8 @@ cbrtl: # @cbrtl block i32.wrap/i64 $push7=, $3 i32.or $push8=, $pop7, $2 - i32.const $push90=, 0 - i32.eq $push91=, $pop8, $pop90 - br_if 0, $pop91 # 0: down to label1 + i32.eqz $push90=, $pop8 + br_if 0, $pop90 # 0: down to label1 # BB#3: # %if.end13 block block diff --git a/test/torture-s/compare-1.c.s b/test/torture-s/compare-1.c.s index dc28c191c..45b9d5571 100644 --- a/test/torture-s/compare-1.c.s +++ b/test/torture-s/compare-1.c.s @@ -15,19 +15,16 @@ ieq: # @ieq block i32.ne $push1=, $0, $1 tee_local $push0=, $0=, $pop1 - i32.const $push2=, 0 - i32.eq $push3=, $pop0, $pop2 - br_if 0, $pop3 # 0: down to label4 + i32.eqz $push2=, $pop0 + br_if 0, $pop2 # 0: down to label4 # BB#1: # %if.else - i32.const $push4=, 0 - i32.eq $push5=, $2, $pop4 - br_if 1, $pop5 # 1: down to label3 + i32.eqz $push3=, $2 + br_if 1, $pop3 # 1: down to label3 br 2 # 2: down to label2 .LBB0_2: # %if.then end_block # label4: - i32.const $push6=, 0 - i32.eq $push7=, $2, $pop6 - br_if 2, $pop7 # 2: down to label1 + i32.eqz $push4=, $2 + br_if 2, $pop4 # 2: down to label1 .LBB0_3: # %if.end6 end_block # label3: block @@ -45,19 +42,16 @@ ieq: # @ieq end_block # label5: block block - i32.const $push8=, 0 - i32.eq $push9=, $0, $pop8 - br_if 0, $pop9 # 0: down to label8 + i32.eqz $push5=, $0 + br_if 0, $pop5 # 0: down to label8 # BB#8: # %if.else26 - i32.const $push10=, 0 - i32.eq $push11=, $2, $pop10 - br_if 1, $pop11 # 1: down to label7 + i32.eqz $push6=, $2 + br_if 1, $pop6 # 1: down to label7 br 2 # 2: down to label2 .LBB0_9: # %if.then22 end_block # label8: - i32.const $push12=, 0 - i32.eq $push13=, $2, $pop12 - br_if 3, $pop13 # 3: down to label0 + i32.eqz $push7=, $2 + br_if 3, $pop7 # 3: down to label0 .LBB0_10: # %if.end30 end_block # label7: block @@ -104,17 +98,15 @@ ine: # @ine i32.ne $push0=, $0, $1 br_if 0, $pop0 # 0: down to label13 # BB#1: # %if.else - i32.const $push1=, 0 - i32.eq $push2=, $2, $pop1 - br_if 1, $pop2 # 1: down to label12 + i32.eqz $push1=, $2 + br_if 1, $pop1 # 1: down to label12 # BB#2: # %if.then4 call abort@FUNCTION unreachable .LBB1_3: # %if.then end_block # label13: - i32.const $push3=, 0 - i32.eq $push4=, $2, $pop3 - br_if 1, $pop4 # 1: down to label11 + i32.eqz $push2=, $2 + br_if 1, $pop2 # 1: down to label11 .LBB1_4: # %if.end6 end_block # label12: return $0 @@ -172,17 +164,15 @@ ile: # @ile i32.le_s $push0=, $0, $1 br_if 0, $pop0 # 0: down to label19 # BB#1: # %if.else - i32.const $push1=, 0 - i32.eq $push2=, $2, $pop1 - br_if 1, $pop2 # 1: down to label18 + i32.eqz $push1=, $2 + br_if 1, $pop1 # 1: down to label18 # BB#2: # %if.then4 call abort@FUNCTION unreachable .LBB3_3: # %if.then end_block # label19: - i32.const $push3=, 0 - i32.eq $push4=, $2, $pop3 - br_if 1, $pop4 # 1: down to label17 + i32.eqz $push2=, $2 + br_if 1, $pop2 # 1: down to label17 .LBB3_4: # %if.end6 end_block # label18: return $0 @@ -240,17 +230,15 @@ ige: # @ige i32.ge_s $push0=, $0, $1 br_if 0, $pop0 # 0: down to label25 # BB#1: # %if.else - i32.const $push1=, 0 - i32.eq $push2=, $2, $pop1 - br_if 1, $pop2 # 1: down to label24 + i32.eqz $push1=, $2 + br_if 1, $pop1 # 1: down to label24 # BB#2: # %if.then4 call abort@FUNCTION unreachable .LBB5_3: # %if.then end_block # label25: - i32.const $push3=, 0 - i32.eq $push4=, $2, $pop3 - br_if 1, $pop4 # 1: down to label23 + i32.eqz $push2=, $2 + br_if 1, $pop2 # 1: down to label23 .LBB5_4: # %if.end6 end_block # label24: return $0 diff --git a/test/torture-s/compndlit-1.c.s b/test/torture-s/compndlit-1.c.s index adb989303..26852c0a9 100644 --- a/test/torture-s/compndlit-1.c.s +++ b/test/torture-s/compndlit-1.c.s @@ -21,9 +21,8 @@ main: # @main i32.select $push6=, $pop5, $pop4, $pop7 i32.store $discard=, x($pop10), $pop6 block - i32.const $push12=, 0 - i32.eq $push13=, $0, $pop12 - br_if 0, $pop13 # 0: down to label0 + i32.eqz $push12=, $0 + br_if 0, $pop12 # 0: down to label0 # BB#1: # %if.end i32.const $push11=, 0 call exit@FUNCTION, $pop11 diff --git a/test/torture-s/conversion.c.s b/test/torture-s/conversion.c.s index 3f1fa391e..f516a9323 100644 --- a/test/torture-s/conversion.c.s +++ b/test/torture-s/conversion.c.s @@ -208,9 +208,8 @@ ldnear: # @ldnear i64.const $push1=, 0 i64.const $push22=, 0 i32.call $push2=, __eqtf2@FUNCTION, $pop26, $pop23, $pop1, $pop22 - i32.const $push31=, 0 - i32.eq $push32=, $pop2, $pop31 - br_if 0, $pop32 # 0: down to label2 + i32.eqz $push31=, $pop2 + br_if 0, $pop31 # 0: down to label2 # BB#1: # %lor.rhs call __divtf3@FUNCTION, $5, $0, $1, $2, $3 i64.load $push5=, 0($5) diff --git a/test/torture-s/dbra-1.c.s b/test/torture-s/dbra-1.c.s index 9ddfd9a98..3c17f5283 100644 --- a/test/torture-s/dbra-1.c.s +++ b/test/torture-s/dbra-1.c.s @@ -12,9 +12,8 @@ f1: # @f1 i32.const $1=, 0 block block - i32.const $push21=, 0 - i32.eq $push22=, $0, $pop21 - br_if 0, $pop22 # 0: down to label1 + i32.eqz $push21=, $0 + br_if 0, $pop21 # 0: down to label1 # BB#1: # %for.inc i32.const $1=, 1 i32.const $push12=, 1 diff --git a/test/torture-s/fprintf-1.c.s b/test/torture-s/fprintf-1.c.s index cd9ecaeec..3ee84b2fd 100644 --- a/test/torture-s/fprintf-1.c.s +++ b/test/torture-s/fprintf-1.c.s @@ -8,181 +8,145 @@ main: # @main .result i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push59=, __stack_pointer - i32.const $push56=, __stack_pointer - i32.load $push57=, 0($pop56) - i32.const $push58=, 144 - i32.sub $push79=, $pop57, $pop58 - i32.store $2=, 0($pop59), $pop79 - i32.const $push1=, .L.str - i32.const $push2=, 5 - i32.const $push85=, 1 - i32.const $push84=, 0 - i32.load $push0=, stdout($pop84) - i32.call $discard=, fwrite@FUNCTION, $pop1, $pop2, $pop85, $pop0 + i32.const $push48=, __stack_pointer + i32.const $push45=, __stack_pointer + i32.load $push46=, 0($pop45) + i32.const $push47=, 144 + i32.sub $push68=, $pop46, $pop47 + i32.store $1=, 0($pop48), $pop68 + i32.const $push0=, .L.str + i32.const $push1=, 5 + i32.const $push75=, 1 + i32.const $push74=, 0 + i32.load $push73=, stdout($pop74) + tee_local $push72=, $2=, $pop73 + i32.call $discard=, fwrite@FUNCTION, $pop0, $pop1, $pop75, $pop72 block - i32.const $push83=, 0 - i32.load $push3=, stdout($pop83) - i32.const $push82=, .L.str - i32.const $push81=, 0 - i32.call $push4=, fprintf@FUNCTION, $pop3, $pop82, $pop81 - i32.const $push80=, 5 - i32.ne $push5=, $pop4, $pop80 - br_if 0, $pop5 # 0: down to label0 + i32.const $push71=, .L.str + i32.const $push70=, 0 + i32.call $push2=, fprintf@FUNCTION, $2, $pop71, $pop70 + i32.const $push69=, 5 + i32.ne $push3=, $pop2, $pop69 + br_if 0, $pop3 # 0: down to label0 # BB#1: # %if.end - i32.const $push7=, .L.str.1 - i32.const $push8=, 6 - i32.const $push91=, 1 - i32.const $push90=, 0 - i32.load $push6=, stdout($pop90) - i32.call $discard=, fwrite@FUNCTION, $pop7, $pop8, $pop91, $pop6 - i32.const $push89=, 0 - i32.load $push9=, stdout($pop89) - i32.const $push88=, .L.str.1 - i32.const $push87=, 0 - i32.call $push10=, fprintf@FUNCTION, $pop9, $pop88, $pop87 - i32.const $push86=, 6 - i32.ne $push11=, $pop10, $pop86 - br_if 0, $pop11 # 0: down to label0 + i32.const $push4=, .L.str.1 + i32.const $push5=, 6 + i32.const $push79=, 1 + i32.call $discard=, fwrite@FUNCTION, $pop4, $pop5, $pop79, $2 + i32.const $push78=, .L.str.1 + i32.const $push77=, 0 + i32.call $push6=, fprintf@FUNCTION, $2, $pop78, $pop77 + i32.const $push76=, 6 + i32.ne $push7=, $pop6, $pop76 + br_if 0, $pop7 # 0: down to label0 # BB#2: # %if.end6 - i32.const $push13=, 97 - i32.const $push94=, 0 - i32.load $push12=, stdout($pop94) - i32.call $discard=, fputc@FUNCTION, $pop13, $pop12 - i32.const $push93=, 0 - i32.load $push14=, stdout($pop93) - i32.const $push15=, .L.str.2 - i32.const $push92=, 0 - i32.call $push16=, fprintf@FUNCTION, $pop14, $pop15, $pop92 - i32.const $push17=, 1 - i32.ne $push18=, $pop16, $pop17 - br_if 0, $pop18 # 0: down to label0 + i32.const $push8=, 97 + i32.call $discard=, fputc@FUNCTION, $pop8, $2 + i32.const $push9=, .L.str.2 + i32.const $push80=, 0 + i32.call $push10=, fprintf@FUNCTION, $2, $pop9, $pop80 + i32.const $push11=, 1 + i32.ne $push12=, $pop10, $pop11 + br_if 0, $pop12 # 0: down to label0 # BB#3: # %if.end11 - i32.const $push96=, 0 - i32.load $push19=, stdout($pop96) - i32.const $push20=, .L.str.3 - i32.const $push95=, 0 - i32.call $push21=, fprintf@FUNCTION, $pop19, $pop20, $pop95 - br_if 0, $pop21 # 0: down to label0 + i32.const $push13=, .L.str.3 + i32.const $push81=, 0 + i32.call $push14=, fprintf@FUNCTION, $2, $pop13, $pop81 + br_if 0, $pop14 # 0: down to label0 # BB#4: # %if.end16 - i32.const $push23=, .L.str - i32.const $push24=, 5 - i32.const $push102=, 1 - i32.const $push101=, 0 - i32.load $push22=, stdout($pop101) - i32.call $discard=, fwrite@FUNCTION, $pop23, $pop24, $pop102, $pop22 - i32.const $push100=, 0 - i32.load $1=, stdout($pop100) - i32.const $push99=, .L.str - i32.store $discard=, 128($2), $pop99 - i32.const $push98=, .L.str.4 - i32.const $push63=, 128 - i32.add $push64=, $2, $pop63 - i32.call $push25=, fprintf@FUNCTION, $1, $pop98, $pop64 - i32.const $push97=, 5 - i32.ne $push26=, $pop25, $pop97 - br_if 0, $pop26 # 0: down to label0 + i32.const $push15=, .L.str + i32.const $push16=, 5 + i32.const $push85=, 1 + i32.call $discard=, fwrite@FUNCTION, $pop15, $pop16, $pop85, $2 + i32.const $push84=, .L.str + i32.store $discard=, 128($1), $pop84 + i32.const $push83=, .L.str.4 + i32.const $push52=, 128 + i32.add $push53=, $1, $pop52 + i32.call $push17=, fprintf@FUNCTION, $2, $pop83, $pop53 + i32.const $push82=, 5 + i32.ne $push18=, $pop17, $pop82 + br_if 0, $pop18 # 0: down to label0 # BB#5: # %if.end21 - i32.const $push28=, .L.str.1 - i32.const $push29=, 6 - i32.const $push108=, 1 - i32.const $push107=, 0 - i32.load $push27=, stdout($pop107) - i32.call $discard=, fwrite@FUNCTION, $pop28, $pop29, $pop108, $pop27 - i32.const $push106=, 0 - i32.load $1=, stdout($pop106) - i32.const $push105=, .L.str.1 - i32.store $discard=, 112($2), $pop105 - i32.const $push104=, .L.str.4 - i32.const $push65=, 112 - i32.add $push66=, $2, $pop65 - i32.call $push30=, fprintf@FUNCTION, $1, $pop104, $pop66 - i32.const $push103=, 6 - i32.ne $push31=, $pop30, $pop103 - br_if 0, $pop31 # 0: down to label0 + i32.const $push19=, .L.str.1 + i32.const $push20=, 6 + i32.const $push89=, 1 + i32.call $discard=, fwrite@FUNCTION, $pop19, $pop20, $pop89, $2 + i32.const $push88=, .L.str.1 + i32.store $discard=, 112($1), $pop88 + i32.const $push87=, .L.str.4 + i32.const $push54=, 112 + i32.add $push55=, $1, $pop54 + i32.call $push21=, fprintf@FUNCTION, $2, $pop87, $pop55 + i32.const $push86=, 6 + i32.ne $push22=, $pop21, $pop86 + br_if 0, $pop22 # 0: down to label0 # BB#6: # %if.end26 - i32.const $push33=, 97 - i32.const $push111=, 0 - i32.load $push32=, stdout($pop111) - i32.call $discard=, fputc@FUNCTION, $pop33, $pop32 - i32.const $push110=, 0 - i32.load $1=, stdout($pop110) - i32.const $push34=, .L.str.2 - i32.store $discard=, 96($2), $pop34 - i32.const $push109=, .L.str.4 - i32.const $push67=, 96 - i32.add $push68=, $2, $pop67 - i32.call $push35=, fprintf@FUNCTION, $1, $pop109, $pop68 - i32.const $push36=, 1 - i32.ne $push37=, $pop35, $pop36 - br_if 0, $pop37 # 0: down to label0 + i32.const $push23=, 97 + i32.call $discard=, fputc@FUNCTION, $pop23, $2 + i32.const $push24=, .L.str.2 + i32.store $discard=, 96($1), $pop24 + i32.const $push90=, .L.str.4 + i32.const $push56=, 96 + i32.add $push57=, $1, $pop56 + i32.call $push25=, fprintf@FUNCTION, $2, $pop90, $pop57 + i32.const $push26=, 1 + i32.ne $push27=, $pop25, $pop26 + br_if 0, $pop27 # 0: down to label0 # BB#7: # %if.end31 - i32.const $push113=, 0 - i32.load $1=, stdout($pop113) - i32.const $push38=, .L.str.3 - i32.store $discard=, 80($2), $pop38 - i32.const $push112=, .L.str.4 - i32.const $push69=, 80 - i32.add $push70=, $2, $pop69 - i32.call $push39=, fprintf@FUNCTION, $1, $pop112, $pop70 - br_if 0, $pop39 # 0: down to label0 + i32.const $push28=, .L.str.3 + i32.store $discard=, 80($1), $pop28 + i32.const $push91=, .L.str.4 + i32.const $push58=, 80 + i32.add $push59=, $1, $pop58 + i32.call $push29=, fprintf@FUNCTION, $2, $pop91, $pop59 + br_if 0, $pop29 # 0: down to label0 # BB#8: # %if.end36 - i32.const $push41=, 120 - i32.const $push116=, 0 - i32.load $push40=, stdout($pop116) - i32.call $discard=, fputc@FUNCTION, $pop41, $pop40 - i32.const $push115=, 0 - i32.load $1=, stdout($pop115) - i32.const $push114=, 120 - i32.store $discard=, 64($2), $pop114 - i32.const $push42=, .L.str.5 - i32.const $push71=, 64 - i32.add $push72=, $2, $pop71 - i32.call $push43=, fprintf@FUNCTION, $1, $pop42, $pop72 - i32.const $push44=, 1 - i32.ne $push45=, $pop43, $pop44 - br_if 0, $pop45 # 0: down to label0 + i32.const $push30=, 120 + i32.call $discard=, fputc@FUNCTION, $pop30, $2 + i32.const $push92=, 120 + i32.store $discard=, 64($1), $pop92 + i32.const $push31=, .L.str.5 + i32.const $push60=, 64 + i32.add $push61=, $1, $pop60 + i32.call $push32=, fprintf@FUNCTION, $2, $pop31, $pop61 + i32.const $push33=, 1 + i32.ne $push34=, $pop32, $pop33 + br_if 0, $pop34 # 0: down to label0 # BB#9: # %if.end41 - i32.const $push119=, 0 - i32.load $1=, stdout($pop119) - i32.const $push46=, .L.str.1 - i32.store $0=, 48($2), $pop46 - i32.const $push47=, .L.str.6 - i32.const $push73=, 48 - i32.add $push74=, $2, $pop73 - i32.call $discard=, fprintf@FUNCTION, $1, $pop47, $pop74 - i32.const $push118=, 0 - i32.load $1=, stdout($pop118) - i32.store $discard=, 32($2), $0 - i32.const $push117=, .L.str.6 - i32.const $push75=, 32 - i32.add $push76=, $2, $pop75 - i32.call $push48=, fprintf@FUNCTION, $1, $pop117, $pop76 - i32.const $push49=, 7 - i32.ne $push50=, $pop48, $pop49 - br_if 0, $pop50 # 0: down to label0 + i32.const $push35=, .L.str.1 + i32.store $0=, 48($1), $pop35 + i32.const $push36=, .L.str.6 + i32.const $push62=, 48 + i32.add $push63=, $1, $pop62 + i32.call $discard=, fprintf@FUNCTION, $2, $pop36, $pop63 + i32.store $discard=, 32($1), $0 + i32.const $push93=, .L.str.6 + i32.const $push64=, 32 + i32.add $push65=, $1, $pop64 + i32.call $push37=, fprintf@FUNCTION, $2, $pop93, $pop65 + i32.const $push38=, 7 + i32.ne $push39=, $pop37, $pop38 + br_if 0, $pop39 # 0: down to label0 # BB#10: # %if.end46 - i32.const $push51=, 0 - i32.load $0=, stdout($pop51) - i32.const $push121=, 0 - i32.store $1=, 16($2), $pop121 - i32.const $push52=, .L.str.7 - i32.const $push77=, 16 - i32.add $push78=, $2, $pop77 - i32.call $discard=, fprintf@FUNCTION, $0, $pop52, $pop78 - i32.load $0=, stdout($1) - i32.store $discard=, 0($2), $1 - i32.const $push120=, .L.str.7 - i32.call $push53=, fprintf@FUNCTION, $0, $pop120, $2 - i32.const $push54=, 2 - i32.ne $push55=, $pop53, $pop54 - br_if 0, $pop55 # 0: down to label0 + i32.const $push40=, 0 + i32.store $0=, 16($1), $pop40 + i32.const $push41=, .L.str.7 + i32.const $push66=, 16 + i32.add $push67=, $1, $pop66 + i32.call $discard=, fprintf@FUNCTION, $2, $pop41, $pop67 + i32.store $discard=, 0($1), $0 + i32.const $push94=, .L.str.7 + i32.call $push42=, fprintf@FUNCTION, $2, $pop94, $1 + i32.const $push43=, 2 + i32.ne $push44=, $pop42, $pop43 + br_if 0, $pop44 # 0: down to label0 # BB#11: # %if.end51 - i32.const $push62=, __stack_pointer - i32.const $push60=, 144 - i32.add $push61=, $2, $pop60 - i32.store $discard=, 0($pop62), $pop61 - return $1 + i32.const $push51=, __stack_pointer + i32.const $push49=, 144 + i32.add $push50=, $1, $pop49 + i32.store $discard=, 0($pop51), $pop50 + return $0 .LBB0_12: # %if.then50 end_block # label0: call abort@FUNCTION diff --git a/test/torture-s/fprintf-chk-1.c.s b/test/torture-s/fprintf-chk-1.c.s index ad72f0b69..34322cdb7 100644 --- a/test/torture-s/fprintf-chk-1.c.s +++ b/test/torture-s/fprintf-chk-1.c.s @@ -46,380 +46,322 @@ main: # @main .result i32 .local i32, i32, i32, i32 # BB#0: # %entry - i32.const $push83=, __stack_pointer - i32.const $push80=, __stack_pointer - i32.load $push81=, 0($pop80) - i32.const $push82=, 224 - i32.sub $push113=, $pop81, $pop82 - i32.store $1=, 0($pop83), $pop113 - i32.const $push118=, 0 - i32.const $push3=, 1 - i32.store $discard=, should_optimize($pop118), $pop3 - i32.const $push117=, 0 - i32.load $push4=, stdout($pop117) + i32.const $push76=, __stack_pointer + i32.const $push73=, __stack_pointer + i32.load $push74=, 0($pop73) + i32.const $push75=, 224 + i32.sub $push106=, $pop74, $pop75 + i32.store $2=, 0($pop76), $pop106 + i32.const $push113=, 0 + i32.const $push4=, 1 + i32.store $discard=, should_optimize($pop113), $pop4 + i32.const $push112=, 0 + i32.load $push111=, stdout($pop112) + tee_local $push110=, $3=, $pop111 + i32.const $push109=, .L.str + i32.const $push108=, 0 + i32.call $discard=, __fprintf_chk@FUNCTION, $pop110, $2, $pop109, $pop108 + block + i32.const $push107=, 0 + i32.load $push5=, should_optimize($pop107) + i32.eqz $push183=, $pop5 + br_if 0, $pop183 # 0: down to label1 +# BB#1: # %if.end i32.const $push116=, .L.str i32.const $push115=, 0 - i32.call $discard=, __fprintf_chk@FUNCTION, $pop4, $1, $pop116, $pop115 - block i32.const $push114=, 0 - i32.load $push5=, should_optimize($pop114) - i32.const $push212=, 0 - i32.eq $push213=, $pop5, $pop212 - br_if 0, $pop213 # 0: down to label1 -# BB#1: # %if.end - i32.const $push123=, 0 - i32.const $push122=, 0 - i32.store $push121=, should_optimize($pop123), $pop122 - tee_local $push120=, $0=, $pop121 - i32.load $push6=, stdout($pop120) - i32.const $push119=, .L.str - i32.call $push7=, __fprintf_chk@FUNCTION, $pop6, $1, $pop119, $0 - i32.const $push8=, 5 - i32.ne $push9=, $pop7, $pop8 - br_if 0, $pop9 # 0: down to label1 + i32.store $push0=, should_optimize($pop115), $pop114 + i32.call $push6=, __fprintf_chk@FUNCTION, $3, $2, $pop116, $pop0 + i32.const $push7=, 5 + i32.ne $push8=, $pop6, $pop7 + br_if 0, $pop8 # 0: down to label1 # BB#2: # %if.end3 - i32.const $push124=, 0 - i32.load $push10=, should_optimize($pop124) - i32.const $push214=, 0 - i32.eq $push215=, $pop10, $pop214 - br_if 0, $pop215 # 0: down to label1 + i32.const $push117=, 0 + i32.load $push9=, should_optimize($pop117) + i32.eqz $push184=, $pop9 + br_if 0, $pop184 # 0: down to label1 # BB#3: # %if.end6 - i32.const $push129=, 0 - i32.const $push11=, 1 - i32.store $discard=, should_optimize($pop129), $pop11 - i32.const $push128=, 0 - i32.load $push12=, stdout($pop128) - i32.const $push127=, .L.str.1 - i32.const $push126=, 0 - i32.call $discard=, __fprintf_chk@FUNCTION, $pop12, $1, $pop127, $pop126 - i32.const $push125=, 0 - i32.load $push13=, should_optimize($pop125) - i32.const $push216=, 0 - i32.eq $push217=, $pop13, $pop216 - br_if 0, $pop217 # 0: down to label1 + i32.const $push121=, 0 + i32.const $push10=, 1 + i32.store $discard=, should_optimize($pop121), $pop10 + i32.const $push120=, .L.str.1 + i32.const $push119=, 0 + i32.call $discard=, __fprintf_chk@FUNCTION, $3, $2, $pop120, $pop119 + i32.const $push118=, 0 + i32.load $push11=, should_optimize($pop118) + i32.eqz $push185=, $pop11 + br_if 0, $pop185 # 0: down to label1 # BB#4: # %if.end10 - i32.const $push14=, 0 - i32.const $push133=, 0 - i32.store $push132=, should_optimize($pop14), $pop133 - tee_local $push131=, $0=, $pop132 - i32.load $push15=, stdout($pop131) - i32.const $push130=, .L.str.1 - i32.call $push16=, __fprintf_chk@FUNCTION, $pop15, $1, $pop130, $0 - i32.const $push17=, 6 - i32.ne $push18=, $pop16, $pop17 - br_if 0, $pop18 # 0: down to label1 + i32.const $push125=, .L.str.1 + i32.const $push12=, 0 + i32.const $push124=, 0 + i32.store $push123=, should_optimize($pop12), $pop124 + tee_local $push122=, $1=, $pop123 + i32.call $push13=, __fprintf_chk@FUNCTION, $3, $2, $pop125, $pop122 + i32.const $push14=, 6 + i32.ne $push15=, $pop13, $pop14 + br_if 0, $pop15 # 0: down to label1 # BB#5: # %if.end14 - i32.load $push19=, should_optimize($0) - i32.const $push218=, 0 - i32.eq $push219=, $pop19, $pop218 - br_if 0, $pop219 # 0: down to label1 + i32.load $push16=, should_optimize($1) + i32.eqz $push186=, $pop16 + br_if 0, $pop186 # 0: down to label1 # BB#6: # %if.end17 - i32.const $push138=, 0 - i32.const $push20=, 1 - i32.store $0=, should_optimize($pop138), $pop20 + i32.const $push129=, 0 + i32.const $push17=, 1 + i32.store $1=, should_optimize($pop129), $pop17 + i32.const $push128=, .L.str.2 + i32.const $push127=, 0 + i32.call $discard=, __fprintf_chk@FUNCTION, $3, $2, $pop128, $pop127 + i32.const $push126=, 0 + i32.load $push18=, should_optimize($pop126) + i32.eqz $push187=, $pop18 + br_if 0, $pop187 # 0: down to label1 +# BB#7: # %if.end21 + i32.const $push132=, .L.str.2 + i32.const $push131=, 0 + i32.const $push130=, 0 + i32.store $push1=, should_optimize($pop131), $pop130 + i32.call $push19=, __fprintf_chk@FUNCTION, $3, $2, $pop132, $pop1 + i32.ne $push20=, $pop19, $1 + br_if 0, $pop20 # 0: down to label1 +# BB#8: # %if.end25 + i32.const $push133=, 0 + i32.load $push21=, should_optimize($pop133) + i32.eqz $push188=, $pop21 + br_if 0, $pop188 # 0: down to label1 +# BB#9: # %if.end28 i32.const $push137=, 0 - i32.load $push21=, stdout($pop137) - i32.const $push136=, .L.str.2 + i32.const $push22=, 1 + i32.store $discard=, should_optimize($pop137), $pop22 + i32.const $push136=, .L.str.3 i32.const $push135=, 0 - i32.call $discard=, __fprintf_chk@FUNCTION, $pop21, $1, $pop136, $pop135 + i32.call $discard=, __fprintf_chk@FUNCTION, $3, $2, $pop136, $pop135 i32.const $push134=, 0 - i32.load $push22=, should_optimize($pop134) - i32.const $push220=, 0 - i32.eq $push221=, $pop22, $pop220 - br_if 0, $pop221 # 0: down to label1 -# BB#7: # %if.end21 - i32.const $push143=, 0 - i32.const $push142=, 0 - i32.store $push141=, should_optimize($pop143), $pop142 - tee_local $push140=, $2=, $pop141 - i32.load $push23=, stdout($pop140) - i32.const $push139=, .L.str.2 - i32.call $push24=, __fprintf_chk@FUNCTION, $pop23, $1, $pop139, $2 - i32.ne $push25=, $pop24, $0 + i32.load $push23=, should_optimize($pop134) + i32.eqz $push189=, $pop23 + br_if 0, $pop189 # 0: down to label1 +# BB#10: # %if.end32 + i32.const $push141=, .L.str.3 + i32.const $push24=, 0 + i32.const $push140=, 0 + i32.store $push139=, should_optimize($pop24), $pop140 + tee_local $push138=, $1=, $pop139 + i32.call $push25=, __fprintf_chk@FUNCTION, $3, $2, $pop141, $pop138 br_if 0, $pop25 # 0: down to label1 -# BB#8: # %if.end25 +# BB#11: # %if.end36 + i32.load $push26=, should_optimize($1) + i32.eqz $push190=, $pop26 + br_if 0, $pop190 # 0: down to label1 +# BB#12: # %if.end39 i32.const $push144=, 0 - i32.load $push26=, should_optimize($pop144) - i32.const $push222=, 0 - i32.eq $push223=, $pop26, $pop222 - br_if 0, $pop223 # 0: down to label1 -# BB#9: # %if.end28 - i32.const $push149=, 0 i32.const $push27=, 1 - i32.store $discard=, should_optimize($pop149), $pop27 - i32.const $push148=, 0 - i32.load $push28=, stdout($pop148) - i32.const $push147=, .L.str.3 + i32.store $discard=, should_optimize($pop144), $pop27 + i32.const $push28=, .L.str + i32.store $1=, 208($2), $pop28 + i32.const $push143=, .L.str.4 + i32.const $push80=, 208 + i32.add $push81=, $2, $pop80 + i32.call $discard=, __fprintf_chk@FUNCTION, $3, $2, $pop143, $pop81 + i32.const $push142=, 0 + i32.load $push29=, should_optimize($pop142) + i32.eqz $push191=, $pop29 + br_if 0, $pop191 # 0: down to label1 +# BB#13: # %if.end43 + i32.const $push147=, 0 i32.const $push146=, 0 - i32.call $discard=, __fprintf_chk@FUNCTION, $pop28, $1, $pop147, $pop146 - i32.const $push145=, 0 - i32.load $push29=, should_optimize($pop145) - i32.const $push224=, 0 - i32.eq $push225=, $pop29, $pop224 - br_if 0, $pop225 # 0: down to label1 -# BB#10: # %if.end32 - i32.const $push30=, 0 - i32.const $push153=, 0 - i32.store $push152=, should_optimize($pop30), $pop153 - tee_local $push151=, $0=, $pop152 - i32.load $push31=, stdout($pop151) - i32.const $push150=, .L.str.3 - i32.call $push32=, __fprintf_chk@FUNCTION, $pop31, $1, $pop150, $0 + i32.store $discard=, should_optimize($pop147), $pop146 + i32.store $discard=, 192($2), $1 + i32.const $push145=, .L.str.4 + i32.const $push82=, 192 + i32.add $push83=, $2, $pop82 + i32.call $push30=, __fprintf_chk@FUNCTION, $3, $2, $pop145, $pop83 + i32.const $push31=, 5 + i32.ne $push32=, $pop30, $pop31 br_if 0, $pop32 # 0: down to label1 -# BB#11: # %if.end36 - i32.load $push33=, should_optimize($0) - i32.const $push226=, 0 - i32.eq $push227=, $pop33, $pop226 - br_if 0, $pop227 # 0: down to label1 -# BB#12: # %if.end39 - i32.const $push157=, 0 - i32.const $push34=, 1 - i32.store $discard=, should_optimize($pop157), $pop34 - i32.const $push156=, 0 - i32.load $0=, stdout($pop156) - i32.const $push35=, .L.str - i32.store $2=, 208($1), $pop35 - i32.const $push155=, .L.str.4 - i32.const $push87=, 208 - i32.add $push88=, $1, $pop87 - i32.call $discard=, __fprintf_chk@FUNCTION, $0, $1, $pop155, $pop88 - i32.const $push154=, 0 - i32.load $push36=, should_optimize($pop154) - i32.const $push228=, 0 - i32.eq $push229=, $pop36, $pop228 - br_if 0, $pop229 # 0: down to label1 -# BB#13: # %if.end43 - i32.const $push160=, 0 - i32.const $push159=, 0 - i32.store $push0=, should_optimize($pop160), $pop159 - i32.load $0=, stdout($pop0) - i32.store $discard=, 192($1), $2 - i32.const $push158=, .L.str.4 - i32.const $push89=, 192 - i32.add $push90=, $1, $pop89 - i32.call $push37=, __fprintf_chk@FUNCTION, $0, $1, $pop158, $pop90 - i32.const $push38=, 5 - i32.ne $push39=, $pop37, $pop38 - br_if 0, $pop39 # 0: down to label1 # BB#14: # %if.end47 - i32.const $push161=, 0 - i32.load $push40=, should_optimize($pop161) - i32.const $push230=, 0 - i32.eq $push231=, $pop40, $pop230 - br_if 0, $pop231 # 0: down to label1 + i32.const $push148=, 0 + i32.load $push33=, should_optimize($pop148) + i32.eqz $push192=, $pop33 + br_if 0, $pop192 # 0: down to label1 # BB#15: # %if.end50 - i32.const $push165=, 0 - i32.const $push41=, 1 - i32.store $discard=, should_optimize($pop165), $pop41 - i32.const $push164=, 0 - i32.load $0=, stdout($pop164) - i32.const $push42=, .L.str.1 - i32.store $2=, 176($1), $pop42 - i32.const $push163=, .L.str.4 - i32.const $push91=, 176 - i32.add $push92=, $1, $pop91 - i32.call $discard=, __fprintf_chk@FUNCTION, $0, $1, $pop163, $pop92 - i32.const $push162=, 0 - i32.load $push43=, should_optimize($pop162) - i32.const $push232=, 0 - i32.eq $push233=, $pop43, $pop232 - br_if 0, $pop233 # 0: down to label1 + i32.const $push151=, 0 + i32.const $push34=, 1 + i32.store $discard=, should_optimize($pop151), $pop34 + i32.const $push35=, .L.str.1 + i32.store $1=, 176($2), $pop35 + i32.const $push150=, .L.str.4 + i32.const $push84=, 176 + i32.add $push85=, $2, $pop84 + i32.call $discard=, __fprintf_chk@FUNCTION, $3, $2, $pop150, $pop85 + i32.const $push149=, 0 + i32.load $push36=, should_optimize($pop149) + i32.eqz $push193=, $pop36 + br_if 0, $pop193 # 0: down to label1 # BB#16: # %if.end54 - i32.const $push44=, 0 - i32.const $push169=, 0 - i32.store $push168=, should_optimize($pop44), $pop169 - tee_local $push167=, $3=, $pop168 - i32.load $0=, stdout($pop167) - i32.store $discard=, 160($1), $2 - i32.const $push166=, .L.str.4 - i32.const $push93=, 160 - i32.add $push94=, $1, $pop93 - i32.call $push45=, __fprintf_chk@FUNCTION, $0, $1, $pop166, $pop94 - i32.const $push46=, 6 - i32.ne $push47=, $pop45, $pop46 - br_if 0, $pop47 # 0: down to label1 + i32.const $push37=, 0 + i32.const $push153=, 0 + i32.store $0=, should_optimize($pop37), $pop153 + i32.store $discard=, 160($2), $1 + i32.const $push152=, .L.str.4 + i32.const $push86=, 160 + i32.add $push87=, $2, $pop86 + i32.call $push38=, __fprintf_chk@FUNCTION, $3, $2, $pop152, $pop87 + i32.const $push39=, 6 + i32.ne $push40=, $pop38, $pop39 + br_if 0, $pop40 # 0: down to label1 # BB#17: # %if.end58 - i32.load $push48=, should_optimize($3) - i32.const $push234=, 0 - i32.eq $push235=, $pop48, $pop234 - br_if 0, $pop235 # 0: down to label1 + i32.load $push41=, should_optimize($0) + i32.eqz $push194=, $pop41 + br_if 0, $pop194 # 0: down to label1 # BB#18: # %if.end61 - i32.const $push173=, 0 - i32.const $push49=, 1 - i32.store $0=, should_optimize($pop173), $pop49 - i32.const $push172=, 0 - i32.load $2=, stdout($pop172) - i32.const $push50=, .L.str.2 - i32.store $3=, 144($1), $pop50 - i32.const $push171=, .L.str.4 - i32.const $push95=, 144 - i32.add $push96=, $1, $pop95 - i32.call $discard=, __fprintf_chk@FUNCTION, $2, $1, $pop171, $pop96 - i32.const $push170=, 0 - i32.load $push51=, should_optimize($pop170) - i32.const $push236=, 0 - i32.eq $push237=, $pop51, $pop236 - br_if 0, $pop237 # 0: down to label1 + i32.const $push156=, 0 + i32.const $push42=, 1 + i32.store $1=, should_optimize($pop156), $pop42 + i32.const $push43=, .L.str.2 + i32.store $0=, 144($2), $pop43 + i32.const $push155=, .L.str.4 + i32.const $push88=, 144 + i32.add $push89=, $2, $pop88 + i32.call $discard=, __fprintf_chk@FUNCTION, $3, $2, $pop155, $pop89 + i32.const $push154=, 0 + i32.load $push44=, should_optimize($pop154) + i32.eqz $push195=, $pop44 + br_if 0, $pop195 # 0: down to label1 # BB#19: # %if.end65 - i32.const $push176=, 0 - i32.const $push175=, 0 - i32.store $push1=, should_optimize($pop176), $pop175 - i32.load $2=, stdout($pop1) - i32.store $discard=, 128($1), $3 - i32.const $push174=, .L.str.4 - i32.const $push97=, 128 - i32.add $push98=, $1, $pop97 - i32.call $push52=, __fprintf_chk@FUNCTION, $2, $1, $pop174, $pop98 - i32.ne $push53=, $pop52, $0 - br_if 0, $pop53 # 0: down to label1 + i32.const $push159=, 0 + i32.const $push158=, 0 + i32.store $discard=, should_optimize($pop159), $pop158 + i32.store $discard=, 128($2), $0 + i32.const $push157=, .L.str.4 + i32.const $push90=, 128 + i32.add $push91=, $2, $pop90 + i32.call $push45=, __fprintf_chk@FUNCTION, $3, $2, $pop157, $pop91 + i32.ne $push46=, $pop45, $1 + br_if 0, $pop46 # 0: down to label1 # BB#20: # %if.end69 - i32.const $push177=, 0 - i32.load $push54=, should_optimize($pop177) - i32.const $push238=, 0 - i32.eq $push239=, $pop54, $pop238 - br_if 0, $pop239 # 0: down to label1 + i32.const $push160=, 0 + i32.load $push47=, should_optimize($pop160) + i32.eqz $push196=, $pop47 + br_if 0, $pop196 # 0: down to label1 # BB#21: # %if.end72 - i32.const $push181=, 0 - i32.const $push55=, 1 - i32.store $discard=, should_optimize($pop181), $pop55 - i32.const $push180=, 0 - i32.load $0=, stdout($pop180) - i32.const $push56=, .L.str.3 - i32.store $2=, 112($1), $pop56 - i32.const $push179=, .L.str.4 - i32.const $push99=, 112 - i32.add $push100=, $1, $pop99 - i32.call $discard=, __fprintf_chk@FUNCTION, $0, $1, $pop179, $pop100 - i32.const $push178=, 0 - i32.load $push57=, should_optimize($pop178) - i32.const $push240=, 0 - i32.eq $push241=, $pop57, $pop240 - br_if 0, $pop241 # 0: down to label1 + i32.const $push163=, 0 + i32.const $push48=, 1 + i32.store $discard=, should_optimize($pop163), $pop48 + i32.const $push49=, .L.str.3 + i32.store $1=, 112($2), $pop49 + i32.const $push162=, .L.str.4 + i32.const $push92=, 112 + i32.add $push93=, $2, $pop92 + i32.call $discard=, __fprintf_chk@FUNCTION, $3, $2, $pop162, $pop93 + i32.const $push161=, 0 + i32.load $push50=, should_optimize($pop161) + i32.eqz $push197=, $pop50 + br_if 0, $pop197 # 0: down to label1 # BB#22: # %if.end76 - i32.const $push58=, 0 - i32.const $push185=, 0 - i32.store $push184=, should_optimize($pop58), $pop185 - tee_local $push183=, $0=, $pop184 - i32.load $3=, stdout($pop183) - i32.store $discard=, 96($1), $2 - i32.const $push182=, .L.str.4 - i32.const $push101=, 96 - i32.add $push102=, $1, $pop101 - i32.call $push59=, __fprintf_chk@FUNCTION, $3, $1, $pop182, $pop102 - br_if 0, $pop59 # 0: down to label1 + i32.const $push51=, 0 + i32.const $push165=, 0 + i32.store $0=, should_optimize($pop51), $pop165 + i32.store $discard=, 96($2), $1 + i32.const $push164=, .L.str.4 + i32.const $push94=, 96 + i32.add $push95=, $2, $pop94 + i32.call $push52=, __fprintf_chk@FUNCTION, $3, $2, $pop164, $pop95 + br_if 0, $pop52 # 0: down to label1 # BB#23: # %if.end80 - i32.load $push60=, should_optimize($0) - i32.const $push242=, 0 - i32.eq $push243=, $pop60, $pop242 - br_if 0, $pop243 # 0: down to label1 + i32.load $push53=, should_optimize($0) + i32.eqz $push198=, $pop53 + br_if 0, $pop198 # 0: down to label1 # BB#24: # %if.end83 - i32.const $push189=, 0 - i32.const $push61=, 1 - i32.store $0=, should_optimize($pop189), $pop61 - i32.const $push188=, 0 - i32.load $2=, stdout($pop188) - i32.const $push62=, 120 - i32.store $3=, 80($1), $pop62 - i32.const $push187=, .L.str.5 - i32.const $push103=, 80 - i32.add $push104=, $1, $pop103 - i32.call $discard=, __fprintf_chk@FUNCTION, $2, $1, $pop187, $pop104 - i32.const $push186=, 0 - i32.load $push63=, should_optimize($pop186) - i32.const $push244=, 0 - i32.eq $push245=, $pop63, $pop244 - br_if 0, $pop245 # 0: down to label1 + i32.const $push168=, 0 + i32.const $push54=, 1 + i32.store $1=, should_optimize($pop168), $pop54 + i32.const $push55=, 120 + i32.store $0=, 80($2), $pop55 + i32.const $push167=, .L.str.5 + i32.const $push96=, 80 + i32.add $push97=, $2, $pop96 + i32.call $discard=, __fprintf_chk@FUNCTION, $3, $2, $pop167, $pop97 + i32.const $push166=, 0 + i32.load $push56=, should_optimize($pop166) + i32.eqz $push199=, $pop56 + br_if 0, $pop199 # 0: down to label1 # BB#25: # %if.end87 - i32.const $push192=, 0 - i32.const $push191=, 0 - i32.store $push2=, should_optimize($pop192), $pop191 - i32.load $2=, stdout($pop2) - i32.store $discard=, 64($1), $3 - i32.const $push190=, .L.str.5 - i32.const $push105=, 64 - i32.add $push106=, $1, $pop105 - i32.call $push64=, __fprintf_chk@FUNCTION, $2, $1, $pop190, $pop106 - i32.ne $push65=, $pop64, $0 - br_if 0, $pop65 # 0: down to label1 + i32.const $push171=, 0 + i32.const $push170=, 0 + i32.store $discard=, should_optimize($pop171), $pop170 + i32.store $discard=, 64($2), $0 + i32.const $push169=, .L.str.5 + i32.const $push98=, 64 + i32.add $push99=, $2, $pop98 + i32.call $push57=, __fprintf_chk@FUNCTION, $3, $2, $pop169, $pop99 + i32.ne $push58=, $pop57, $1 + br_if 0, $pop58 # 0: down to label1 # BB#26: # %if.end91 - i32.const $push193=, 0 - i32.load $push66=, should_optimize($pop193) - i32.const $push246=, 0 - i32.eq $push247=, $pop66, $pop246 - br_if 0, $pop247 # 0: down to label1 + i32.const $push172=, 0 + i32.load $push59=, should_optimize($pop172) + i32.eqz $push200=, $pop59 + br_if 0, $pop200 # 0: down to label1 # BB#27: # %if.end94 - i32.const $push198=, 0 - i32.const $push197=, 0 - i32.store $push196=, should_optimize($pop198), $pop197 - tee_local $push195=, $0=, $pop196 - i32.load $2=, stdout($pop195) - i32.const $push67=, .L.str.1 - i32.store $3=, 48($1), $pop67 - i32.const $push194=, .L.str.6 - i32.const $push107=, 48 - i32.add $push108=, $1, $pop107 - i32.call $discard=, __fprintf_chk@FUNCTION, $2, $1, $pop194, $pop108 - i32.load $push68=, should_optimize($0) - i32.const $push248=, 0 - i32.eq $push249=, $pop68, $pop248 - br_if 0, $pop249 # 0: down to label1 + i32.const $push175=, 0 + i32.const $push174=, 0 + i32.store $1=, should_optimize($pop175), $pop174 + i32.const $push60=, .L.str.1 + i32.store $0=, 48($2), $pop60 + i32.const $push173=, .L.str.6 + i32.const $push100=, 48 + i32.add $push101=, $2, $pop100 + i32.call $discard=, __fprintf_chk@FUNCTION, $3, $2, $pop173, $pop101 + i32.load $push61=, should_optimize($1) + i32.eqz $push201=, $pop61 + br_if 0, $pop201 # 0: down to label1 # BB#28: # %if.end98 - i32.const $push69=, 0 - i32.const $push202=, 0 - i32.store $push201=, should_optimize($pop69), $pop202 - tee_local $push200=, $0=, $pop201 - i32.load $2=, stdout($pop200) - i32.store $discard=, 32($1), $3 - i32.const $push199=, .L.str.6 - i32.const $push109=, 32 - i32.add $push110=, $1, $pop109 - i32.call $push70=, __fprintf_chk@FUNCTION, $2, $1, $pop199, $pop110 - i32.const $push71=, 7 - i32.ne $push72=, $pop70, $pop71 - br_if 0, $pop72 # 0: down to label1 + i32.const $push62=, 0 + i32.const $push177=, 0 + i32.store $1=, should_optimize($pop62), $pop177 + i32.store $discard=, 32($2), $0 + i32.const $push176=, .L.str.6 + i32.const $push102=, 32 + i32.add $push103=, $2, $pop102 + i32.call $push63=, __fprintf_chk@FUNCTION, $3, $2, $pop176, $pop103 + i32.const $push64=, 7 + i32.ne $push65=, $pop63, $pop64 + br_if 0, $pop65 # 0: down to label1 # BB#29: # %if.end102 - i32.load $push73=, should_optimize($0) - i32.const $push250=, 0 - i32.eq $push251=, $pop73, $pop250 - br_if 0, $pop251 # 0: down to label1 + i32.load $push66=, should_optimize($1) + i32.eqz $push202=, $pop66 + br_if 0, $pop202 # 0: down to label1 # BB#30: # %if.end105 - i32.const $push74=, 0 - i32.const $push206=, 0 - i32.store $push205=, should_optimize($pop74), $pop206 - tee_local $push204=, $0=, $pop205 - i32.load $2=, stdout($pop204) - i32.store $discard=, 16($1), $0 - i32.const $push203=, .L.str.7 - i32.const $push111=, 16 - i32.add $push112=, $1, $pop111 - i32.call $discard=, __fprintf_chk@FUNCTION, $2, $1, $pop203, $pop112 - i32.load $push75=, should_optimize($0) - i32.const $push252=, 0 - i32.eq $push253=, $pop75, $pop252 - br_if 0, $pop253 # 0: down to label1 + i32.const $push67=, 0 + i32.const $push179=, 0 + i32.store $push2=, should_optimize($pop67), $pop179 + i32.store $1=, 16($2), $pop2 + i32.const $push178=, .L.str.7 + i32.const $push104=, 16 + i32.add $push105=, $2, $pop104 + i32.call $discard=, __fprintf_chk@FUNCTION, $3, $2, $pop178, $pop105 + i32.load $push68=, should_optimize($1) + i32.eqz $push203=, $pop68 + br_if 0, $pop203 # 0: down to label1 # BB#31: # %if.end109 - i32.store $push209=, should_optimize($0), $0 - tee_local $push208=, $0=, $pop209 - i32.load $2=, stdout($pop208) - i32.store $discard=, 0($1), $0 - i32.const $push207=, .L.str.7 - i32.call $push76=, __fprintf_chk@FUNCTION, $2, $1, $pop207, $1 - i32.const $push77=, 2 - i32.ne $push78=, $pop76, $pop77 - br_if 0, $pop78 # 0: down to label1 + i32.store $push3=, should_optimize($1), $1 + i32.store $discard=, 0($2), $pop3 + i32.const $push180=, .L.str.7 + i32.call $push69=, __fprintf_chk@FUNCTION, $3, $2, $pop180, $2 + i32.const $push70=, 2 + i32.ne $push71=, $pop69, $pop70 + br_if 0, $pop71 # 0: down to label1 # BB#32: # %if.end113 - i32.const $push210=, 0 - i32.load $push79=, should_optimize($pop210) - i32.const $push254=, 0 - i32.eq $push255=, $pop79, $pop254 - br_if 0, $pop255 # 0: down to label1 + i32.const $push181=, 0 + i32.load $push72=, should_optimize($pop181) + i32.eqz $push204=, $pop72 + br_if 0, $pop204 # 0: down to label1 # BB#33: # %if.end116 - i32.const $push86=, __stack_pointer - i32.const $push84=, 224 - i32.add $push85=, $1, $pop84 - i32.store $discard=, 0($pop86), $pop85 - i32.const $push211=, 0 - return $pop211 + i32.const $push79=, __stack_pointer + i32.const $push77=, 224 + i32.add $push78=, $2, $pop77 + i32.store $discard=, 0($pop79), $pop78 + i32.const $push182=, 0 + return $pop182 .LBB1_34: # %if.then115 end_block # label1: call abort@FUNCTION diff --git a/test/torture-s/frame-address.c.s b/test/torture-s/frame-address.c.s index 5a0de4fc2..03945f537 100644 --- a/test/torture-s/frame-address.c.s +++ b/test/torture-s/frame-address.c.s @@ -49,16 +49,16 @@ check_fa_mid: # @check_fa_mid .result i32 .local i32 # BB#0: # %entry - i32.const $push2=, __stack_pointer - i32.load $push4=, 0($pop2) - copy_local $push6=, $pop4 - tee_local $push5=, $1=, $pop6 - i32.call $0=, check_fa_work@FUNCTION, $0, $pop5 + i32.const $push4=, __stack_pointer i32.const $push3=, __stack_pointer - i32.store $discard=, 0($pop3), $1 - i32.const $push0=, 0 - i32.ne $push1=, $0, $pop0 - return $pop1 + i32.load $push5=, 0($pop3) + copy_local $push7=, $pop5 + tee_local $push6=, $1=, $pop7 + i32.store $discard=, 0($pop4), $pop6 + i32.call $push0=, check_fa_work@FUNCTION, $0, $1 + i32.const $push1=, 0 + i32.ne $push2=, $pop0, $pop1 + return $pop2 .endfunc .Lfunc_end1: .size check_fa_mid, .Lfunc_end1-check_fa_mid @@ -70,25 +70,25 @@ check_fa_mid: # @check_fa_mid check_fa: # @check_fa .param i32 .result i32 - .local i32, i32 + .local i32 # BB#0: # %entry - i32.const $push5=, __stack_pointer - i32.const $push2=, __stack_pointer - i32.load $push3=, 0($pop2) - i32.const $push4=, 16 - i32.sub $push11=, $pop3, $pop4 - i32.store $push13=, 0($pop5), $pop11 - tee_local $push12=, $2=, $pop13 - i32.const $push9=, 15 - i32.add $push10=, $pop12, $pop9 - i32.call $1=, check_fa_mid@FUNCTION, $pop10 - i32.const $push8=, __stack_pointer - i32.const $push6=, 16 - i32.add $push7=, $2, $pop6 - i32.store $discard=, 0($pop8), $pop7 - i32.const $push0=, 0 - i32.ne $push1=, $1, $pop0 - return $pop1 + i32.const $push9=, __stack_pointer + i32.const $push6=, __stack_pointer + i32.const $push3=, __stack_pointer + i32.load $push4=, 0($pop3) + i32.const $push5=, 16 + i32.sub $push12=, $pop4, $pop5 + i32.store $push14=, 0($pop6), $pop12 + tee_local $push13=, $1=, $pop14 + i32.const $push7=, 16 + i32.add $push8=, $pop13, $pop7 + i32.store $discard=, 0($pop9), $pop8 + i32.const $push10=, 15 + i32.add $push11=, $1, $pop10 + i32.call $push0=, check_fa_mid@FUNCTION, $pop11 + i32.const $push1=, 0 + i32.ne $push2=, $pop0, $pop1 + return $pop2 .endfunc .Lfunc_end2: .size check_fa, .Lfunc_end2-check_fa @@ -116,9 +116,8 @@ main: # @main # BB#0: # %entry block i32.call $push0=, check_fa@FUNCTION, $0 - i32.const $push2=, 0 - i32.eq $push3=, $pop0, $pop2 - br_if 0, $pop3 # 0: down to label1 + i32.eqz $push2=, $pop0 + br_if 0, $pop2 # 0: down to label1 # BB#1: # %if.end i32.const $push1=, 0 return $pop1 diff --git a/test/torture-s/gofast.c.s b/test/torture-s/gofast.c.s index 699b5d110..a2f55a073 100644 --- a/test/torture-s/gofast.c.s +++ b/test/torture-s/gofast.c.s @@ -427,29 +427,29 @@ fixunsdfsi: # @fixunsdfsi fail: # @fail .param i32 .result i32 - .local i32, i32 + .local i32 # BB#0: # %entry - i32.const $push8=, __stack_pointer - i32.const $push5=, __stack_pointer - i32.load $push6=, 0($pop5) - i32.const $push7=, 16 - i32.sub $push12=, $pop6, $pop7 - i32.store $1=, 0($pop8), $pop12 + i32.const $push9=, __stack_pointer + i32.const $push6=, __stack_pointer + i32.load $push7=, 0($pop6) + i32.const $push8=, 16 + i32.sub $push13=, $pop7, $pop8 + i32.store $1=, 0($pop9), $pop13 i32.const $push0=, 0 - i32.load $2=, stderr($pop0) - i32.const $push14=, 0 - i32.const $push13=, 0 - i32.load $push1=, fail_count($pop13) + i32.const $push15=, 0 + i32.load $push1=, fail_count($pop15) i32.const $push2=, 1 i32.add $push3=, $pop1, $pop2 - i32.store $discard=, fail_count($pop14), $pop3 + i32.store $discard=, fail_count($pop0), $pop3 i32.store $discard=, 0($1), $0 - i32.const $push4=, .L.str - i32.call $discard=, fprintf@FUNCTION, $2, $pop4, $1 - i32.const $push11=, __stack_pointer - i32.const $push9=, 16 - i32.add $push10=, $1, $pop9 - i32.store $discard=, 0($pop11), $pop10 + i32.const $push14=, 0 + i32.load $push4=, stderr($pop14) + i32.const $push5=, .L.str + i32.call $discard=, fprintf@FUNCTION, $pop4, $pop5, $1 + i32.const $push12=, __stack_pointer + i32.const $push10=, 16 + i32.add $push11=, $1, $pop10 + i32.store $discard=, 0($pop12), $pop11 return $1 .endfunc .Lfunc_end30: diff --git a/test/torture-s/int-compare.c.s b/test/torture-s/int-compare.c.s index 9cf8cfd21..1a3b5f689 100644 --- a/test/torture-s/int-compare.c.s +++ b/test/torture-s/int-compare.c.s @@ -64,9 +64,8 @@ true: # @true .param i32 # BB#0: # %entry block - i32.const $push0=, 0 - i32.eq $push1=, $0, $pop0 - br_if 0, $pop1 # 0: down to label0 + i32.eqz $push0=, $0 + br_if 0, $pop0 # 0: down to label0 # BB#1: # %if.end return .LBB4_2: # %if.then diff --git a/test/torture-s/loop-15.c.s b/test/torture-s/loop-15.c.s index b603aabb9..6db97e358 100644 --- a/test/torture-s/loop-15.c.s +++ b/test/torture-s/loop-15.c.s @@ -175,9 +175,8 @@ main: # @main # in Loop: Header=BB1_2 Depth=2 end_loop # label18: i32.add $5=, $5, $0 - i32.const $push46=, 0 - i32.eq $push47=, $8, $pop46 - br_if 0, $pop47 # 0: up to label8 + i32.eqz $push46=, $8 + br_if 0, $pop46 # 0: up to label8 .LBB1_15: # %for.inc41 # in Loop: Header=BB1_1 Depth=1 end_loop # label9: diff --git a/test/torture-s/loop-2.c.s b/test/torture-s/loop-2.c.s index d793cc257..df0b3bb90 100644 --- a/test/torture-s/loop-2.c.s +++ b/test/torture-s/loop-2.c.s @@ -10,9 +10,8 @@ f: # @f .local i32, i32 # BB#0: # %entry block - i32.const $push5=, 0 - i32.eq $push6=, $0, $pop5 - br_if 0, $pop6 # 0: down to label0 + i32.eqz $push5=, $0 + br_if 0, $pop5 # 0: down to label0 # BB#1: # %for.body.preheader i32.const $2=, 0 i32.const $1=, a diff --git a/test/torture-s/loop-2b.c.s b/test/torture-s/loop-2b.c.s index 3c16fae12..bedaa101c 100644 --- a/test/torture-s/loop-2b.c.s +++ b/test/torture-s/loop-2b.c.s @@ -23,23 +23,24 @@ f: # @f .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 loop # label1: - copy_local $0=, $1 - i32.const $push8=, -2 - i32.store $discard=, 0($2), $pop8 + i32.const $push10=, -2 + i32.store $discard=, 0($2), $pop10 + copy_local $push9=, $1 + tee_local $push8=, $0=, $pop9 i32.const $push7=, 2147483645 - i32.eq $push6=, $0, $pop7 + i32.eq $push6=, $pop8, $pop7 br_if 1, $pop6 # 1: down to label2 # BB#3: # %for.body # in Loop: Header=BB0_2 Depth=1 - i32.const $push10=, 4 - i32.add $2=, $2, $pop10 - i32.const $push9=, -1 - i32.add $1=, $0, $pop9 + i32.const $push12=, 4 + i32.add $2=, $2, $pop12 + i32.const $push11=, -1 + i32.add $1=, $0, $pop11 br_if 0, $0 # 0: up to label1 .LBB0_4: # %for.end end_loop # label2: end_block # label0: - return $0 + return $2 .endfunc .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/loop-2c.c.s b/test/torture-s/loop-2c.c.s index afd2f71a8..7d95f6260 100644 --- a/test/torture-s/loop-2c.c.s +++ b/test/torture-s/loop-2c.c.s @@ -10,9 +10,8 @@ f: # @f .local i32 # BB#0: # %entry block - i32.const $push11=, 0 - i32.eq $push12=, $0, $pop11 - br_if 0, $pop12 # 0: down to label0 + i32.eqz $push11=, $0 + br_if 0, $pop11 # 0: down to label0 # BB#1: # %for.body.preheader i32.const $push4=, 2 i32.shl $push5=, $0, $pop4 @@ -52,9 +51,8 @@ g: # @g .local i32, i32 # BB#0: # %entry block - i32.const $push10=, 0 - i32.eq $push11=, $0, $pop10 - br_if 0, $pop11 # 0: down to label3 + i32.eqz $push10=, $0 + br_if 0, $pop10 # 0: down to label3 # BB#1: # %for.body.preheader.i i32.const $push1=, 3 i32.mul $push2=, $0, $pop1 diff --git a/test/torture-s/loop-2d.c.s b/test/torture-s/loop-2d.c.s index 74ffe63df..a2638d845 100644 --- a/test/torture-s/loop-2d.c.s +++ b/test/torture-s/loop-2d.c.s @@ -10,9 +10,8 @@ f: # @f .local i32, i32 # BB#0: # %entry block - i32.const $push10=, 0 - i32.eq $push11=, $0, $pop10 - br_if 0, $pop11 # 0: down to label0 + i32.eqz $push10=, $0 + br_if 0, $pop10 # 0: down to label0 # BB#1: # %for.body.preheader i32.const $push1=, 3 i32.mul $push2=, $0, $pop1 diff --git a/test/torture-s/loop-2f.c.s b/test/torture-s/loop-2f.c.s index 193f1f6af..983b15748 100644 --- a/test/torture-s/loop-2f.c.s +++ b/test/torture-s/loop-2f.c.s @@ -34,26 +34,26 @@ main: # @main .local i32 # BB#0: # %entry block - i32.const $push5=, 2147450880 - i32.const $push4=, 65536 - i32.const $push3=, 3 - i32.const $push2=, 50 + i32.const $push6=, 2147450880 + i32.const $push5=, 65536 + i32.const $push4=, 3 + i32.const $push3=, 50 i32.const $push0=, .L.str i32.const $push16=, 0 i32.const $push15=, 0 i32.call $push1=, open@FUNCTION, $pop0, $pop16, $pop15 - i32.const $push14=, 0 - i32.call $push13=, mmap@FUNCTION, $pop5, $pop4, $pop3, $pop2, $pop1, $pop14 - tee_local $push12=, $0=, $pop13 - i32.const $push6=, -1 - i32.eq $push7=, $pop12, $pop6 - br_if 0, $pop7 # 0: down to label1 + i64.const $push2=, 0 + i32.call $push14=, mmap@FUNCTION, $pop6, $pop5, $pop4, $pop3, $pop1, $pop2 + tee_local $push13=, $0=, $pop14 + i32.const $push7=, -1 + i32.eq $push8=, $pop13, $pop7 + br_if 0, $pop8 # 0: down to label1 # BB#1: # %if.end - i32.const $push8=, 32766 - i32.add $push9=, $0, $pop8 - i32.const $push11=, 254 - i32.const $push10=, 39 - i32.call $discard=, memset@FUNCTION, $pop9, $pop11, $pop10 + i32.const $push9=, 32766 + i32.add $push10=, $0, $pop9 + i32.const $push12=, 254 + i32.const $push11=, 39 + i32.call $discard=, memset@FUNCTION, $pop10, $pop12, $pop11 i32.const $push17=, 0 i32.store8 $discard=, 32805($0), $pop17 .LBB1_2: # %if.end15 diff --git a/test/torture-s/loop-2g.c.s b/test/torture-s/loop-2g.c.s index 11ab27fee..4442415e7 100644 --- a/test/torture-s/loop-2g.c.s +++ b/test/torture-s/loop-2g.c.s @@ -34,26 +34,26 @@ main: # @main .local i32 # BB#0: # %entry block - i32.const $push5=, 2147450880 - i32.const $push4=, 65536 - i32.const $push3=, 3 - i32.const $push2=, 50 + i32.const $push6=, 2147450880 + i32.const $push5=, 65536 + i32.const $push4=, 3 + i32.const $push3=, 50 i32.const $push0=, .L.str i32.const $push16=, 0 i32.const $push15=, 0 i32.call $push1=, open@FUNCTION, $pop0, $pop16, $pop15 - i32.const $push14=, 0 - i32.call $push13=, mmap@FUNCTION, $pop5, $pop4, $pop3, $pop2, $pop1, $pop14 - tee_local $push12=, $0=, $pop13 - i32.const $push6=, -1 - i32.eq $push7=, $pop12, $pop6 - br_if 0, $pop7 # 0: down to label1 + i64.const $push2=, 0 + i32.call $push14=, mmap@FUNCTION, $pop6, $pop5, $pop4, $pop3, $pop1, $pop2 + tee_local $push13=, $0=, $pop14 + i32.const $push7=, -1 + i32.eq $push8=, $pop13, $pop7 + br_if 0, $pop8 # 0: down to label1 # BB#1: # %if.end - i32.const $push8=, 32766 - i32.add $push9=, $0, $pop8 - i32.const $push11=, 254 - i32.const $push10=, 39 - i32.call $discard=, memset@FUNCTION, $pop9, $pop11, $pop10 + i32.const $push9=, 32766 + i32.add $push10=, $0, $pop9 + i32.const $push12=, 254 + i32.const $push11=, 39 + i32.call $discard=, memset@FUNCTION, $pop10, $pop12, $pop11 i32.const $push17=, 0 i32.store8 $discard=, 32805($0), $pop17 .LBB1_2: # %if.end15 diff --git a/test/torture-s/loop-8.c.s b/test/torture-s/loop-8.c.s index 0dbe2f190..608ad2c92 100644 --- a/test/torture-s/loop-8.c.s +++ b/test/torture-s/loop-8.c.s @@ -54,18 +54,16 @@ main: # @main f64.le $push1=, $pop22, $pop21 f64.ne $push2=, $1, $1 i32.or $push3=, $pop1, $pop2 - i32.const $push30=, 0 - i32.eq $push31=, $pop3, $pop30 - br_if 0, $pop31 # 0: down to label2 + i32.eqz $push30=, $pop3 + br_if 0, $pop30 # 0: down to label2 # BB#2: # %for.cond.1 i32.const $push4=, 0 f64.load $push26=, a+16($pop4) tee_local $push25=, $1=, $pop26 f64.const $push5=, 0x0p0 f64.gt $push6=, $pop25, $pop5 - i32.const $push32=, 0 - i32.eq $push33=, $pop6, $pop32 - br_if 1, $pop33 # 1: down to label1 + i32.eqz $push31=, $pop6 + br_if 1, $pop31 # 1: down to label1 .LBB1_3: # %e end_block # label2: f64.store $discard=, 8($0), $1 diff --git a/test/torture-s/lshrdi-1.c.s b/test/torture-s/lshrdi-1.c.s index ebcb7049f..e994931e3 100644 --- a/test/torture-s/lshrdi-1.c.s +++ b/test/torture-s/lshrdi-1.c.s @@ -37,9 +37,8 @@ main: # @main block loop # label4: i32.const $push10=, 1 - i32.const $push14=, 0 - i32.eq $push15=, $pop10, $pop14 - br_if 2, $pop15 # 2: down to label3 + i32.eqz $push14=, $pop10 + br_if 2, $pop14 # 2: down to label3 # BB#5: # %for.cond2 # in Loop: Header=BB0_4 Depth=1 i32.const $push13=, 1 diff --git a/test/torture-s/memcpy-1.c.s b/test/torture-s/memcpy-1.c.s index 2b00ff2db..5561ba525 100644 --- a/test/torture-s/memcpy-1.c.s +++ b/test/torture-s/memcpy-1.c.s @@ -77,14 +77,14 @@ main: # @main i32.const $push10=, 2720 i32.call $0=, memset@FUNCTION, $1, $pop61, $pop10 i32.const $2=, 1 -.LBB1_6: # %for.cond17 +.LBB1_6: # %for.cond18 # =>This Inner Loop Header: Depth=1 block loop # label8: i32.const $push62=, 2719 i32.gt_u $push11=, $2, $pop62 br_if 2, $pop11 # 2: down to label7 -# BB#7: # %for.cond17.for.body20_crit_edge +# BB#7: # %for.cond18.for.body21_crit_edge # in Loop: Header=BB1_6 Depth=1 i32.add $1=, $0, $2 i32.const $push64=, 1 @@ -93,18 +93,18 @@ main: # @main i32.const $push63=, 1 i32.eq $push36=, $pop35, $pop63 br_if 0, $pop36 # 0: up to label8 -# BB#8: # %if.then25 +# BB#8: # %if.then26 end_loop # label9: call abort@FUNCTION unreachable -.LBB1_9: # %for.end29 +.LBB1_9: # %for.end30 end_block # label7: i32.const $push45=, 348160 i32.add $push46=, $0, $pop45 i32.const $push12=, 348160 i32.call $1=, memcpy@FUNCTION, $0, $pop46, $pop12 i32.const $2=, 0 -.LBB1_10: # %for.body35 +.LBB1_10: # %for.body37 # =>This Inner Loop Header: Depth=1 loop # label10: i32.add $push13=, $1, $2 @@ -113,47 +113,46 @@ main: # @main i32.and $push15=, $2, $pop65 i32.ne $push16=, $pop14, $pop15 br_if 3, $pop16 # 3: down to label3 -# BB#11: # %for.cond32 +# BB#11: # %for.cond34 # in Loop: Header=BB1_10 Depth=1 i32.const $push67=, 1 i32.add $2=, $2, $pop67 i32.const $push66=, 348159 i32.le_u $push17=, $2, $pop66 br_if 0, $pop17 # 0: up to label10 -# BB#12: # %for.end46 +# BB#12: # %for.end48 end_loop # label11: i32.const $push19=, 0 i32.const $push18=, 348160 i32.call $0=, memset@FUNCTION, $1, $pop19, $pop18 i32.const $2=, 1 -.LBB1_13: # %for.cond48 +.LBB1_13: # %for.cond51 # =>This Inner Loop Header: Depth=1 block loop # label13: i32.const $push68=, 348159 i32.gt_u $push20=, $2, $pop68 br_if 2, $pop20 # 2: down to label12 -# BB#14: # %for.cond48.for.body51_crit_edge +# BB#14: # %for.cond51.for.body54_crit_edge # in Loop: Header=BB1_13 Depth=1 i32.add $1=, $0, $2 i32.const $push69=, 1 i32.add $2=, $2, $pop69 i32.load8_u $push34=, 0($1) - i32.const $push76=, 0 - i32.eq $push77=, $pop34, $pop76 - br_if 0, $pop77 # 0: up to label13 -# BB#15: # %if.then56 + i32.eqz $push76=, $pop34 + br_if 0, $pop76 # 0: up to label13 +# BB#15: # %if.then59 end_loop # label14: call abort@FUNCTION unreachable -.LBB1_16: # %for.end60 +.LBB1_16: # %for.end63 end_block # label12: i32.const $push47=, 348160 i32.add $push48=, $0, $pop47 i32.const $push21=, 2720 i32.call $1=, memcpy@FUNCTION, $0, $pop48, $pop21 i32.const $2=, 0 -.LBB1_17: # %for.body66 +.LBB1_17: # %for.body70 # =>This Inner Loop Header: Depth=1 loop # label15: i32.add $push22=, $1, $2 @@ -162,21 +161,21 @@ main: # @main i32.and $push24=, $2, $pop70 i32.ne $push25=, $pop23, $pop24 br_if 4, $pop25 # 4: down to label2 -# BB#18: # %for.cond63 +# BB#18: # %for.cond67 # in Loop: Header=BB1_17 Depth=1 i32.const $push72=, 1 i32.add $2=, $2, $pop72 i32.const $push71=, 2719 i32.le_u $push26=, $2, $pop71 br_if 0, $pop26 # 0: up to label15 -# BB#19: # %for.end77 +# BB#19: # %for.end81 end_loop # label16: i32.const $push49=, 348160 i32.add $push50=, $1, $pop49 i32.const $push27=, 348160 i32.call $discard=, memcpy@FUNCTION, $1, $pop50, $pop27 i32.const $2=, 0 -.LBB1_20: # %for.body85 +.LBB1_20: # %for.body90 # =>This Inner Loop Header: Depth=1 block loop # label18: @@ -186,19 +185,19 @@ main: # @main i32.and $push30=, $2, $pop73 i32.ne $push31=, $pop29, $pop30 br_if 2, $pop31 # 2: down to label17 -# BB#21: # %for.cond82 +# BB#21: # %for.cond87 # in Loop: Header=BB1_20 Depth=1 i32.const $push75=, 1 i32.add $2=, $2, $pop75 i32.const $push74=, 348159 i32.le_u $push32=, $2, $pop74 br_if 0, $pop32 # 0: up to label18 -# BB#22: # %for.end96 +# BB#22: # %for.end101 end_loop # label19: i32.const $push33=, 0 call exit@FUNCTION, $pop33 unreachable -.LBB1_23: # %if.then92 +.LBB1_23: # %if.then97 end_block # label17: call abort@FUNCTION unreachable @@ -206,11 +205,11 @@ main: # @main end_block # label4: call abort@FUNCTION unreachable -.LBB1_25: # %if.then42 +.LBB1_25: # %if.then44 end_block # label3: call abort@FUNCTION unreachable -.LBB1_26: # %if.then73 +.LBB1_26: # %if.then77 end_block # label2: call abort@FUNCTION unreachable diff --git a/test/torture-s/memcpy-bi.c.s b/test/torture-s/memcpy-bi.c.s index bd4ea34ce..256144269 100644 --- a/test/torture-s/memcpy-bi.c.s +++ b/test/torture-s/memcpy-bi.c.s @@ -50,10 +50,9 @@ main: # @main i32.store16 $discard=, dst($pop253), $pop27 block i32.const $push28=, 1 - i32.const $push676=, 0 - i32.eq $push677=, $pop28, $pop676 - br_if 0, $pop677 # 0: down to label3 -# BB#3: # %check.exit13 + i32.eqz $push676=, $pop28 + br_if 0, $pop676 # 0: down to label3 +# BB#3: # %check.exit172 i32.const $push259=, 0 i32.const $push258=, 0 i32.load8_u $push29=, src+2($pop258) @@ -67,7 +66,7 @@ main: # @main i32.const $push31=, 3 i32.call $push32=, memcmp@FUNCTION, $pop255, $pop254, $pop31 br_if 0, $pop32 # 0: down to label3 -# BB#4: # %check.exit17 +# BB#4: # %check.exit176 i32.const $push265=, 0 i32.load $4=, src($pop265) i32.const $push264=, 0 @@ -81,7 +80,7 @@ main: # @main i32.const $push34=, 5 i32.call $push35=, memcmp@FUNCTION, $pop261, $pop260, $pop34 br_if 0, $pop35 # 0: down to label3 -# BB#5: # %check.exit25 +# BB#5: # %check.exit184 i32.const $push271=, 0 i32.const $push270=, 0 i32.load16_u $push36=, src+4($pop270) @@ -95,7 +94,7 @@ main: # @main i32.const $push38=, 6 i32.call $push39=, memcmp@FUNCTION, $pop267, $pop266, $pop38 br_if 0, $pop39 # 0: down to label3 -# BB#6: # %check.exit29 +# BB#6: # %check.exit188 i32.const $push279=, 0 i32.load16_u $4=, src+4($pop279) i32.const $push278=, 0 @@ -113,7 +112,7 @@ main: # @main i32.const $push41=, 7 i32.call $push42=, memcmp@FUNCTION, $pop273, $pop272, $pop41 br_if 0, $pop42 # 0: down to label3 -# BB#7: # %check.exit33 +# BB#7: # %check.exit192 i32.const $push285=, 0 i32.const $push284=, 0 i32.load8_u $push43=, src+8($pop284) @@ -127,7 +126,7 @@ main: # @main i32.const $push45=, 9 i32.call $push46=, memcmp@FUNCTION, $pop281, $pop280, $pop45 br_if 0, $pop46 # 0: down to label3 -# BB#8: # %check.exit41 +# BB#8: # %check.exit200 i32.const $push291=, 0 i64.load $1=, src($pop291) i32.const $push290=, 0 @@ -141,7 +140,7 @@ main: # @main i32.const $push48=, 10 i32.call $push49=, memcmp@FUNCTION, $pop287, $pop286, $pop48 br_if 0, $pop49 # 0: down to label3 -# BB#9: # %check.exit45 +# BB#9: # %check.exit204 i32.const $push299=, 0 i32.load16_u $4=, src+8($pop299) i32.const $push298=, 0 @@ -159,7 +158,7 @@ main: # @main i32.const $push52=, 11 i32.call $push53=, memcmp@FUNCTION, $pop293, $pop292, $pop52 br_if 0, $pop53 # 0: down to label3 -# BB#10: # %check.exit49 +# BB#10: # %check.exit208 i32.const $push305=, 0 i64.load $1=, src($pop305) i32.const $push304=, 0 @@ -173,7 +172,7 @@ main: # @main i32.const $push55=, 12 i32.call $push56=, memcmp@FUNCTION, $pop301, $pop300, $pop55 br_if 0, $pop56 # 0: down to label3 -# BB#11: # %check.exit53 +# BB#11: # %check.exit212 i32.const $push313=, 0 i32.load $4=, src+8($pop313) i32.const $push312=, 0 @@ -191,7 +190,7 @@ main: # @main i32.const $push59=, 13 i32.call $push60=, memcmp@FUNCTION, $pop307, $pop306, $pop59 br_if 0, $pop60 # 0: down to label3 -# BB#12: # %check.exit57 +# BB#12: # %check.exit216 i32.const $push321=, 0 i32.load $4=, src+8($pop321) i32.const $push320=, 0 @@ -209,7 +208,7 @@ main: # @main i32.const $push62=, 14 i32.call $push63=, memcmp@FUNCTION, $pop315, $pop314, $pop62 br_if 0, $pop63 # 0: down to label3 -# BB#13: # %check.exit61 +# BB#13: # %check.exit220 i32.const $push331=, 0 i32.load16_u $4=, src+12($pop331) i32.const $push330=, 0 @@ -231,7 +230,7 @@ main: # @main i32.const $push66=, 15 i32.call $push67=, memcmp@FUNCTION, $pop323, $pop322, $pop66 br_if 0, $pop67 # 0: down to label3 -# BB#14: # %check.exit65 +# BB#14: # %check.exit224 i32.const $push337=, 0 i64.load $1=, src($pop337) i32.const $push336=, 0 @@ -245,7 +244,7 @@ main: # @main i32.const $push69=, 16 i32.call $push70=, memcmp@FUNCTION, $pop333, $pop332, $pop69 br_if 0, $pop70 # 0: down to label3 -# BB#15: # %check.exit69 +# BB#15: # %check.exit228 i32.const $push345=, 0 i64.load $1=, src+8($pop345) i32.const $push344=, 0 @@ -263,7 +262,7 @@ main: # @main i32.const $push73=, 17 i32.call $push74=, memcmp@FUNCTION, $pop339, $pop338, $pop73 br_if 0, $pop74 # 0: down to label3 -# BB#16: # %check.exit73 +# BB#16: # %check.exit232 i32.const $push353=, 0 i64.load $1=, src+8($pop353) i32.const $push352=, 0 @@ -281,7 +280,7 @@ main: # @main i32.const $push76=, 18 i32.call $push77=, memcmp@FUNCTION, $pop347, $pop346, $pop76 br_if 0, $pop77 # 0: down to label3 -# BB#17: # %check.exit77 +# BB#17: # %check.exit236 i32.const $push363=, 0 i32.load16_u $4=, src+16($pop363) i32.const $push362=, 0 @@ -303,7 +302,7 @@ main: # @main i32.const $push80=, 19 i32.call $push81=, memcmp@FUNCTION, $pop355, $pop354, $pop80 br_if 0, $pop81 # 0: down to label3 -# BB#18: # %check.exit81 +# BB#18: # %check.exit240 i32.const $push371=, 0 i64.load $1=, src+8($pop371) i32.const $push370=, 0 @@ -321,7 +320,7 @@ main: # @main i32.const $push83=, 20 i32.call $push84=, memcmp@FUNCTION, $pop365, $pop364, $pop83 br_if 0, $pop84 # 0: down to label3 -# BB#19: # %check.exit85 +# BB#19: # %check.exit244 i32.const $push381=, 0 i32.load $4=, src+16($pop381) i32.const $push380=, 0 @@ -343,7 +342,7 @@ main: # @main i32.const $push87=, 21 i32.call $push88=, memcmp@FUNCTION, $pop373, $pop372, $pop87 br_if 0, $pop88 # 0: down to label3 -# BB#20: # %check.exit89 +# BB#20: # %check.exit248 i32.const $push391=, 0 i32.load $4=, src+16($pop391) i32.const $push390=, 0 @@ -365,7 +364,7 @@ main: # @main i32.const $push90=, 22 i32.call $push91=, memcmp@FUNCTION, $pop383, $pop382, $pop90 br_if 0, $pop91 # 0: down to label3 -# BB#21: # %check.exit93 +# BB#21: # %check.exit252 i32.const $push403=, 0 i32.load16_u $4=, src+20($pop403) i32.const $push402=, 0 @@ -391,7 +390,7 @@ main: # @main i32.const $push94=, 23 i32.call $push95=, memcmp@FUNCTION, $pop393, $pop392, $pop94 br_if 0, $pop95 # 0: down to label3 -# BB#22: # %check.exit97 +# BB#22: # %check.exit256 i32.const $push411=, 0 i64.load $1=, src+8($pop411) i32.const $push410=, 0 @@ -409,7 +408,7 @@ main: # @main i32.const $push97=, 24 i32.call $push98=, memcmp@FUNCTION, $pop405, $pop404, $pop97 br_if 0, $pop98 # 0: down to label3 -# BB#23: # %check.exit101 +# BB#23: # %check.exit260 i32.const $push421=, 0 i64.load $1=, src+16($pop421) i32.const $push420=, 0 @@ -431,7 +430,7 @@ main: # @main i32.const $push101=, 25 i32.call $push102=, memcmp@FUNCTION, $pop413, $pop412, $pop101 br_if 0, $pop102 # 0: down to label3 -# BB#24: # %check.exit105 +# BB#24: # %check.exit264 i32.const $push431=, 0 i64.load $1=, src+16($pop431) i32.const $push430=, 0 @@ -453,7 +452,7 @@ main: # @main i32.const $push104=, 26 i32.call $push105=, memcmp@FUNCTION, $pop423, $pop422, $pop104 br_if 0, $pop105 # 0: down to label3 -# BB#25: # %check.exit109 +# BB#25: # %check.exit268 i32.const $push443=, 0 i32.load16_u $4=, src+24($pop443) i32.const $push442=, 0 @@ -479,7 +478,7 @@ main: # @main i32.const $push108=, 27 i32.call $push109=, memcmp@FUNCTION, $pop433, $pop432, $pop108 br_if 0, $pop109 # 0: down to label3 -# BB#26: # %check.exit113 +# BB#26: # %check.exit272 i32.const $push453=, 0 i64.load $1=, src+16($pop453) i32.const $push452=, 0 @@ -501,7 +500,7 @@ main: # @main i32.const $push111=, 28 i32.call $push112=, memcmp@FUNCTION, $pop445, $pop444, $pop111 br_if 0, $pop112 # 0: down to label3 -# BB#27: # %check.exit117 +# BB#27: # %check.exit276 i32.const $push465=, 0 i32.load $4=, src+24($pop465) i32.const $push464=, 0 @@ -527,7 +526,7 @@ main: # @main i32.const $push115=, 29 i32.call $push116=, memcmp@FUNCTION, $pop455, $pop454, $pop115 br_if 0, $pop116 # 0: down to label3 -# BB#28: # %check.exit121 +# BB#28: # %check.exit280 i32.const $push117=, 0 i32.load $4=, src+24($pop117) i32.const $push476=, 0 @@ -553,7 +552,7 @@ main: # @main i32.const $push119=, 30 i32.call $push120=, memcmp@FUNCTION, $pop467, $pop466, $pop119 br_if 0, $pop120 # 0: down to label3 -# BB#29: # %check.exit125 +# BB#29: # %check.exit284 i32.const $push121=, dst i32.const $push481=, src i32.const $push122=, 31 @@ -563,7 +562,7 @@ main: # @main i32.const $push477=, 31 i32.call $push123=, memcmp@FUNCTION, $pop479, $pop478, $pop477 br_if 0, $pop123 # 0: down to label3 -# BB#30: # %check.exit129 +# BB#30: # %check.exit288 i32.const $push124=, 0 i64.load $1=, src+16($pop124) i32.const $push489=, 0 @@ -584,7 +583,7 @@ main: # @main i32.const $push126=, 32 i32.call $push127=, memcmp@FUNCTION, $4, $pop482, $pop126 br_if 0, $pop127 # 0: down to label3 -# BB#31: # %check.exit133 +# BB#31: # %check.exit292 i32.const $push128=, dst i32.const $push494=, src i32.const $push129=, 33 @@ -594,7 +593,7 @@ main: # @main i32.const $push490=, 33 i32.call $push130=, memcmp@FUNCTION, $pop492, $pop491, $pop490 br_if 0, $pop130 # 0: down to label3 -# BB#32: # %check.exit137 +# BB#32: # %check.exit296 i32.const $push497=, src i32.const $push131=, 34 i32.call $push0=, memcpy@FUNCTION, $4, $pop497, $pop131 @@ -602,7 +601,7 @@ main: # @main i32.const $push495=, 34 i32.call $push132=, memcmp@FUNCTION, $pop0, $pop496, $pop495 br_if 0, $pop132 # 0: down to label3 -# BB#33: # %check.exit141 +# BB#33: # %check.exit300 i32.const $push133=, dst i32.const $push502=, src i32.const $push134=, 35 @@ -612,7 +611,7 @@ main: # @main i32.const $push498=, 35 i32.call $push135=, memcmp@FUNCTION, $pop500, $pop499, $pop498 br_if 0, $pop135 # 0: down to label3 -# BB#34: # %check.exit145 +# BB#34: # %check.exit304 i32.const $push505=, src i32.const $push136=, 36 i32.call $push1=, memcpy@FUNCTION, $4, $pop505, $pop136 @@ -620,7 +619,7 @@ main: # @main i32.const $push503=, 36 i32.call $push137=, memcmp@FUNCTION, $pop1, $pop504, $pop503 br_if 0, $pop137 # 0: down to label3 -# BB#35: # %check.exit149 +# BB#35: # %check.exit308 i32.const $push138=, dst i32.const $push510=, src i32.const $push139=, 37 @@ -630,7 +629,7 @@ main: # @main i32.const $push506=, 37 i32.call $push140=, memcmp@FUNCTION, $pop508, $pop507, $pop506 br_if 0, $pop140 # 0: down to label3 -# BB#36: # %check.exit153 +# BB#36: # %check.exit312 i32.const $push513=, src i32.const $push141=, 38 i32.call $push2=, memcpy@FUNCTION, $4, $pop513, $pop141 @@ -638,7 +637,7 @@ main: # @main i32.const $push511=, 38 i32.call $push142=, memcmp@FUNCTION, $pop2, $pop512, $pop511 br_if 0, $pop142 # 0: down to label3 -# BB#37: # %check.exit157 +# BB#37: # %check.exit316 i32.const $push143=, dst i32.const $push518=, src i32.const $push144=, 39 @@ -648,7 +647,7 @@ main: # @main i32.const $push514=, 39 i32.call $push145=, memcmp@FUNCTION, $pop516, $pop515, $pop514 br_if 0, $pop145 # 0: down to label3 -# BB#38: # %check.exit161 +# BB#38: # %check.exit320 i32.const $push521=, src i32.const $push146=, 40 i32.call $push3=, memcpy@FUNCTION, $4, $pop521, $pop146 @@ -656,7 +655,7 @@ main: # @main i32.const $push519=, 40 i32.call $push147=, memcmp@FUNCTION, $pop3, $pop520, $pop519 br_if 0, $pop147 # 0: down to label3 -# BB#39: # %check.exit165 +# BB#39: # %check.exit324 i32.const $push148=, dst i32.const $push526=, src i32.const $push149=, 41 @@ -666,7 +665,7 @@ main: # @main i32.const $push522=, 41 i32.call $push150=, memcmp@FUNCTION, $pop524, $pop523, $pop522 br_if 0, $pop150 # 0: down to label3 -# BB#40: # %check.exit169 +# BB#40: # %check.exit328 i32.const $push529=, src i32.const $push151=, 42 i32.call $push4=, memcpy@FUNCTION, $4, $pop529, $pop151 @@ -674,7 +673,7 @@ main: # @main i32.const $push527=, 42 i32.call $push152=, memcmp@FUNCTION, $pop4, $pop528, $pop527 br_if 0, $pop152 # 0: down to label3 -# BB#41: # %check.exit173 +# BB#41: # %check.exit332 i32.const $push153=, dst i32.const $push534=, src i32.const $push154=, 43 @@ -684,7 +683,7 @@ main: # @main i32.const $push530=, 43 i32.call $push155=, memcmp@FUNCTION, $pop532, $pop531, $pop530 br_if 0, $pop155 # 0: down to label3 -# BB#42: # %check.exit177 +# BB#42: # %check.exit336 i32.const $push537=, src i32.const $push156=, 44 i32.call $push5=, memcpy@FUNCTION, $4, $pop537, $pop156 @@ -692,7 +691,7 @@ main: # @main i32.const $push535=, 44 i32.call $push157=, memcmp@FUNCTION, $pop5, $pop536, $pop535 br_if 0, $pop157 # 0: down to label3 -# BB#43: # %check.exit181 +# BB#43: # %check.exit340 i32.const $push158=, dst i32.const $push542=, src i32.const $push159=, 45 @@ -702,7 +701,7 @@ main: # @main i32.const $push538=, 45 i32.call $push160=, memcmp@FUNCTION, $pop540, $pop539, $pop538 br_if 0, $pop160 # 0: down to label3 -# BB#44: # %check.exit185 +# BB#44: # %check.exit344 i32.const $push545=, src i32.const $push161=, 46 i32.call $push6=, memcpy@FUNCTION, $4, $pop545, $pop161 @@ -710,7 +709,7 @@ main: # @main i32.const $push543=, 46 i32.call $push162=, memcmp@FUNCTION, $pop6, $pop544, $pop543 br_if 0, $pop162 # 0: down to label3 -# BB#45: # %check.exit189 +# BB#45: # %check.exit348 i32.const $push163=, dst i32.const $push550=, src i32.const $push164=, 47 @@ -720,7 +719,7 @@ main: # @main i32.const $push546=, 47 i32.call $push165=, memcmp@FUNCTION, $pop548, $pop547, $pop546 br_if 0, $pop165 # 0: down to label3 -# BB#46: # %check.exit193 +# BB#46: # %check.exit352 i32.const $push553=, src i32.const $push166=, 48 i32.call $push7=, memcpy@FUNCTION, $4, $pop553, $pop166 @@ -728,7 +727,7 @@ main: # @main i32.const $push551=, 48 i32.call $push167=, memcmp@FUNCTION, $pop7, $pop552, $pop551 br_if 0, $pop167 # 0: down to label3 -# BB#47: # %check.exit197 +# BB#47: # %check.exit356 i32.const $push168=, dst i32.const $push558=, src i32.const $push169=, 49 @@ -738,7 +737,7 @@ main: # @main i32.const $push554=, 49 i32.call $push170=, memcmp@FUNCTION, $pop556, $pop555, $pop554 br_if 0, $pop170 # 0: down to label3 -# BB#48: # %check.exit201 +# BB#48: # %check.exit360 i32.const $push561=, src i32.const $push171=, 50 i32.call $push8=, memcpy@FUNCTION, $4, $pop561, $pop171 @@ -746,7 +745,7 @@ main: # @main i32.const $push559=, 50 i32.call $push172=, memcmp@FUNCTION, $pop8, $pop560, $pop559 br_if 0, $pop172 # 0: down to label3 -# BB#49: # %check.exit205 +# BB#49: # %check.exit364 i32.const $push173=, dst i32.const $push566=, src i32.const $push174=, 51 @@ -756,7 +755,7 @@ main: # @main i32.const $push562=, 51 i32.call $push175=, memcmp@FUNCTION, $pop564, $pop563, $pop562 br_if 0, $pop175 # 0: down to label3 -# BB#50: # %check.exit209 +# BB#50: # %check.exit368 i32.const $push569=, src i32.const $push176=, 52 i32.call $push9=, memcpy@FUNCTION, $4, $pop569, $pop176 @@ -764,7 +763,7 @@ main: # @main i32.const $push567=, 52 i32.call $push177=, memcmp@FUNCTION, $pop9, $pop568, $pop567 br_if 0, $pop177 # 0: down to label3 -# BB#51: # %check.exit213 +# BB#51: # %check.exit372 i32.const $push178=, dst i32.const $push574=, src i32.const $push179=, 53 @@ -774,7 +773,7 @@ main: # @main i32.const $push570=, 53 i32.call $push180=, memcmp@FUNCTION, $pop572, $pop571, $pop570 br_if 0, $pop180 # 0: down to label3 -# BB#52: # %check.exit217 +# BB#52: # %check.exit376 i32.const $push577=, src i32.const $push181=, 54 i32.call $push10=, memcpy@FUNCTION, $4, $pop577, $pop181 @@ -782,7 +781,7 @@ main: # @main i32.const $push575=, 54 i32.call $push182=, memcmp@FUNCTION, $pop10, $pop576, $pop575 br_if 0, $pop182 # 0: down to label3 -# BB#53: # %check.exit221 +# BB#53: # %check.exit380 i32.const $push183=, dst i32.const $push582=, src i32.const $push184=, 55 @@ -792,7 +791,7 @@ main: # @main i32.const $push578=, 55 i32.call $push185=, memcmp@FUNCTION, $pop580, $pop579, $pop578 br_if 0, $pop185 # 0: down to label3 -# BB#54: # %check.exit225 +# BB#54: # %check.exit384 i32.const $push585=, src i32.const $push186=, 56 i32.call $push11=, memcpy@FUNCTION, $4, $pop585, $pop186 @@ -800,7 +799,7 @@ main: # @main i32.const $push583=, 56 i32.call $push187=, memcmp@FUNCTION, $pop11, $pop584, $pop583 br_if 0, $pop187 # 0: down to label3 -# BB#55: # %check.exit229 +# BB#55: # %check.exit388 i32.const $push188=, dst i32.const $push590=, src i32.const $push189=, 57 @@ -810,7 +809,7 @@ main: # @main i32.const $push586=, 57 i32.call $push190=, memcmp@FUNCTION, $pop588, $pop587, $pop586 br_if 0, $pop190 # 0: down to label3 -# BB#56: # %check.exit233 +# BB#56: # %check.exit392 i32.const $push593=, src i32.const $push191=, 58 i32.call $push12=, memcpy@FUNCTION, $4, $pop593, $pop191 @@ -818,7 +817,7 @@ main: # @main i32.const $push591=, 58 i32.call $push192=, memcmp@FUNCTION, $pop12, $pop592, $pop591 br_if 0, $pop192 # 0: down to label3 -# BB#57: # %check.exit237 +# BB#57: # %check.exit396 i32.const $push193=, dst i32.const $push598=, src i32.const $push194=, 59 @@ -828,7 +827,7 @@ main: # @main i32.const $push594=, 59 i32.call $push195=, memcmp@FUNCTION, $pop596, $pop595, $pop594 br_if 0, $pop195 # 0: down to label3 -# BB#58: # %check.exit241 +# BB#58: # %check.exit400 i32.const $push601=, src i32.const $push196=, 60 i32.call $push13=, memcpy@FUNCTION, $4, $pop601, $pop196 @@ -836,7 +835,7 @@ main: # @main i32.const $push599=, 60 i32.call $push197=, memcmp@FUNCTION, $pop13, $pop600, $pop599 br_if 0, $pop197 # 0: down to label3 -# BB#59: # %check.exit245 +# BB#59: # %check.exit404 i32.const $push198=, dst i32.const $push606=, src i32.const $push199=, 61 @@ -846,7 +845,7 @@ main: # @main i32.const $push602=, 61 i32.call $push200=, memcmp@FUNCTION, $pop604, $pop603, $pop602 br_if 0, $pop200 # 0: down to label3 -# BB#60: # %check.exit249 +# BB#60: # %check.exit408 i32.const $push609=, src i32.const $push201=, 62 i32.call $push14=, memcpy@FUNCTION, $4, $pop609, $pop201 @@ -854,7 +853,7 @@ main: # @main i32.const $push607=, 62 i32.call $push202=, memcmp@FUNCTION, $pop14, $pop608, $pop607 br_if 0, $pop202 # 0: down to label3 -# BB#61: # %check.exit253 +# BB#61: # %check.exit412 i32.const $push203=, dst i32.const $push614=, src i32.const $push204=, 63 @@ -864,7 +863,7 @@ main: # @main i32.const $push610=, 63 i32.call $push205=, memcmp@FUNCTION, $pop612, $pop611, $pop610 br_if 0, $pop205 # 0: down to label3 -# BB#62: # %check.exit257 +# BB#62: # %check.exit416 i32.const $push617=, src i32.const $push206=, 64 i32.call $push15=, memcpy@FUNCTION, $4, $pop617, $pop206 @@ -872,7 +871,7 @@ main: # @main i32.const $push615=, 64 i32.call $push207=, memcmp@FUNCTION, $pop15, $pop616, $pop615 br_if 0, $pop207 # 0: down to label3 -# BB#63: # %check.exit261 +# BB#63: # %check.exit420 i32.const $push208=, dst i32.const $push622=, src i32.const $push209=, 65 @@ -882,7 +881,7 @@ main: # @main i32.const $push618=, 65 i32.call $push210=, memcmp@FUNCTION, $pop620, $pop619, $pop618 br_if 0, $pop210 # 0: down to label3 -# BB#64: # %check.exit265 +# BB#64: # %check.exit424 i32.const $push625=, src i32.const $push211=, 66 i32.call $push16=, memcpy@FUNCTION, $4, $pop625, $pop211 @@ -890,7 +889,7 @@ main: # @main i32.const $push623=, 66 i32.call $push212=, memcmp@FUNCTION, $pop16, $pop624, $pop623 br_if 0, $pop212 # 0: down to label3 -# BB#65: # %check.exit269 +# BB#65: # %check.exit428 i32.const $push213=, dst i32.const $push630=, src i32.const $push214=, 67 @@ -900,7 +899,7 @@ main: # @main i32.const $push626=, 67 i32.call $push215=, memcmp@FUNCTION, $pop628, $pop627, $pop626 br_if 0, $pop215 # 0: down to label3 -# BB#66: # %check.exit273 +# BB#66: # %check.exit432 i32.const $push633=, src i32.const $push216=, 68 i32.call $push17=, memcpy@FUNCTION, $4, $pop633, $pop216 @@ -908,7 +907,7 @@ main: # @main i32.const $push631=, 68 i32.call $push217=, memcmp@FUNCTION, $pop17, $pop632, $pop631 br_if 0, $pop217 # 0: down to label3 -# BB#67: # %check.exit277 +# BB#67: # %check.exit436 i32.const $push218=, dst i32.const $push638=, src i32.const $push219=, 69 @@ -918,7 +917,7 @@ main: # @main i32.const $push634=, 69 i32.call $push220=, memcmp@FUNCTION, $pop636, $pop635, $pop634 br_if 0, $pop220 # 0: down to label3 -# BB#68: # %check.exit281 +# BB#68: # %check.exit440 i32.const $push641=, src i32.const $push221=, 70 i32.call $push18=, memcpy@FUNCTION, $4, $pop641, $pop221 @@ -926,7 +925,7 @@ main: # @main i32.const $push639=, 70 i32.call $push222=, memcmp@FUNCTION, $pop18, $pop640, $pop639 br_if 0, $pop222 # 0: down to label3 -# BB#69: # %check.exit285 +# BB#69: # %check.exit444 i32.const $push223=, dst i32.const $push646=, src i32.const $push224=, 71 @@ -936,7 +935,7 @@ main: # @main i32.const $push642=, 71 i32.call $push225=, memcmp@FUNCTION, $pop644, $pop643, $pop642 br_if 0, $pop225 # 0: down to label3 -# BB#70: # %check.exit289 +# BB#70: # %check.exit448 i32.const $push649=, src i32.const $push226=, 72 i32.call $push19=, memcpy@FUNCTION, $4, $pop649, $pop226 @@ -944,7 +943,7 @@ main: # @main i32.const $push647=, 72 i32.call $push227=, memcmp@FUNCTION, $pop19, $pop648, $pop647 br_if 0, $pop227 # 0: down to label3 -# BB#71: # %check.exit293 +# BB#71: # %check.exit452 i32.const $push228=, dst i32.const $push654=, src i32.const $push229=, 73 @@ -954,7 +953,7 @@ main: # @main i32.const $push650=, 73 i32.call $push230=, memcmp@FUNCTION, $pop652, $pop651, $pop650 br_if 0, $pop230 # 0: down to label3 -# BB#72: # %check.exit297 +# BB#72: # %check.exit456 i32.const $push657=, src i32.const $push231=, 74 i32.call $push20=, memcpy@FUNCTION, $4, $pop657, $pop231 @@ -962,7 +961,7 @@ main: # @main i32.const $push655=, 74 i32.call $push232=, memcmp@FUNCTION, $pop20, $pop656, $pop655 br_if 0, $pop232 # 0: down to label3 -# BB#73: # %check.exit301 +# BB#73: # %check.exit460 i32.const $push233=, dst i32.const $push662=, src i32.const $push234=, 75 @@ -972,7 +971,7 @@ main: # @main i32.const $push658=, 75 i32.call $push235=, memcmp@FUNCTION, $pop660, $pop659, $pop658 br_if 0, $pop235 # 0: down to label3 -# BB#74: # %check.exit305 +# BB#74: # %check.exit464 i32.const $push665=, src i32.const $push236=, 76 i32.call $push21=, memcpy@FUNCTION, $4, $pop665, $pop236 @@ -980,7 +979,7 @@ main: # @main i32.const $push663=, 76 i32.call $push237=, memcmp@FUNCTION, $pop21, $pop664, $pop663 br_if 0, $pop237 # 0: down to label3 -# BB#75: # %check.exit309 +# BB#75: # %check.exit468 i32.const $push238=, dst i32.const $push670=, src i32.const $push239=, 77 @@ -990,7 +989,7 @@ main: # @main i32.const $push666=, 77 i32.call $push240=, memcmp@FUNCTION, $pop668, $pop667, $pop666 br_if 0, $pop240 # 0: down to label3 -# BB#76: # %check.exit313 +# BB#76: # %check.exit472 i32.const $push673=, src i32.const $push241=, 78 i32.call $push22=, memcpy@FUNCTION, $4, $pop673, $pop241 @@ -998,7 +997,7 @@ main: # @main i32.const $push671=, 78 i32.call $push242=, memcmp@FUNCTION, $pop22, $pop672, $pop671 br_if 0, $pop242 # 0: down to label3 -# BB#77: # %check.exit317 +# BB#77: # %check.exit476 i32.const $push244=, dst i32.const $push243=, src i32.const $push245=, 79 @@ -1007,10 +1006,10 @@ main: # @main i32.const $push674=, 79 i32.call $push246=, memcmp@FUNCTION, $pop23, $pop675, $pop674 br_if 0, $pop246 # 0: down to label3 -# BB#78: # %check.exit321 +# BB#78: # %check.exit480 i32.const $push247=, 0 return $pop247 -.LBB1_79: # %if.then.i320 +.LBB1_79: # %if.then.i479 end_block # label3: call abort@FUNCTION unreachable diff --git a/test/torture-s/memset-1.c.s b/test/torture-s/memset-1.c.s index b3c836c56..76d41f900 100644 --- a/test/torture-s/memset-1.c.s +++ b/test/torture-s/memset-1.c.s @@ -161,10 +161,10 @@ main: # @main i32.const $6=, u block br_if 0, $5 # 0: down to label10 -# BB#19: # %for.body55.preheader +# BB#19: # %for.body56.preheader # in Loop: Header=BB0_2 Depth=2 i32.const $4=, 0 -.LBB0_20: # %for.body55 +.LBB0_20: # %for.body56 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 @@ -175,7 +175,7 @@ main: # @main i32.const $push127=, 97 i32.ne $push31=, $pop30, $pop127 br_if 7, $pop31 # 7: down to label0 -# BB#21: # %for.inc61 +# BB#21: # %for.inc62 # in Loop: Header=BB0_20 Depth=3 i32.const $push132=, 1 i32.add $push131=, $6, $pop132 @@ -186,11 +186,11 @@ main: # @main end_loop # label12: i32.const $push133=, u+1 i32.add $6=, $6, $pop133 -.LBB0_23: # %for.body68.preheader +.LBB0_23: # %for.body69.preheader # in Loop: Header=BB0_2 Depth=2 end_block # label10: i32.const $4=, 0 -.LBB0_24: # %for.body68 +.LBB0_24: # %for.body69 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 @@ -200,13 +200,13 @@ main: # @main i32.const $push134=, 65 i32.ne $push35=, $pop34, $pop134 br_if 6, $pop35 # 6: down to label0 -# BB#25: # %for.inc74 +# BB#25: # %for.inc75 # in Loop: Header=BB0_24 Depth=3 i32.const $push135=, 1 i32.add $4=, $4, $pop135 i32.lt_s $push36=, $4, $3 br_if 0, $pop36 # 0: up to label13 -# BB#26: # %for.body81.preheader +# BB#26: # %for.body82.preheader # in Loop: Header=BB0_2 Depth=2 end_loop # label14: i32.add $push138=, $6, $4 @@ -215,7 +215,7 @@ main: # @main i32.const $push136=, 97 i32.ne $push38=, $pop37, $pop136 br_if 4, $pop38 # 4: down to label0 -# BB#27: # %for.inc87 +# BB#27: # %for.inc88 # in Loop: Header=BB0_2 Depth=2 i32.const $push140=, 1 i32.add $push39=, $4, $pop140 @@ -223,7 +223,7 @@ main: # @main i32.const $push139=, 97 i32.ne $push41=, $pop40, $pop139 br_if 4, $pop41 # 4: down to label0 -# BB#28: # %for.inc87.1 +# BB#28: # %for.inc88.1 # in Loop: Header=BB0_2 Depth=2 i32.const $push142=, 2 i32.add $push42=, $4, $pop142 @@ -231,7 +231,7 @@ main: # @main i32.const $push141=, 97 i32.ne $push44=, $pop43, $pop141 br_if 4, $pop44 # 4: down to label0 -# BB#29: # %for.inc87.2 +# BB#29: # %for.inc88.2 # in Loop: Header=BB0_2 Depth=2 i32.const $push144=, 3 i32.add $push45=, $4, $pop144 @@ -239,7 +239,7 @@ main: # @main i32.const $push143=, 97 i32.ne $push47=, $pop46, $pop143 br_if 4, $pop47 # 4: down to label0 -# BB#30: # %for.inc87.3 +# BB#30: # %for.inc88.3 # in Loop: Header=BB0_2 Depth=2 i32.const $push146=, 4 i32.add $push48=, $4, $pop146 @@ -247,7 +247,7 @@ main: # @main i32.const $push145=, 97 i32.ne $push50=, $pop49, $pop145 br_if 4, $pop50 # 4: down to label0 -# BB#31: # %for.inc87.4 +# BB#31: # %for.inc88.4 # in Loop: Header=BB0_2 Depth=2 i32.const $push148=, 5 i32.add $push51=, $4, $pop148 @@ -255,7 +255,7 @@ main: # @main i32.const $push147=, 97 i32.ne $push53=, $pop52, $pop147 br_if 4, $pop53 # 4: down to label0 -# BB#32: # %for.inc87.5 +# BB#32: # %for.inc88.5 # in Loop: Header=BB0_2 Depth=2 i32.const $push150=, 6 i32.add $push54=, $4, $pop150 @@ -263,7 +263,7 @@ main: # @main i32.const $push149=, 97 i32.ne $push56=, $pop55, $pop149 br_if 4, $pop56 # 4: down to label0 -# BB#33: # %for.inc87.6 +# BB#33: # %for.inc88.6 # in Loop: Header=BB0_2 Depth=2 i32.const $push152=, 7 i32.add $push57=, $4, $pop152 @@ -271,17 +271,17 @@ main: # @main i32.const $push151=, 97 i32.ne $push59=, $pop58, $pop151 br_if 4, $pop59 # 4: down to label0 -# BB#34: # %for.inc87.7 +# BB#34: # %for.inc88.7 # in Loop: Header=BB0_2 Depth=2 i32.const $push153=, 66 i32.call $discard=, memset@FUNCTION, $0, $pop153, $3 i32.const $6=, u block br_if 0, $5 # 0: down to label15 -# BB#35: # %for.body100.preheader +# BB#35: # %for.body102.preheader # in Loop: Header=BB0_2 Depth=2 i32.const $4=, 0 -.LBB0_36: # %for.body100 +.LBB0_36: # %for.body102 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 @@ -292,7 +292,7 @@ main: # @main i32.const $push154=, 97 i32.ne $push61=, $pop60, $pop154 br_if 7, $pop61 # 7: down to label0 -# BB#37: # %for.inc106 +# BB#37: # %for.inc108 # in Loop: Header=BB0_36 Depth=3 i32.const $push159=, 1 i32.add $push158=, $6, $pop159 @@ -303,11 +303,11 @@ main: # @main end_loop # label17: i32.const $push160=, u+1 i32.add $6=, $6, $pop160 -.LBB0_39: # %for.body113.preheader +.LBB0_39: # %for.body115.preheader # in Loop: Header=BB0_2 Depth=2 end_block # label15: i32.const $4=, 0 -.LBB0_40: # %for.body113 +.LBB0_40: # %for.body115 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 @@ -317,13 +317,13 @@ main: # @main i32.const $push161=, 66 i32.ne $push65=, $pop64, $pop161 br_if 6, $pop65 # 6: down to label0 -# BB#41: # %for.inc119 +# BB#41: # %for.inc121 # in Loop: Header=BB0_40 Depth=3 i32.const $push162=, 1 i32.add $4=, $4, $pop162 i32.lt_s $push66=, $4, $3 br_if 0, $pop66 # 0: up to label18 -# BB#42: # %for.body126.preheader +# BB#42: # %for.body128.preheader # in Loop: Header=BB0_2 Depth=2 end_loop # label19: i32.add $push165=, $6, $4 @@ -332,7 +332,7 @@ main: # @main i32.const $push163=, 97 i32.ne $push68=, $pop67, $pop163 br_if 4, $pop68 # 4: down to label0 -# BB#43: # %for.inc132 +# BB#43: # %for.inc134 # in Loop: Header=BB0_2 Depth=2 i32.const $push167=, 1 i32.add $push69=, $4, $pop167 @@ -340,7 +340,7 @@ main: # @main i32.const $push166=, 97 i32.ne $push71=, $pop70, $pop166 br_if 4, $pop71 # 4: down to label0 -# BB#44: # %for.inc132.1 +# BB#44: # %for.inc134.1 # in Loop: Header=BB0_2 Depth=2 i32.const $push169=, 2 i32.add $push72=, $4, $pop169 @@ -348,7 +348,7 @@ main: # @main i32.const $push168=, 97 i32.ne $push74=, $pop73, $pop168 br_if 4, $pop74 # 4: down to label0 -# BB#45: # %for.inc132.2 +# BB#45: # %for.inc134.2 # in Loop: Header=BB0_2 Depth=2 i32.const $push171=, 3 i32.add $push75=, $4, $pop171 @@ -356,7 +356,7 @@ main: # @main i32.const $push170=, 97 i32.ne $push77=, $pop76, $pop170 br_if 4, $pop77 # 4: down to label0 -# BB#46: # %for.inc132.3 +# BB#46: # %for.inc134.3 # in Loop: Header=BB0_2 Depth=2 i32.const $push173=, 4 i32.add $push78=, $4, $pop173 @@ -364,7 +364,7 @@ main: # @main i32.const $push172=, 97 i32.ne $push80=, $pop79, $pop172 br_if 4, $pop80 # 4: down to label0 -# BB#47: # %for.inc132.4 +# BB#47: # %for.inc134.4 # in Loop: Header=BB0_2 Depth=2 i32.const $push175=, 5 i32.add $push81=, $4, $pop175 @@ -372,7 +372,7 @@ main: # @main i32.const $push174=, 97 i32.ne $push83=, $pop82, $pop174 br_if 4, $pop83 # 4: down to label0 -# BB#48: # %for.inc132.5 +# BB#48: # %for.inc134.5 # in Loop: Header=BB0_2 Depth=2 i32.const $push177=, 6 i32.add $push84=, $4, $pop177 @@ -380,7 +380,7 @@ main: # @main i32.const $push176=, 97 i32.ne $push86=, $pop85, $pop176 br_if 4, $pop86 # 4: down to label0 -# BB#49: # %for.inc132.6 +# BB#49: # %for.inc134.6 # in Loop: Header=BB0_2 Depth=2 i32.const $push179=, 7 i32.add $push87=, $4, $pop179 @@ -388,14 +388,14 @@ main: # @main i32.const $push178=, 97 i32.ne $push89=, $pop88, $pop178 br_if 4, $pop89 # 4: down to label0 -# BB#50: # %for.inc132.7 +# BB#50: # %for.inc134.7 # in Loop: Header=BB0_2 Depth=2 i32.const $push181=, 1 i32.add $3=, $3, $pop181 i32.const $push180=, 80 i32.lt_u $push90=, $3, $pop180 br_if 0, $pop90 # 0: up to label3 -# BB#51: # %for.inc139 +# BB#51: # %for.inc141 # in Loop: Header=BB0_1 Depth=1 end_loop # label4: i32.const $push183=, 1 @@ -403,12 +403,12 @@ main: # @main i32.const $push182=, 8 i32.lt_u $push91=, $1, $pop182 br_if 0, $pop91 # 0: up to label1 -# BB#52: # %for.end141 +# BB#52: # %for.end143 end_loop # label2: i32.const $push92=, 0 call exit@FUNCTION, $pop92 unreachable -.LBB0_53: # %if.then130 +.LBB0_53: # %if.then132 end_block # label0: call abort@FUNCTION unreachable diff --git a/test/torture-s/multi-ix.c.s b/test/torture-s/multi-ix.c.s index 64ffc641a..ee6017e45 100644 --- a/test/torture-s/multi-ix.c.s +++ b/test/torture-s/multi-ix.c.s @@ -1062,9 +1062,8 @@ s: # @s tee_local $push7=, $2=, $pop8 i32.store $discard=, 12($pop7), $1 block - i32.const $push17=, 0 - i32.eq $push18=, $0, $pop17 - br_if 0, $pop18 # 0: down to label3 + i32.eqz $push17=, $0 + br_if 0, $pop17 # 0: down to label3 # BB#1: # %while.body.preheader i32.const $push9=, -1 i32.add $0=, $0, $pop9 @@ -1109,9 +1108,8 @@ z: # @z tee_local $push10=, $3=, $pop11 i32.store $discard=, 12($pop10), $1 block - i32.const $push16=, 0 - i32.eq $push17=, $0, $pop16 - br_if 0, $pop17 # 0: down to label6 + i32.eqz $push16=, $0 + br_if 0, $pop16 # 0: down to label6 # BB#1: # %while.body.preheader i32.load $1=, 12($3) .LBB2_2: # %while.body @@ -1164,9 +1162,8 @@ c: # @c # =>This Inner Loop Header: Depth=1 block loop # label10: - i32.const $push22=, 0 - i32.eq $push23=, $0, $pop22 - br_if 2, $pop23 # 2: down to label9 + i32.eqz $push22=, $0 + br_if 2, $pop22 # 2: down to label9 # BB#2: # %while.body # in Loop: Header=BB3_1 Depth=1 i32.load $push21=, 12($2) diff --git a/test/torture-s/p18298.c.s b/test/torture-s/p18298.c.s index 60318f413..8141b62d0 100644 --- a/test/torture-s/p18298.c.s +++ b/test/torture-s/p18298.c.s @@ -26,9 +26,8 @@ main: # @main block i32.const $push1=, 0 i32.load8_u $push0=, s($pop1) - i32.const $push5=, 0 - i32.eq $push6=, $pop0, $pop5 - br_if 0, $pop6 # 0: down to label0 + i32.eqz $push5=, $pop0 + br_if 0, $pop5 # 0: down to label0 # BB#1: # %while.body i32.const $push3=, 0 i32.const $push2=, 0 diff --git a/test/torture-s/pending-4.c.s b/test/torture-s/pending-4.c.s index 26922e16a..b767505a1 100644 --- a/test/torture-s/pending-4.c.s +++ b/test/torture-s/pending-4.c.s @@ -41,9 +41,8 @@ main: # @main .LBB1_3: # %for.cond # in Loop: Header=BB1_1 Depth=1 end_block # label2: - i32.const $push11=, 0 - i32.eq $push12=, $4, $pop11 - br_if 1, $pop12 # 1: down to label1 + i32.eqz $push11=, $4 + br_if 1, $pop11 # 1: down to label1 # BB#4: # %if.else # in Loop: Header=BB1_1 Depth=1 i32.const $push10=, 1 diff --git a/test/torture-s/postmod-1.c.s b/test/torture-s/postmod-1.c.s index ae993d81b..5eb635689 100644 --- a/test/torture-s/postmod-1.c.s +++ b/test/torture-s/postmod-1.c.s @@ -159,9 +159,8 @@ foo: # @foo end_loop # label3: i32.const $push84=, 0 i32.load $push29=, stop($pop84) - i32.const $push85=, 0 - i32.eq $push86=, $pop29, $pop85 - br_if 0, $pop86 # 0: up to label0 + i32.eqz $push85=, $pop29 + br_if 0, $pop85 # 0: up to label0 # BB#4: # %do.end end_loop # label1: return diff --git a/test/torture-s/pr15296.c.s b/test/torture-s/pr15296.c.s index f87a808de..a8022ff42 100644 --- a/test/torture-s/pr15296.c.s +++ b/test/torture-s/pr15296.c.s @@ -23,14 +23,12 @@ f: # @f block block block - i32.const $push12=, 0 - i32.eq $push13=, $3, $pop12 - br_if 0, $pop13 # 0: down to label7 + i32.eqz $push12=, $3 + br_if 0, $pop12 # 0: down to label7 # BB#3: # %if.end3 copy_local $4=, $5 - i32.const $push14=, 0 - i32.eq $push15=, $5, $pop14 - br_if 1, $pop15 # 1: down to label6 + i32.eqz $push13=, $5 + br_if 1, $pop13 # 1: down to label6 .LBB0_4: # %l3 end_block # label7: i32.const $push10=, 8 @@ -41,9 +39,8 @@ f: # @f i32.store $discard=, 0($pop9), $4 br_if 1, $3 # 1: down to label5 # BB#5: # %if.end19 - i32.const $push16=, 0 - i32.eq $push17=, $4, $pop16 - br_if 2, $pop17 # 2: down to label4 + i32.eqz $push14=, $4 + br_if 2, $pop14 # 2: down to label4 # BB#6: # %if.end24 i32.store $discard=, 8($4), $3 return diff --git a/test/torture-s/pr17133.c.s b/test/torture-s/pr17133.c.s index a23fab87f..16337d485 100644 --- a/test/torture-s/pr17133.c.s +++ b/test/torture-s/pr17133.c.s @@ -28,9 +28,8 @@ pure_alloc: # @pure_alloc .LBB0_2: # %if.end # =>This Inner Loop Header: Depth=1 loop # label1: - i32.const $push16=, 0 - i32.eq $push17=, $1, $pop16 - br_if 0, $pop17 # 0: up to label1 + i32.eqz $push16=, $1 + br_if 0, $pop16 # 0: up to label1 # BB#3: # %while.cond.if.then_crit_edge end_loop # label2: i32.const $2=, 0 diff --git a/test/torture-s/pr19005.c.s b/test/torture-s/pr19005.c.s index fede483f0..9a1a53100 100644 --- a/test/torture-s/pr19005.c.s +++ b/test/torture-s/pr19005.c.s @@ -19,9 +19,8 @@ bar: # @bar i32.const $push17=, 0 i32.load $push16=, s($pop17) tee_local $push15=, $3=, $pop16 - i32.const $push22=, 0 - i32.eq $push23=, $pop15, $pop22 - br_if 0, $pop23 # 0: down to label2 + i32.eqz $push22=, $pop15 + br_if 0, $pop22 # 0: down to label2 # BB#1: # %if.else block i32.ne $push4=, $2, $1 @@ -91,9 +90,8 @@ foo: # @foo i32.const $push19=, 0 i32.load $push18=, s($pop19) tee_local $push17=, $3=, $pop18 - i32.const $push35=, 0 - i32.eq $push36=, $pop17, $pop35 - br_if 0, $pop36 # 0: down to label8 + i32.eqz $push35=, $pop17 + br_if 0, $pop35 # 0: down to label8 # BB#1: # %if.else.i i32.ne $push4=, $0, $2 br_if 3, $pop4 # 3: down to label5 diff --git a/test/torture-s/pr20466-1.c.s b/test/torture-s/pr20466-1.c.s index e623d5ec0..5c83b05f2 100644 --- a/test/torture-s/pr20466-1.c.s +++ b/test/torture-s/pr20466-1.c.s @@ -30,78 +30,78 @@ f: # @f .type main,@function main: # @main .result i32 - .local i32, i32, i32 + .local i32, i32 # BB#0: # %entry - i32.const $push24=, __stack_pointer - i32.const $push21=, __stack_pointer - i32.load $push22=, 0($pop21) - i32.const $push23=, 32 - i32.sub $push43=, $pop22, $pop23 - i32.store $push45=, 0($pop24), $pop43 - tee_local $push44=, $2=, $pop45 - i32.const $push3=, 42 - i32.store $discard=, 28($pop44), $pop3 - i32.const $push5=, 1 - i32.store $discard=, 20($2), $pop5 - i32.const $push6=, -1 - i32.store $discard=, 16($2), $pop6 - i32.const $push7=, 55 - i32.store $discard=, 12($2), $pop7 - i32.const $push4=, 66 - i32.store $0=, 24($2), $pop4 - i32.const $push25=, 28 - i32.add $push26=, $2, $pop25 - i32.store $discard=, 8($2), $pop26 - i32.const $push27=, 16 - i32.add $push28=, $2, $pop27 - i32.store $discard=, 4($2), $pop28 - i32.const $push29=, 12 - i32.add $push30=, $2, $pop29 - i32.store $discard=, 0($2), $pop30 - i32.const $push31=, 8 - i32.add $push32=, $2, $pop31 - i32.const $push33=, 24 - i32.add $push34=, $2, $pop33 - i32.const $push35=, 20 - i32.add $push36=, $2, $pop35 - i32.const $push37=, 4 - i32.add $push38=, $2, $pop37 - i32.call $discard=, f@FUNCTION, $pop32, $pop34, $pop36, $pop38, $2 - i32.const $push39=, 20 - i32.add $push40=, $2, $pop39 - copy_local $1=, $pop40 + i32.const $push25=, __stack_pointer + i32.const $push22=, __stack_pointer + i32.load $push23=, 0($pop22) + i32.const $push24=, 32 + i32.sub $push44=, $pop23, $pop24 + i32.store $push46=, 0($pop25), $pop44 + tee_local $push45=, $1=, $pop46 + i32.const $push4=, 42 + i32.store $discard=, 28($pop45), $pop4 + i32.const $push6=, 1 + i32.store $discard=, 20($1), $pop6 + i32.const $push7=, -1 + i32.store $discard=, 16($1), $pop7 + i32.const $push8=, 55 + i32.store $discard=, 12($1), $pop8 + i32.const $push5=, 66 + i32.store $0=, 24($1), $pop5 + i32.const $push26=, 28 + i32.add $push27=, $1, $pop26 + i32.store $discard=, 8($1), $pop27 + i32.const $push28=, 16 + i32.add $push29=, $1, $pop28 + i32.store $discard=, 4($1), $pop29 + i32.const $push30=, 12 + i32.add $push31=, $1, $pop30 + i32.store $discard=, 0($1), $pop31 + i32.const $push32=, 8 + i32.add $push33=, $1, $pop32 + i32.const $push34=, 24 + i32.add $push35=, $1, $pop34 + i32.const $push36=, 20 + i32.add $push37=, $1, $pop36 + i32.const $push38=, 4 + i32.add $push39=, $1, $pop38 + i32.call $discard=, f@FUNCTION, $pop33, $pop35, $pop37, $pop39, $1 block - i32.load $push8=, 28($2) - i32.ne $push9=, $0, $pop8 - br_if 0, $pop9 # 0: down to label0 -# BB#1: # %entry - i32.load $push0=, 8($2) - i32.ne $push10=, $pop0, $1 + i32.load $push9=, 28($1) + i32.ne $push10=, $0, $pop9 br_if 0, $pop10 # 0: down to label0 +# BB#1: # %entry + i32.load $push0=, 8($1) + i32.const $push40=, 20 + i32.add $push41=, $1, $pop40 + copy_local $push1=, $pop41 + i32.ne $push11=, $pop0, $pop1 + br_if 0, $pop11 # 0: down to label0 # BB#2: # %entry - i32.load $push1=, 20($2) - i32.const $push11=, 99 - i32.ne $push12=, $pop1, $pop11 - br_if 0, $pop12 # 0: down to label0 + i32.load $push2=, 20($1) + i32.const $push12=, 99 + i32.ne $push13=, $pop2, $pop12 + br_if 0, $pop13 # 0: down to label0 # BB#3: # %entry - i32.load $push2=, 16($2) - i32.const $push13=, -1 - i32.ne $push14=, $pop2, $pop13 - br_if 0, $pop14 # 0: down to label0 + i32.load $push3=, 16($1) + i32.const $push14=, -1 + i32.ne $push15=, $pop3, $pop14 + br_if 0, $pop15 # 0: down to label0 # BB#4: # %lor.lhs.false6 - i32.load $push16=, 4($2) - i32.const $push41=, 12 - i32.add $push42=, $2, $pop41 - i32.ne $push17=, $pop16, $pop42 - br_if 0, $pop17 # 0: down to label0 + i32.load $push17=, 4($1) + i32.const $push42=, 12 + i32.add $push43=, $1, $pop42 + i32.ne $push18=, $pop17, $pop43 + br_if 0, $pop18 # 0: down to label0 # BB#5: # %lor.lhs.false6 - i32.load $push15=, 12($2) - i32.const $push18=, 55 - i32.ne $push19=, $pop15, $pop18 - br_if 0, $pop19 # 0: down to label0 + i32.load $push16=, 12($1) + i32.const $push19=, 55 + i32.ne $push20=, $pop16, $pop19 + br_if 0, $pop20 # 0: down to label0 # BB#6: # %if.end - i32.const $push20=, 0 - call exit@FUNCTION, $pop20 + i32.const $push21=, 0 + call exit@FUNCTION, $pop21 unreachable .LBB1_7: # %if.then end_block # label0: diff --git a/test/torture-s/pr20601-1.c.s b/test/torture-s/pr20601-1.c.s index 37d157e6b..3501a0a00 100644 --- a/test/torture-s/pr20601-1.c.s +++ b/test/torture-s/pr20601-1.c.s @@ -72,9 +72,8 @@ main: # @main block i32.load8_s $push41=, 1($5) tee_local $push40=, $1=, $pop41 - i32.const $push68=, 0 - i32.eq $push69=, $pop40, $pop68 - br_if 0, $pop69 # 0: down to label9 + i32.eqz $push68=, $pop40 + br_if 0, $pop68 # 0: down to label9 # BB#3: # %land.lhs.true.i # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push4=, 2($5) @@ -109,9 +108,8 @@ main: # @main # in Loop: Header=BB2_1 Depth=1 end_block # label11: i32.load $push15=, 4($2) - i32.const $push70=, 0 - i32.eq $push71=, $pop15, $pop70 - br_if 6, $pop71 # 6: down to label3 + i32.eqz $push69=, $pop15 + br_if 6, $pop69 # 6: down to label3 # BB#9: # %if.end19.i # in Loop: Header=BB2_1 Depth=1 i32.add $2=, $2, $0 @@ -176,9 +174,8 @@ main: # @main block i32.const $push19=, 512 i32.and $push20=, $3, $pop19 - i32.const $push72=, 0 - i32.eq $push73=, $pop20, $pop72 - br_if 0, $pop73 # 0: down to label13 + i32.eqz $push70=, $pop20 + br_if 0, $pop70 # 0: down to label13 # BB#16: # %if.then6.i i32.const $push64=, 0 i32.const $push21=, 1 @@ -206,9 +203,8 @@ main: # @main end_block # label13: i32.const $push28=, 1024 i32.and $push29=, $3, $pop28 - i32.const $push74=, 0 - i32.eq $push75=, $pop29, $pop74 - br_if 1, $pop75 # 1: down to label2 + i32.eqz $push71=, $pop29 + br_if 1, $pop71 # 1: down to label2 # BB#19: # %setup1.exit i32.const $push67=, 0 i32.load $push27=, a+16($pop67) diff --git a/test/torture-s/pr21964-1.c.s b/test/torture-s/pr21964-1.c.s index 55df7fab5..4f81eb3db 100644 --- a/test/torture-s/pr21964-1.c.s +++ b/test/torture-s/pr21964-1.c.s @@ -8,13 +8,11 @@ foo: # @foo .param i32, i32 # BB#0: # %entry block - i32.const $push1=, 0 - i32.eq $push2=, $1, $pop1 - br_if 0, $pop2 # 0: down to label0 + i32.eqz $push1=, $1 + br_if 0, $pop1 # 0: down to label0 # BB#1: # %entry - i32.const $push3=, 0 - i32.eq $push4=, $0, $pop3 - br_if 0, $pop4 # 0: down to label0 + i32.eqz $push2=, $0 + br_if 0, $pop2 # 0: down to label0 # BB#2: # %if.then2.split call abort@FUNCTION unreachable diff --git a/test/torture-s/pr23135.c.s b/test/torture-s/pr23135.c.s index d8d94ed0b..760e5fdfd 100644 --- a/test/torture-s/pr23135.c.s +++ b/test/torture-s/pr23135.c.s @@ -31,217 +31,217 @@ main: # @main .result i32 .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push17=, 0 - i32.load $12=, i($pop17) - i32.const $push110=, 0 - i32.load $13=, j($pop110) - i32.const $push109=, 0 - i32.const $push108=, 0 - i32.load $push107=, j+4($pop108) - tee_local $push106=, $17=, $pop107 - i32.const $push105=, 0 - i32.load $push104=, i+4($pop105) - tee_local $push103=, $16=, $pop104 - i32.add $push3=, $pop106, $pop103 - i32.store $0=, res+4($pop109), $pop3 + i32.const $push18=, 0 + i32.load $13=, i($pop18) + i32.const $push118=, 0 + i32.load $14=, j($pop118) + i32.const $push117=, 0 + i32.const $push116=, 0 + i32.load $push115=, j+4($pop116) + tee_local $push114=, $17=, $pop115 + i32.const $push113=, 0 + i32.load $push112=, i+4($pop113) + tee_local $push111=, $16=, $pop112 + i32.add $push3=, $pop114, $pop111 + i32.store $0=, res+4($pop117), $pop3 block - i32.const $push102=, 0 - i32.add $push2=, $13, $12 - i32.store $push101=, res($pop102), $pop2 - tee_local $push100=, $15=, $pop101 - i32.const $push18=, 160 - i32.ne $push19=, $pop100, $pop18 - br_if 0, $pop19 # 0: down to label1 + i32.const $push110=, 0 + i32.add $push2=, $14, $13 + i32.store $push109=, res($pop110), $pop2 + tee_local $push108=, $15=, $pop109 + i32.const $push19=, 160 + i32.ne $push20=, $pop108, $pop19 + br_if 0, $pop20 # 0: down to label1 # BB#1: # %entry - i32.const $push20=, 113 - i32.ne $push21=, $0, $pop20 - br_if 0, $pop21 # 0: down to label1 + i32.const $push21=, 113 + i32.ne $push22=, $0, $pop21 + br_if 0, $pop22 # 0: down to label1 # BB#2: # %verify.exit - i32.const $push22=, 0 - i32.mul $push4=, $13, $12 - i32.store $1=, res($pop22), $pop4 - i32.const $push111=, 0 + i32.const $push23=, 0 + i32.mul $push4=, $14, $13 + i32.store $1=, res($pop23), $pop4 + i32.const $push119=, 0 i32.mul $push5=, $17, $16 - i32.store $2=, res+4($pop111), $pop5 - i32.const $push23=, 1500 - i32.ne $push24=, $1, $pop23 - br_if 0, $pop24 # 0: down to label1 + i32.store $2=, res+4($pop119), $pop5 + i32.const $push24=, 1500 + i32.ne $push25=, $1, $pop24 + br_if 0, $pop25 # 0: down to label1 # BB#3: # %verify.exit - i32.const $push25=, 1300 - i32.ne $push26=, $2, $pop25 - br_if 0, $pop26 # 0: down to label1 + i32.const $push26=, 1300 + i32.ne $push27=, $2, $pop26 + br_if 0, $pop27 # 0: down to label1 # BB#4: # %verify.exit48 - i32.div_s $14=, $16, $17 - i32.const $push27=, 0 - i32.div_s $push6=, $12, $13 - i32.store $3=, res($pop27), $pop6 - i32.const $push112=, 0 - i32.store $discard=, res+4($pop112), $14 - i32.const $push28=, 15 - i32.ne $push29=, $3, $pop28 - br_if 0, $pop29 # 0: down to label1 + i32.const $push28=, 0 + i32.div_s $push6=, $13, $14 + i32.store $3=, res($pop28), $pop6 + i32.const $push120=, 0 + i32.div_s $push7=, $16, $17 + i32.store $4=, res+4($pop120), $pop7 + i32.const $push29=, 15 + i32.ne $push30=, $3, $pop29 + br_if 0, $pop30 # 0: down to label1 # BB#5: # %verify.exit48 - i32.const $push30=, 7 - i32.ne $push31=, $14, $pop30 - br_if 0, $pop31 # 0: down to label1 + i32.const $push31=, 7 + i32.ne $push32=, $4, $pop31 + br_if 0, $pop32 # 0: down to label1 # BB#6: # %verify.exit54 - i32.const $push32=, 0 - i32.and $push7=, $13, $12 - i32.store $4=, res($pop32), $pop7 - i32.const $push113=, 0 - i32.and $push8=, $17, $16 - i32.store $5=, res+4($pop113), $pop8 - i32.const $push33=, 2 - i32.ne $push34=, $4, $pop33 - br_if 0, $pop34 # 0: down to label1 + i32.const $push33=, 0 + i32.and $push8=, $14, $13 + i32.store $5=, res($pop33), $pop8 + i32.const $push121=, 0 + i32.and $push9=, $17, $16 + i32.store $6=, res+4($pop121), $pop9 + i32.const $push34=, 2 + i32.ne $push35=, $5, $pop34 + br_if 0, $pop35 # 0: down to label1 # BB#7: # %verify.exit54 - i32.const $push35=, 4 - i32.ne $push36=, $5, $pop35 - br_if 0, $pop36 # 0: down to label1 + i32.const $push36=, 4 + i32.ne $push37=, $6, $pop36 + br_if 0, $pop37 # 0: down to label1 # BB#8: # %verify.exit60 - i32.const $push37=, 0 - i32.or $push9=, $13, $12 - i32.store $6=, res($pop37), $pop9 - i32.const $push114=, 0 - i32.or $push10=, $17, $16 - i32.store $7=, res+4($pop114), $pop10 - i32.const $push38=, 158 - i32.ne $push39=, $6, $pop38 - br_if 0, $pop39 # 0: down to label1 + i32.const $push38=, 0 + i32.or $push10=, $14, $13 + i32.store $7=, res($pop38), $pop10 + i32.const $push122=, 0 + i32.or $push11=, $17, $16 + i32.store $8=, res+4($pop122), $pop11 + i32.const $push39=, 158 + i32.ne $push40=, $7, $pop39 + br_if 0, $pop40 # 0: down to label1 # BB#9: # %verify.exit60 - i32.const $push40=, 109 - i32.ne $push41=, $7, $pop40 - br_if 0, $pop41 # 0: down to label1 + i32.const $push41=, 109 + i32.ne $push42=, $8, $pop41 + br_if 0, $pop42 # 0: down to label1 # BB#10: # %verify.exit66 - i32.const $push42=, 0 - i32.xor $push11=, $12, $13 - i32.store $13=, res($pop42), $pop11 - i32.const $push115=, 0 - i32.xor $push12=, $16, $17 - i32.store $17=, res+4($pop115), $pop12 - i32.const $push43=, 156 - i32.ne $push44=, $13, $pop43 - br_if 0, $pop44 # 0: down to label1 + i32.const $push43=, 0 + i32.xor $push12=, $13, $14 + i32.store $14=, res($pop43), $pop12 + i32.const $push123=, 0 + i32.xor $push13=, $16, $17 + i32.store $17=, res+4($pop123), $pop13 + i32.const $push44=, 156 + i32.ne $push45=, $14, $pop44 + br_if 0, $pop45 # 0: down to label1 # BB#11: # %verify.exit66 - i32.const $push45=, 105 - i32.ne $push46=, $17, $pop45 - br_if 0, $pop46 # 0: down to label1 + i32.const $push46=, 105 + i32.ne $push47=, $17, $pop46 + br_if 0, $pop47 # 0: down to label1 # BB#12: # %verify.exit72 - i32.const $push47=, 0 - i32.const $push118=, 0 - i32.sub $push13=, $pop118, $12 - i32.store $8=, res($pop47), $pop13 - i32.const $push117=, 0 - i32.const $push116=, 0 - i32.sub $push14=, $pop116, $16 - i32.store $9=, res+4($pop117), $pop14 - i32.const $push48=, -150 - i32.ne $push49=, $8, $pop48 - br_if 0, $pop49 # 0: down to label1 + i32.const $push48=, 0 + i32.const $push126=, 0 + i32.sub $push14=, $pop126, $13 + i32.store $9=, res($pop48), $pop14 + i32.const $push125=, 0 + i32.const $push124=, 0 + i32.sub $push15=, $pop124, $16 + i32.store $10=, res+4($pop125), $pop15 + i32.const $push49=, -150 + i32.ne $push50=, $9, $pop49 + br_if 0, $pop50 # 0: down to label1 # BB#13: # %verify.exit72 - i32.const $push50=, -100 - i32.ne $push51=, $9, $pop50 - br_if 0, $pop51 # 0: down to label1 + i32.const $push51=, -100 + i32.ne $push52=, $10, $pop51 + br_if 0, $pop52 # 0: down to label1 # BB#14: # %verify.exit78 - i32.const $push53=, 0 - i32.const $push52=, -1 - i32.xor $push15=, $12, $pop52 - i32.store $10=, res($pop53), $pop15 - i32.const $push120=, 0 - i32.const $push119=, -1 - i32.xor $push16=, $16, $pop119 - i32.store $11=, res+4($pop120), $pop16 - i32.const $push54=, 150 - i32.ne $push55=, $12, $pop54 - br_if 0, $pop55 # 0: down to label1 + i32.const $push54=, 0 + i32.const $push53=, -1 + i32.xor $push16=, $13, $pop53 + i32.store $11=, res($pop54), $pop16 + i32.const $push128=, 0 + i32.const $push127=, -1 + i32.xor $push17=, $16, $pop127 + i32.store $12=, res+4($pop128), $pop17 + i32.const $push55=, 150 + i32.ne $push56=, $13, $pop55 + br_if 0, $pop56 # 0: down to label1 # BB#15: # %verify.exit78 - i32.const $push56=, -101 - i32.ne $push57=, $11, $pop56 - br_if 0, $pop57 # 0: down to label1 + i32.const $push57=, -101 + i32.ne $push58=, $12, $pop57 + br_if 0, $pop58 # 0: down to label1 # BB#16: # %verify.exit84 - i32.const $push70=, 0 - i32.add $push59=, $1, $15 - i32.add $push62=, $pop59, $4 - i32.add $push63=, $pop62, $6 - i32.add $push66=, $pop63, $13 - i32.sub $push67=, $pop66, $12 - i32.add $push69=, $pop67, $10 - i32.store $12=, k($pop70), $pop69 - i32.const $push123=, 0 - i32.add $push60=, $2, $0 - i32.add $push61=, $pop60, $5 - i32.add $push64=, $pop61, $7 - i32.add $push65=, $pop64, $17 - i32.sub $push68=, $pop65, $16 - i32.add $push58=, $pop68, $11 - i32.store $16=, k+4($pop123), $pop58 - i32.const $push122=, 0 - i32.store $discard=, res($pop122), $12 - i32.const $push121=, 0 - i32.store $discard=, res+4($pop121), $16 - i32.const $push71=, 1675 - i32.ne $push72=, $12, $pop71 - br_if 0, $pop72 # 0: down to label1 + i32.const $push71=, 0 + i32.add $push60=, $1, $15 + i32.add $push63=, $pop60, $5 + i32.add $push64=, $pop63, $7 + i32.add $push67=, $pop64, $14 + i32.sub $push68=, $pop67, $13 + i32.add $push70=, $pop68, $11 + i32.store $13=, k($pop71), $pop70 + i32.const $push131=, 0 + i32.add $push61=, $2, $0 + i32.add $push62=, $pop61, $6 + i32.add $push65=, $pop62, $8 + i32.add $push66=, $pop65, $17 + i32.sub $push69=, $pop66, $16 + i32.add $push59=, $pop69, $12 + i32.store $16=, k+4($pop131), $pop59 + i32.const $push130=, 0 + i32.store $discard=, res($pop130), $13 + i32.const $push129=, 0 + i32.store $discard=, res+4($pop129), $16 + i32.const $push72=, 1675 + i32.ne $push73=, $13, $pop72 + br_if 0, $pop73 # 0: down to label1 # BB#17: # %verify.exit84 - i32.const $push73=, 1430 - i32.ne $push74=, $16, $pop73 - br_if 0, $pop74 # 0: down to label1 + i32.const $push74=, 1430 + i32.ne $push75=, $16, $pop74 + br_if 0, $pop75 # 0: down to label1 # BB#18: # %verify.exit90 - i32.const $push87=, 0 - i32.mul $push76=, $1, $15 - i32.mul $push79=, $pop76, $4 - i32.mul $push80=, $pop79, $6 - i32.mul $push83=, $pop80, $13 - i32.mul $push84=, $pop83, $8 - i32.mul $push86=, $pop84, $10 - i32.store $12=, k($pop87), $pop86 - i32.const $push126=, 0 - i32.mul $push77=, $2, $0 - i32.mul $push78=, $pop77, $5 - i32.mul $push81=, $pop78, $7 - i32.mul $push82=, $pop81, $17 - i32.mul $push85=, $pop82, $9 - i32.mul $push75=, $pop85, $11 - i32.store $16=, k+4($pop126), $pop75 - i32.const $push125=, 0 - i32.store $discard=, res($pop125), $12 - i32.const $push124=, 0 - i32.store $discard=, res+4($pop124), $16 - i32.const $push88=, 1456467968 - i32.ne $push89=, $12, $pop88 - br_if 0, $pop89 # 0: down to label1 + i32.const $push88=, 0 + i32.mul $push77=, $1, $15 + i32.mul $push80=, $pop77, $5 + i32.mul $push81=, $pop80, $7 + i32.mul $push84=, $pop81, $14 + i32.mul $push85=, $pop84, $9 + i32.mul $push87=, $pop85, $11 + i32.store $13=, k($pop88), $pop87 + i32.const $push134=, 0 + i32.mul $push78=, $2, $0 + i32.mul $push79=, $pop78, $6 + i32.mul $push82=, $pop79, $8 + i32.mul $push83=, $pop82, $17 + i32.mul $push86=, $pop83, $10 + i32.mul $push76=, $pop86, $12 + i32.store $16=, k+4($pop134), $pop76 + i32.const $push133=, 0 + i32.store $discard=, res($pop133), $13 + i32.const $push132=, 0 + i32.store $discard=, res+4($pop132), $16 + i32.const $push89=, 1456467968 + i32.ne $push90=, $13, $pop89 + br_if 0, $pop90 # 0: down to label1 # BB#19: # %verify.exit90 - i32.const $push90=, -1579586240 - i32.ne $push91=, $16, $pop90 - br_if 0, $pop91 # 0: down to label1 + i32.const $push91=, -1579586240 + i32.ne $push92=, $16, $pop91 + br_if 0, $pop92 # 0: down to label1 # BB#20: # %verify.exit96 - i32.div_s $12=, $0, $2 - i32.div_s $push92=, $15, $1 - i32.div_s $16=, $pop92, $3 - i32.div_s $push93=, $12, $14 - i32.div_s $12=, $pop93, $5 - i32.div_s $push94=, $16, $4 - i32.div_s $16=, $pop94, $6 - i32.div_s $push95=, $12, $7 - i32.div_s $12=, $pop95, $17 - i32.div_s $push96=, $16, $13 - i32.div_s $13=, $pop96, $8 - i32.div_s $push97=, $12, $9 - i32.div_s $12=, $pop97, $11 - i32.const $push130=, 0 - i32.div_s $push98=, $13, $10 - i32.store $13=, k($pop130), $pop98 - i32.const $push129=, 0 - i32.store $discard=, k+4($pop129), $12 - i32.const $push128=, 0 - i32.store $push0=, res($pop128), $13 - i32.const $push127=, 0 - i32.store $push1=, res+4($pop127), $12 - i32.or $push99=, $pop0, $pop1 - br_if 0, $pop99 # 0: down to label1 + i32.const $push138=, 0 + i32.div_s $push94=, $15, $1 + i32.div_s $push95=, $pop94, $3 + i32.div_s $push98=, $pop95, $5 + i32.div_s $push99=, $pop98, $7 + i32.div_s $push102=, $pop99, $14 + i32.div_s $push103=, $pop102, $9 + i32.div_s $push106=, $pop103, $11 + i32.store $13=, k($pop138), $pop106 + i32.const $push137=, 0 + i32.div_s $push93=, $0, $2 + i32.div_s $push96=, $pop93, $4 + i32.div_s $push97=, $pop96, $6 + i32.div_s $push100=, $pop97, $8 + i32.div_s $push101=, $pop100, $17 + i32.div_s $push104=, $pop101, $10 + i32.div_s $push105=, $pop104, $12 + i32.store $14=, k+4($pop137), $pop105 + i32.const $push136=, 0 + i32.store $push0=, res($pop136), $13 + i32.const $push135=, 0 + i32.store $push1=, res+4($pop135), $14 + i32.or $push107=, $pop0, $pop1 + br_if 0, $pop107 # 0: down to label1 # BB#21: # %verify.exit102 - i32.const $push131=, 0 - call exit@FUNCTION, $pop131 + i32.const $push139=, 0 + call exit@FUNCTION, $pop139 unreachable .LBB1_22: # %if.then.i101 end_block # label1: diff --git a/test/torture-s/pr24141.c.s b/test/torture-s/pr24141.c.s index 1352a47b8..01430e0b4 100644 --- a/test/torture-s/pr24141.c.s +++ b/test/torture-s/pr24141.c.s @@ -22,9 +22,8 @@ f: # @f .param i32, i32 # BB#0: # %entry block - i32.const $push2=, 0 - i32.eq $push3=, $0, $pop2 - br_if 0, $pop3 # 0: down to label0 + i32.eqz $push2=, $0 + br_if 0, $pop2 # 0: down to label0 # BB#1: # %entry br_if 0, $1 # 0: down to label0 # BB#2: # %if.then10 diff --git a/test/torture-s/pr24716.c.s b/test/torture-s/pr24716.c.s index ecdac0638..dcae23aed 100644 --- a/test/torture-s/pr24716.c.s +++ b/test/torture-s/pr24716.c.s @@ -74,9 +74,8 @@ f: # @f # => This Inner Loop Header: Depth=3 loop # label9: block - i32.const $push25=, 0 - i32.eq $push26=, $4, $pop25 - br_if 0, $pop26 # 0: down to label11 + i32.eqz $push25=, $4 + br_if 0, $pop25 # 0: down to label11 # BB#10: # %if.then13 # in Loop: Header=BB0_9 Depth=3 i32.const $push13=, 0 @@ -214,9 +213,8 @@ main: # @main # => This Inner Loop Header: Depth=2 loop # label25: block - i32.const $push20=, 0 - i32.eq $push21=, $3, $pop20 - br_if 0, $pop21 # 0: down to label27 + i32.eqz $push20=, $3 + br_if 0, $pop20 # 0: down to label27 # BB#9: # %if.then13.i # in Loop: Header=BB1_8 Depth=2 i32.const $push16=, 0 @@ -226,9 +224,8 @@ main: # @main # in Loop: Header=BB1_8 Depth=2 end_block # label27: i32.const $3=, 0 - i32.const $push22=, 0 - i32.eq $push23=, $2, $pop22 - br_if 0, $pop23 # 0: up to label25 + i32.eqz $push21=, $2 + br_if 0, $pop21 # 0: up to label25 .LBB1_11: # %do.cond33.i # Parent Loop BB1_1 Depth=1 # => This Inner Loop Header: Depth=2 @@ -246,9 +243,8 @@ main: # @main end_loop # label29: end_block # label19: block - i32.const $push24=, 0 - i32.eq $push25=, $0, $pop24 - br_if 0, $pop25 # 0: down to label30 + i32.eqz $push22=, $0 + br_if 0, $pop22 # 0: down to label30 # BB#13: # %if.end i32.const $push2=, 0 return $pop2 diff --git a/test/torture-s/pr27073.c.s b/test/torture-s/pr27073.c.s index 9deb3c3f5..a27346740 100644 --- a/test/torture-s/pr27073.c.s +++ b/test/torture-s/pr27073.c.s @@ -10,9 +10,8 @@ foo: # @foo block i32.const $push0=, 65535 i32.and $push1=, $4, $pop0 - i32.const $push13=, 0 - i32.eq $push14=, $pop1, $pop13 - br_if 0, $pop14 # 0: down to label0 + i32.eqz $push13=, $pop1 + br_if 0, $pop13 # 0: down to label0 # BB#1: # %while.body.preheader i32.const $push2=, 0 i32.sub $4=, $pop2, $4 diff --git a/test/torture-s/pr27260.c.s b/test/torture-s/pr27260.c.s index 2ef01d885..ef1b444d9 100644 --- a/test/torture-s/pr27260.c.s +++ b/test/torture-s/pr27260.c.s @@ -87,9 +87,8 @@ main: # @main i32.load8_u $0=, buf($1) i32.const $push20=, 1 i32.add $1=, $1, $pop20 - i32.const $push21=, 0 - i32.eq $push22=, $0, $pop21 - br_if 0, $pop22 # 0: up to label7 + i32.eqz $push21=, $0 + br_if 0, $pop21 # 0: up to label7 # BB#10: # %if.then24 end_loop # label8: call abort@FUNCTION diff --git a/test/torture-s/pr27285.c.s b/test/torture-s/pr27285.c.s index 00026fe56..ffa6dd214 100644 --- a/test/torture-s/pr27285.c.s +++ b/test/torture-s/pr27285.c.s @@ -11,9 +11,8 @@ foo: # @foo block i32.load8_u $push8=, 1($0) tee_local $push7=, $2=, $pop8 - i32.const $push22=, 0 - i32.eq $push23=, $pop7, $pop22 - br_if 0, $pop23 # 0: down to label0 + i32.eqz $push22=, $pop7 + br_if 0, $pop22 # 0: down to label0 # BB#1: # %while.body.preheader i32.const $push0=, 3 i32.add $0=, $0, $pop0 diff --git a/test/torture-s/pr28651.c.s b/test/torture-s/pr28651.c.s index 4b738b2c7..c3f92c6d4 100644 --- a/test/torture-s/pr28651.c.s +++ b/test/torture-s/pr28651.c.s @@ -26,9 +26,8 @@ main: # @main block i32.const $push0=, 2147483647 i32.call $push1=, foo@FUNCTION, $pop0 - i32.const $push3=, 0 - i32.eq $push4=, $pop1, $pop3 - br_if 0, $pop4 # 0: down to label0 + i32.eqz $push3=, $pop1 + br_if 0, $pop3 # 0: down to label0 # BB#1: # %if.end i32.const $push2=, 0 return $pop2 diff --git a/test/torture-s/pr28982a.c.s b/test/torture-s/pr28982a.c.s index 74d25e96f..6e69bf216 100644 --- a/test/torture-s/pr28982a.c.s +++ b/test/torture-s/pr28982a.c.s @@ -29,9 +29,8 @@ foo: # @foo f32.const $59=, 0x0p0 f32.const $60=, 0x0p0 block - i32.const $push151=, 0 - i32.eq $push152=, $0, $pop151 - br_if 0, $pop152 # 0: down to label0 + i32.eqz $push151=, $0 + br_if 0, $pop151 # 0: down to label0 # BB#1: # %while.body.preheader i32.const $push129=, 0 i64.load $push128=, incs+72($pop129) diff --git a/test/torture-s/pr28982b.c.s b/test/torture-s/pr28982b.c.s index 30e6906a5..a6fc8ab38 100644 --- a/test/torture-s/pr28982b.c.s +++ b/test/torture-s/pr28982b.c.s @@ -59,9 +59,8 @@ foo: # @foo f32.const $59=, 0x0p0 f32.const $60=, 0x0p0 block - i32.const $push170=, 0 - i32.eq $push171=, $0, $pop170 - br_if 0, $pop171 # 0: down to label0 + i32.eqz $push170=, $0 + br_if 0, $pop170 # 0: down to label0 # BB#1: # %while.body.preheader i32.const $push145=, 0 i64.load $push144=, incs+72($pop145) diff --git a/test/torture-s/pr29695-2.c.s b/test/torture-s/pr29695-2.c.s index 7cd251613..8eee3aee1 100644 --- a/test/torture-s/pr29695-2.c.s +++ b/test/torture-s/pr29695-2.c.s @@ -158,9 +158,8 @@ main: # @main i32.load8_u $push0=, a($pop10) i32.const $push1=, 7 i32.shr_u $push2=, $pop0, $pop1 - i32.const $push17=, 0 - i32.eq $push18=, $pop2, $pop17 - br_if 0, $pop18 # 0: down to label0 + i32.eqz $push17=, $pop2 + br_if 0, $pop17 # 0: down to label0 # BB#1: # %if.end i32.const $push12=, 0 i32.load8_s $push3=, b($pop12) diff --git a/test/torture-s/pr33870-1.c.s b/test/torture-s/pr33870-1.c.s index d3e28cf34..4ad495c58 100644 --- a/test/torture-s/pr33870-1.c.s +++ b/test/torture-s/pr33870-1.c.s @@ -9,41 +9,40 @@ sort_pagelist: # @sort_pagelist .result i32 .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push50=, __stack_pointer - i32.const $push47=, __stack_pointer - i32.load $push48=, 0($pop47) - i32.const $push49=, 160 - i32.sub $push68=, $pop48, $pop49 - i32.store $push0=, 0($pop50), $pop68 - i32.const $push69=, 0 + i32.const $push51=, __stack_pointer + i32.const $push48=, __stack_pointer + i32.load $push49=, 0($pop48) + i32.const $push50=, 160 + i32.sub $push69=, $pop49, $pop50 + i32.store $push0=, 0($pop51), $pop69 + i32.const $push70=, 0 i32.const $push1=, 100 - i32.call $1=, memset@FUNCTION, $pop0, $pop69, $pop1 + i32.call $1=, memset@FUNCTION, $pop0, $pop70, $pop1 i32.const $9=, 0 block - i32.const $push128=, 0 - i32.eq $push129=, $0, $pop128 + i32.eqz $push129=, $0 br_if 0, $pop129 # 0: down to label0 # BB#1: # %while.body.lr.ph i32.const $push15=, 96 i32.add $5=, $1, $pop15 - i32.const $push60=, 112 - i32.add $push61=, $1, $pop60 - i32.const $push70=, 32 - i32.add $4=, $pop61, $pop70 + i32.const $push61=, 112 + i32.add $push62=, $1, $pop61 + i32.const $push71=, 32 + i32.add $4=, $pop62, $pop71 .LBB0_2: # %while.body # =>This Loop Header: Depth=1 # Child Loop BB0_3 Depth 2 # Child Loop BB0_6 Depth 3 # Child Loop BB0_22 Depth 2 loop # label1: - copy_local $push76=, $0 - tee_local $push75=, $10=, $pop76 - i32.const $push74=, 32 - i32.add $push73=, $pop75, $pop74 - tee_local $push72=, $11=, $pop73 - i32.load $0=, 0($pop72) - i32.const $push71=, 0 - i32.store $2=, 0($11), $pop71 + copy_local $push77=, $0 + tee_local $push76=, $10=, $pop77 + i32.const $push75=, 32 + i32.add $push74=, $pop76, $pop75 + tee_local $push73=, $11=, $pop74 + i32.load $0=, 0($pop73) + i32.const $push72=, 0 + i32.store $2=, 0($11), $pop72 i32.const $6=, 0 .LBB0_3: # %for.body # Parent Loop BB0_2 Depth=1 @@ -54,29 +53,27 @@ sort_pagelist: # @sort_pagelist block block loop # label7: - i32.const $push81=, 2 - i32.shl $push2=, $6, $pop81 - i32.add $push80=, $1, $pop2 - tee_local $push79=, $12=, $pop80 - i32.load $push78=, 0($pop79) - tee_local $push77=, $11=, $pop78 - i32.const $push130=, 0 - i32.eq $push131=, $pop77, $pop130 - br_if 2, $pop131 # 2: down to label6 + i32.const $push82=, 2 + i32.shl $push2=, $6, $pop82 + i32.add $push81=, $1, $pop2 + tee_local $push80=, $12=, $pop81 + i32.load $push79=, 0($pop80) + tee_local $push78=, $11=, $pop79 + i32.eqz $push130=, $pop78 + br_if 2, $pop130 # 2: down to label6 # BB#4: # %if.else # in Loop: Header=BB0_3 Depth=2 i32.store $3=, xx($2), $4 block block block - i32.const $push132=, 0 - i32.eq $push133=, $10, $pop132 - br_if 0, $pop133 # 0: down to label11 + i32.eqz $push131=, $10 + br_if 0, $pop131 # 0: down to label11 # BB#5: # %while.body.i.preheader # in Loop: Header=BB0_3 Depth=2 - i32.const $push66=, 112 - i32.add $push67=, $1, $pop66 - copy_local $7=, $pop67 + i32.const $push67=, 112 + i32.add $push68=, $1, $pop67 + copy_local $7=, $pop68 .LBB0_6: # %while.body.i # Parent Loop BB0_2 Depth=1 # Parent Loop BB0_3 Depth=2 @@ -90,12 +87,12 @@ sort_pagelist: # @sort_pagelist br_if 0, $pop5 # 0: down to label15 # BB#7: # %if.then.i # in Loop: Header=BB0_6 Depth=3 - i32.const $push85=, 32 - i32.add $push8=, $7, $pop85 - i32.store $push84=, 0($pop8), $11 - tee_local $push83=, $11=, $pop84 - i32.const $push82=, 32 - i32.add $push9=, $pop83, $pop82 + i32.const $push86=, 32 + i32.add $push8=, $7, $pop86 + i32.store $push85=, 0($pop8), $11 + tee_local $push84=, $11=, $pop85 + i32.const $push83=, 32 + i32.add $push9=, $pop84, $pop83 i32.load $9=, 0($pop9) copy_local $8=, $10 copy_local $7=, $11 @@ -103,12 +100,12 @@ sort_pagelist: # @sort_pagelist .LBB0_8: # %if.else.i # in Loop: Header=BB0_6 Depth=3 end_block # label15: - i32.const $push89=, 32 - i32.add $push6=, $7, $pop89 - i32.store $push88=, 0($pop6), $10 - tee_local $push87=, $10=, $pop88 - i32.const $push86=, 32 - i32.add $push7=, $pop87, $pop86 + i32.const $push90=, 32 + i32.add $push6=, $7, $pop90 + i32.store $push89=, 0($pop6), $10 + tee_local $push88=, $10=, $pop89 + i32.const $push87=, 32 + i32.add $push7=, $pop88, $pop87 i32.load $8=, 0($pop7) copy_local $9=, $11 copy_local $7=, $10 @@ -119,9 +116,8 @@ sort_pagelist: # @sort_pagelist i32.load $push11=, 0($pop10) i32.load $push12=, 0($pop11) i32.store $discard=, vx($2), $pop12 - i32.const $push134=, 0 - i32.eq $push135=, $9, $pop134 - br_if 1, $pop135 # 1: down to label13 + i32.eqz $push132=, $9 + br_if 1, $pop132 # 1: down to label13 # BB#10: # %if.end.i # in Loop: Header=BB0_6 Depth=3 copy_local $10=, $8 @@ -130,28 +126,26 @@ sort_pagelist: # @sort_pagelist .LBB0_11: # %while.end.i # in Loop: Header=BB0_3 Depth=2 end_loop # label13: - i32.const $push90=, 32 - i32.add $10=, $7, $pop90 - i32.const $push136=, 0 - i32.eq $push137=, $9, $pop136 - br_if 1, $pop137 # 1: down to label10 + i32.const $push91=, 32 + i32.add $10=, $7, $pop91 + i32.eqz $push133=, $9 + br_if 1, $pop133 # 1: down to label10 # BB#12: # %if.then14.i # in Loop: Header=BB0_3 Depth=2 i32.store $discard=, 0($10), $9 br 2 # 2: down to label9 .LBB0_13: # in Loop: Header=BB0_3 Depth=2 end_block # label11: - copy_local $10=, $11 copy_local $push46=, $3 - i32.store $discard=, 0($pop46), $10 + copy_local $push47=, $11 + i32.store $discard=, 0($pop46), $pop47 br 1 # 1: down to label9 .LBB0_14: # %if.else17.i # in Loop: Header=BB0_3 Depth=2 end_block # label10: block - i32.const $push138=, 0 - i32.eq $push139=, $8, $pop138 - br_if 0, $pop139 # 0: down to label16 + i32.eqz $push134=, $8 + br_if 0, $pop134 # 0: down to label16 # BB#15: # %if.then19.i # in Loop: Header=BB0_3 Depth=2 i32.store $discard=, 0($10), $8 @@ -165,16 +159,16 @@ sort_pagelist: # @sort_pagelist end_block # label9: i32.load $10=, 0($3) i32.store $11=, 0($12), $2 - i32.const $push92=, 1 - i32.add $6=, $6, $pop92 - i32.const $push91=, 24 - i32.lt_s $push13=, $6, $pop91 + i32.const $push93=, 1 + i32.add $6=, $6, $pop93 + i32.const $push92=, 24 + i32.lt_s $push13=, $6, $pop92 br_if 0, $pop13 # 0: up to label7 # BB#18: # %for.end # in Loop: Header=BB0_2 Depth=1 end_loop # label8: - i32.const $push93=, 24 - i32.ne $push14=, $6, $pop93 + i32.const $push94=, 24 + i32.ne $push14=, $6, $pop94 br_if 3, $pop14 # 3: down to label3 # BB#19: # %if.then9 # in Loop: Header=BB0_2 Depth=1 @@ -182,22 +176,20 @@ sort_pagelist: # @sort_pagelist i32.store $12=, xx($11), $3 i32.ne $6=, $2, $11 i32.ne $3=, $10, $11 - i32.const $push62=, 112 - i32.add $push63=, $1, $pop62 - copy_local $7=, $pop63 - i32.const $push140=, 0 - i32.eq $push141=, $10, $pop140 - br_if 1, $pop141 # 1: down to label5 + i32.const $push63=, 112 + i32.add $push64=, $1, $pop63 + copy_local $7=, $pop64 + i32.eqz $push135=, $10 + br_if 1, $pop135 # 1: down to label5 # BB#20: # %if.then9 # in Loop: Header=BB0_2 Depth=1 - i32.const $push142=, 0 - i32.eq $push143=, $2, $pop142 - br_if 1, $pop143 # 1: down to label5 + i32.eqz $push136=, $2 + br_if 1, $pop136 # 1: down to label5 # BB#21: # %while.body.i89.preheader # in Loop: Header=BB0_2 Depth=1 - i32.const $push64=, 112 - i32.add $push65=, $1, $pop64 - copy_local $7=, $pop65 + i32.const $push65=, 112 + i32.add $push66=, $1, $pop65 + copy_local $7=, $pop66 .LBB0_22: # %while.body.i89 # Parent Loop BB0_2 Depth=1 # => This Inner Loop Header: Depth=2 @@ -210,12 +202,12 @@ sort_pagelist: # @sort_pagelist br_if 0, $pop18 # 0: down to label20 # BB#23: # %if.then.i91 # in Loop: Header=BB0_22 Depth=2 - i32.const $push97=, 32 - i32.add $push21=, $7, $pop97 - i32.store $push96=, 0($pop21), $2 - tee_local $push95=, $2=, $pop96 - i32.const $push94=, 32 - i32.add $push22=, $pop95, $pop94 + i32.const $push98=, 32 + i32.add $push21=, $7, $pop98 + i32.store $push97=, 0($pop21), $2 + tee_local $push96=, $2=, $pop97 + i32.const $push95=, 32 + i32.add $push22=, $pop96, $pop95 i32.load $9=, 0($pop22) copy_local $8=, $10 copy_local $7=, $2 @@ -223,12 +215,12 @@ sort_pagelist: # @sort_pagelist .LBB0_24: # %if.else.i93 # in Loop: Header=BB0_22 Depth=2 end_block # label20: - i32.const $push101=, 32 - i32.add $push19=, $7, $pop101 - i32.store $push100=, 0($pop19), $10 - tee_local $push99=, $10=, $pop100 - i32.const $push98=, 32 - i32.add $push20=, $pop99, $pop98 + i32.const $push102=, 32 + i32.add $push19=, $7, $pop102 + i32.store $push101=, 0($pop19), $10 + tee_local $push100=, $10=, $pop101 + i32.const $push99=, 32 + i32.add $push20=, $pop100, $pop99 i32.load $8=, 0($pop20) copy_local $9=, $2 copy_local $7=, $10 @@ -241,9 +233,8 @@ sort_pagelist: # @sort_pagelist i32.store $discard=, vx($11), $pop25 i32.ne $6=, $9, $11 i32.ne $3=, $8, $11 - i32.const $push144=, 0 - i32.eq $push145=, $9, $pop144 - br_if 4, $pop145 # 4: down to label4 + i32.eqz $push137=, $9 + br_if 4, $pop137 # 4: down to label4 # BB#26: # %if.end.i100 # in Loop: Header=BB0_22 Depth=2 copy_local $10=, $8 @@ -265,33 +256,31 @@ sort_pagelist: # @sort_pagelist end_block # label4: block block - i32.const $push146=, 0 - i32.eq $push147=, $6, $pop146 - br_if 0, $pop147 # 0: down to label22 + i32.eqz $push138=, $6 + br_if 0, $pop138 # 0: down to label22 # BB#30: # %if.then14.i108 # in Loop: Header=BB0_2 Depth=1 - i32.const $push102=, 32 - i32.add $push28=, $7, $pop102 + i32.const $push103=, 32 + i32.add $push28=, $7, $pop103 i32.store $discard=, 0($pop28), $9 br 1 # 1: down to label21 .LBB0_31: # %if.else17.i109 # in Loop: Header=BB0_2 Depth=1 end_block # label22: block - i32.const $push148=, 0 - i32.eq $push149=, $3, $pop148 - br_if 0, $pop149 # 0: down to label23 + i32.eqz $push139=, $3 + br_if 0, $pop139 # 0: down to label23 # BB#32: # %if.then19.i110 # in Loop: Header=BB0_2 Depth=1 - i32.const $push103=, 32 - i32.add $push27=, $7, $pop103 + i32.const $push104=, 32 + i32.add $push27=, $7, $pop104 i32.store $discard=, 0($pop27), $8 br 1 # 1: down to label21 .LBB0_33: # %if.else22.i111 # in Loop: Header=BB0_2 Depth=1 end_block # label23: - i32.const $push104=, 32 - i32.add $push26=, $7, $pop104 + i32.const $push105=, 32 + i32.add $push26=, $7, $pop105 i32.store $discard=, 0($pop26), $11 .LBB0_34: # %merge_pagelist.exit112 # in Loop: Header=BB0_2 Depth=1 @@ -307,43 +296,41 @@ sort_pagelist: # @sort_pagelist i32.load $9=, 0($1) .LBB0_37: # %while.end end_block # label0: - i32.const $push54=, 112 - i32.add $push55=, $1, $pop54 - i32.const $push105=, 32 - i32.add $4=, $pop55, $pop105 + i32.const $push55=, 112 + i32.add $push56=, $1, $pop55 + i32.const $push106=, 32 + i32.add $4=, $pop56, $pop106 i32.const $3=, 1 .LBB0_38: # %for.body17 # =>This Loop Header: Depth=1 # Child Loop BB0_41 Depth 2 loop # label24: - i32.const $push109=, 2 - i32.shl $push30=, $3, $pop109 + i32.const $push110=, 2 + i32.shl $push30=, $3, $pop110 i32.add $push31=, $1, $pop30 i32.load $8=, 0($pop31) + i32.const $push109=, 0 + i32.store $12=, xx($pop109), $4 i32.const $push108=, 0 - i32.store $12=, xx($pop108), $4 + i32.ne $7=, $9, $pop108 i32.const $push107=, 0 - i32.ne $7=, $9, $pop107 - i32.const $push106=, 0 - i32.ne $6=, $8, $pop106 - i32.const $push56=, 112 - i32.add $push57=, $1, $pop56 - copy_local $2=, $pop57 + i32.ne $6=, $8, $pop107 + i32.const $push57=, 112 + i32.add $push58=, $1, $pop57 + copy_local $2=, $pop58 block block - i32.const $push150=, 0 - i32.eq $push151=, $9, $pop150 - br_if 0, $pop151 # 0: down to label27 + i32.eqz $push140=, $9 + br_if 0, $pop140 # 0: down to label27 # BB#39: # %for.body17 # in Loop: Header=BB0_38 Depth=1 - i32.const $push152=, 0 - i32.eq $push153=, $8, $pop152 - br_if 0, $pop153 # 0: down to label27 + i32.eqz $push141=, $8 + br_if 0, $pop141 # 0: down to label27 # BB#40: # %while.body.i54.preheader # in Loop: Header=BB0_38 Depth=1 - i32.const $push58=, 112 - i32.add $push59=, $1, $pop58 - copy_local $2=, $pop59 + i32.const $push59=, 112 + i32.add $push60=, $1, $pop59 + copy_local $2=, $pop60 .LBB0_41: # %while.body.i54 # Parent Loop BB0_38 Depth=1 # => This Inner Loop Header: Depth=2 @@ -356,12 +343,12 @@ sort_pagelist: # @sort_pagelist br_if 0, $pop34 # 0: down to label31 # BB#42: # %if.then.i56 # in Loop: Header=BB0_41 Depth=2 - i32.const $push113=, 32 - i32.add $push37=, $2, $pop113 - i32.store $push112=, 0($pop37), $9 - tee_local $push111=, $9=, $pop112 - i32.const $push110=, 32 - i32.add $push38=, $pop111, $pop110 + i32.const $push114=, 32 + i32.add $push37=, $2, $pop114 + i32.store $push113=, 0($pop37), $9 + tee_local $push112=, $9=, $pop113 + i32.const $push111=, 32 + i32.add $push38=, $pop112, $pop111 i32.load $10=, 0($pop38) copy_local $11=, $8 copy_local $2=, $9 @@ -369,31 +356,30 @@ sort_pagelist: # @sort_pagelist .LBB0_43: # %if.else.i58 # in Loop: Header=BB0_41 Depth=2 end_block # label31: - i32.const $push117=, 32 - i32.add $push35=, $2, $pop117 - i32.store $push116=, 0($pop35), $8 - tee_local $push115=, $8=, $pop116 - i32.const $push114=, 32 - i32.add $push36=, $pop115, $pop114 + i32.const $push118=, 32 + i32.add $push35=, $2, $pop118 + i32.store $push117=, 0($pop35), $8 + tee_local $push116=, $8=, $pop117 + i32.const $push115=, 32 + i32.add $push36=, $pop116, $pop115 i32.load $11=, 0($pop36) copy_local $10=, $9 copy_local $2=, $8 .LBB0_44: # %if.end.i65 # in Loop: Header=BB0_41 Depth=2 end_block # label30: + i32.const $push122=, 0 i32.const $push121=, 0 - i32.const $push120=, 0 - i32.load $push39=, xx($pop120) + i32.load $push39=, xx($pop121) i32.load $push40=, 0($pop39) i32.load $push41=, 0($pop40) - i32.store $discard=, vx($pop121), $pop41 + i32.store $discard=, vx($pop122), $pop41 + i32.const $push120=, 0 + i32.ne $7=, $10, $pop120 i32.const $push119=, 0 - i32.ne $7=, $10, $pop119 - i32.const $push118=, 0 - i32.ne $6=, $11, $pop118 - i32.const $push154=, 0 - i32.eq $push155=, $10, $pop154 - br_if 3, $pop155 # 3: down to label26 + i32.ne $6=, $11, $pop119 + i32.eqz $push142=, $10 + br_if 3, $pop142 # 3: down to label26 # BB#45: # %if.end.i65 # in Loop: Header=BB0_41 Depth=2 copy_local $8=, $11 @@ -410,50 +396,48 @@ sort_pagelist: # @sort_pagelist end_block # label26: block block - i32.const $push156=, 0 - i32.eq $push157=, $7, $pop156 - br_if 0, $pop157 # 0: down to label33 + i32.eqz $push143=, $7 + br_if 0, $pop143 # 0: down to label33 # BB#48: # %if.then14.i73 # in Loop: Header=BB0_38 Depth=1 - i32.const $push122=, 32 - i32.add $push44=, $2, $pop122 + i32.const $push123=, 32 + i32.add $push44=, $2, $pop123 i32.store $discard=, 0($pop44), $10 br 1 # 1: down to label32 .LBB0_49: # %if.else17.i74 # in Loop: Header=BB0_38 Depth=1 end_block # label33: block - i32.const $push158=, 0 - i32.eq $push159=, $6, $pop158 - br_if 0, $pop159 # 0: down to label34 + i32.eqz $push144=, $6 + br_if 0, $pop144 # 0: down to label34 # BB#50: # %if.then19.i75 # in Loop: Header=BB0_38 Depth=1 - i32.const $push123=, 32 - i32.add $push43=, $2, $pop123 + i32.const $push124=, 32 + i32.add $push43=, $2, $pop124 i32.store $discard=, 0($pop43), $11 br 1 # 1: down to label32 .LBB0_51: # %if.else22.i76 # in Loop: Header=BB0_38 Depth=1 end_block # label34: - i32.const $push125=, 32 - i32.add $push42=, $2, $pop125 - i32.const $push124=, 0 - i32.store $discard=, 0($pop42), $pop124 + i32.const $push126=, 32 + i32.add $push42=, $2, $pop126 + i32.const $push125=, 0 + i32.store $discard=, 0($pop42), $pop125 .LBB0_52: # %merge_pagelist.exit77 # in Loop: Header=BB0_38 Depth=1 end_block # label32: i32.load $9=, 0($12) - i32.const $push127=, 1 - i32.add $3=, $3, $pop127 - i32.const $push126=, 25 - i32.ne $push45=, $3, $pop126 + i32.const $push128=, 1 + i32.add $3=, $3, $pop128 + i32.const $push127=, 25 + i32.ne $push45=, $3, $pop127 br_if 0, $pop45 # 0: up to label24 # BB#53: # %for.end22 end_loop # label25: - i32.const $push53=, __stack_pointer - i32.const $push51=, 160 - i32.add $push52=, $1, $pop51 - i32.store $discard=, 0($pop53), $pop52 + i32.const $push54=, __stack_pointer + i32.const $push52=, 160 + i32.add $push53=, $1, $pop52 + i32.store $discard=, 0($pop54), $pop53 return $9 .endfunc .Lfunc_end0: diff --git a/test/torture-s/pr33870.c.s b/test/torture-s/pr33870.c.s index 87fc8a3f3..697889c80 100644 --- a/test/torture-s/pr33870.c.s +++ b/test/torture-s/pr33870.c.s @@ -9,27 +9,26 @@ sort_pagelist: # @sort_pagelist .result i32 .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push33=, __stack_pointer - i32.const $push30=, __stack_pointer - i32.load $push31=, 0($pop30) - i32.const $push32=, 144 - i32.sub $push53=, $pop31, $pop32 - i32.store $push0=, 0($pop33), $pop53 - i32.const $push54=, 0 + i32.const $push34=, __stack_pointer + i32.const $push31=, __stack_pointer + i32.load $push32=, 0($pop31) + i32.const $push33=, 144 + i32.sub $push54=, $pop32, $pop33 + i32.store $push0=, 0($pop34), $pop54 + i32.const $push55=, 0 i32.const $push1=, 100 - i32.call $1=, memset@FUNCTION, $pop0, $pop54, $pop1 + i32.call $1=, memset@FUNCTION, $pop0, $pop55, $pop1 i32.const $10=, 0 block - i32.const $push129=, 0 - i32.eq $push130=, $0, $pop129 + i32.eqz $push130=, $0 br_if 0, $pop130 # 0: down to label0 # BB#1: # %while.body.lr.ph i32.const $push9=, 96 i32.add $5=, $1, $pop9 - i32.const $push43=, 104 - i32.add $push44=, $1, $pop43 - i32.const $push55=, 28 - i32.add $3=, $pop44, $pop55 + i32.const $push44=, 104 + i32.add $push45=, $1, $pop44 + i32.const $push56=, 28 + i32.add $3=, $pop45, $pop56 .LBB0_2: # %while.body # =>This Loop Header: Depth=1 # Child Loop BB0_3 Depth 2 @@ -38,11 +37,11 @@ sort_pagelist: # @sort_pagelist # Child Loop BB0_23 Depth 2 # Child Loop BB0_24 Depth 3 loop # label1: - copy_local $push58=, $0 - tee_local $push57=, $11=, $pop58 - i32.load $0=, 28($pop57) - i32.const $push56=, 0 - i32.store $2=, 28($11), $pop56 + copy_local $push59=, $0 + tee_local $push58=, $11=, $pop59 + i32.load $0=, 28($pop58) + i32.const $push57=, 0 + i32.store $2=, 28($11), $pop57 i32.const $6=, 0 .LBB0_3: # %for.body # Parent Loop BB0_2 Depth=1 @@ -55,27 +54,25 @@ sort_pagelist: # @sort_pagelist block block loop # label8: - i32.const $push63=, 2 - i32.shl $push2=, $6, $pop63 - i32.add $push62=, $1, $pop2 - tee_local $push61=, $8=, $pop62 - i32.load $push60=, 0($pop61) - tee_local $push59=, $10=, $pop60 - i32.const $push131=, 0 - i32.eq $push132=, $pop59, $pop131 - br_if 2, $pop132 # 2: down to label7 + i32.const $push64=, 2 + i32.shl $push2=, $6, $pop64 + i32.add $push63=, $1, $pop2 + tee_local $push62=, $8=, $pop63 + i32.load $push61=, 0($pop62) + tee_local $push60=, $10=, $pop61 + i32.eqz $push131=, $pop60 + br_if 2, $pop131 # 2: down to label7 # BB#4: # %if.else # in Loop: Header=BB0_3 Depth=2 block block - i32.const $push133=, 0 - i32.eq $push134=, $11, $pop133 - br_if 0, $pop134 # 0: down to label11 + i32.eqz $push132=, $11 + br_if 0, $pop132 # 0: down to label11 # BB#5: # %while.body.lr.ph.i.preheader # in Loop: Header=BB0_3 Depth=2 - i32.const $push51=, 104 - i32.add $push52=, $1, $pop51 - copy_local $7=, $pop52 + i32.const $push52=, 104 + i32.add $push53=, $1, $pop52 + copy_local $7=, $pop53 .LBB0_6: # %while.body.lr.ph.i # Parent Loop BB0_2 Depth=1 # Parent Loop BB0_3 Depth=2 @@ -83,9 +80,9 @@ sort_pagelist: # @sort_pagelist # Child Loop BB0_7 Depth 4 block loop # label13: - copy_local $push65=, $10 - tee_local $push64=, $9=, $pop65 - i32.load $4=, 0($pop64) + copy_local $push66=, $10 + tee_local $push65=, $9=, $pop66 + i32.load $4=, 0($pop65) copy_local $11=, $11 .LBB0_7: # %while.body.i # Parent Loop BB0_2 Depth=1 @@ -93,33 +90,32 @@ sort_pagelist: # @sort_pagelist # Parent Loop BB0_6 Depth=3 # => This Inner Loop Header: Depth=4 loop # label15: - copy_local $push67=, $11 - tee_local $push66=, $11=, $pop67 - i32.load $push3=, 0($pop66) + copy_local $push68=, $11 + tee_local $push67=, $11=, $pop68 + i32.load $push3=, 0($pop67) i32.lt_u $push4=, $4, $pop3 br_if 1, $pop4 # 1: down to label16 # BB#8: # %if.else.i # in Loop: Header=BB0_7 Depth=4 - i32.const $push72=, 28 - i32.add $push5=, $7, $pop72 - i32.store $push71=, 0($pop5), $11 - tee_local $push70=, $10=, $pop71 - copy_local $7=, $pop70 - i32.load $push69=, 28($10) - tee_local $push68=, $11=, $pop69 - br_if 0, $pop68 # 0: up to label15 + i32.const $push73=, 28 + i32.add $push5=, $7, $pop73 + i32.store $push72=, 0($pop5), $11 + tee_local $push71=, $10=, $pop72 + copy_local $7=, $pop71 + i32.load $push70=, 28($10) + tee_local $push69=, $11=, $pop70 + br_if 0, $pop69 # 0: up to label15 br 4 # 4: down to label12 .LBB0_9: # %if.then.i # in Loop: Header=BB0_6 Depth=3 end_loop # label16: - i32.const $push75=, 28 - i32.add $push6=, $7, $pop75 - i32.store $push74=, 0($pop6), $9 - tee_local $push73=, $4=, $pop74 - i32.load $10=, 28($pop73) - i32.const $push135=, 0 - i32.eq $push136=, $11, $pop135 - br_if 1, $pop136 # 1: down to label14 + i32.const $push76=, 28 + i32.add $push6=, $7, $pop76 + i32.store $push75=, 0($pop6), $9 + tee_local $push74=, $4=, $pop75 + i32.load $10=, 28($pop74) + i32.eqz $push133=, $11 + br_if 1, $pop133 # 1: down to label14 # BB#10: # %if.then.i # in Loop: Header=BB0_6 Depth=3 copy_local $7=, $4 @@ -127,16 +123,15 @@ sort_pagelist: # @sort_pagelist .LBB0_11: # %while.end.i # in Loop: Header=BB0_3 Depth=2 end_loop # label14: - i32.const $push76=, 28 - i32.add $7=, $4, $pop76 + i32.const $push77=, 28 + i32.add $7=, $4, $pop77 block br_if 0, $10 # 0: down to label17 # BB#12: # %if.else9.i # in Loop: Header=BB0_3 Depth=2 block - i32.const $push137=, 0 - i32.eq $push138=, $11, $pop137 - br_if 0, $pop138 # 0: down to label18 + i32.eqz $push134=, $11 + br_if 0, $pop134 # 0: down to label18 # BB#13: # %if.then11.i # in Loop: Header=BB0_3 Depth=2 i32.store $discard=, 0($7), $11 @@ -153,103 +148,100 @@ sort_pagelist: # @sort_pagelist br 2 # 2: down to label10 .LBB0_16: # in Loop: Header=BB0_3 Depth=2 end_block # label12: - i32.const $push77=, 28 - i32.add $push24=, $10, $pop77 + i32.const $push78=, 28 + i32.add $push24=, $10, $pop78 i32.store $discard=, 0($pop24), $9 br 1 # 1: down to label10 .LBB0_17: # in Loop: Header=BB0_3 Depth=2 end_block # label11: - copy_local $11=, $10 copy_local $push23=, $3 - i32.store $discard=, 0($pop23), $11 + copy_local $push26=, $10 + i32.store $discard=, 0($pop23), $pop26 .LBB0_18: # %merge_pagelist.exit # in Loop: Header=BB0_3 Depth=2 end_block # label10: - i32.const $push45=, 104 - i32.add $push46=, $1, $pop45 - i32.const $push82=, 28 - i32.add $push81=, $pop46, $pop82 - tee_local $push80=, $10=, $pop81 - i32.load $11=, 0($pop80) + i32.const $push46=, 104 + i32.add $push47=, $1, $pop46 + i32.const $push83=, 28 + i32.add $push82=, $pop47, $pop83 + tee_local $push81=, $10=, $pop82 + i32.load $11=, 0($pop81) i32.store $7=, 0($8), $2 - i32.const $push79=, 1 - i32.add $6=, $6, $pop79 - i32.const $push78=, 24 - i32.lt_s $push7=, $6, $pop78 + i32.const $push80=, 1 + i32.add $6=, $6, $pop80 + i32.const $push79=, 24 + i32.lt_s $push7=, $6, $pop79 br_if 0, $pop7 # 0: up to label8 # BB#19: # %for.end # in Loop: Header=BB0_2 Depth=1 end_loop # label9: - i32.const $push83=, 24 - i32.ne $push8=, $6, $pop83 + i32.const $push84=, 24 + i32.ne $push8=, $6, $pop84 br_if 4, $pop8 # 4: down to label3 # BB#20: # %if.then7 # in Loop: Header=BB0_2 Depth=1 - i32.load $push85=, 0($5) - tee_local $push84=, $6=, $pop85 - i32.ne $9=, $pop84, $7 + i32.load $push86=, 0($5) + tee_local $push85=, $6=, $pop86 + i32.ne $9=, $pop85, $7 i32.ne $2=, $11, $7 - i32.const $push47=, 104 - i32.add $push48=, $1, $pop47 - copy_local $8=, $pop48 + i32.const $push48=, 104 + i32.add $push49=, $1, $pop48 + copy_local $8=, $pop49 block - i32.const $push139=, 0 - i32.eq $push140=, $11, $pop139 - br_if 0, $pop140 # 0: down to label19 + i32.eqz $push135=, $11 + br_if 0, $pop135 # 0: down to label19 # BB#21: # %if.then7 # in Loop: Header=BB0_2 Depth=1 - i32.const $push141=, 0 - i32.eq $push142=, $6, $pop141 - br_if 0, $pop142 # 0: down to label19 + i32.eqz $push136=, $6 + br_if 0, $pop136 # 0: down to label19 # BB#22: # %while.body.lr.ph.i85.preheader # in Loop: Header=BB0_2 Depth=1 - i32.const $push49=, 104 - i32.add $push50=, $1, $pop49 - copy_local $4=, $pop50 + i32.const $push50=, 104 + i32.add $push51=, $1, $pop50 + copy_local $4=, $pop51 .LBB0_23: # %while.body.lr.ph.i85 # Parent Loop BB0_2 Depth=1 # => This Loop Header: Depth=2 # Child Loop BB0_24 Depth 3 loop # label20: - copy_local $push87=, $6 - tee_local $push86=, $8=, $pop87 - i32.load $9=, 0($pop86) + copy_local $push88=, $6 + tee_local $push87=, $8=, $pop88 + i32.load $9=, 0($pop87) copy_local $11=, $11 .LBB0_24: # %while.body.i91 # Parent Loop BB0_2 Depth=1 # Parent Loop BB0_23 Depth=2 # => This Inner Loop Header: Depth=3 loop # label22: - copy_local $push89=, $11 - tee_local $push88=, $11=, $pop89 - i32.load $push10=, 0($pop88) + copy_local $push90=, $11 + tee_local $push89=, $11=, $pop90 + i32.load $push10=, 0($pop89) i32.lt_u $push11=, $9, $pop10 br_if 1, $pop11 # 1: down to label23 # BB#25: # %if.else.i98 # in Loop: Header=BB0_24 Depth=3 - i32.const $push94=, 28 - i32.add $push12=, $4, $pop94 - i32.store $push93=, 0($pop12), $11 - tee_local $push92=, $6=, $pop93 - copy_local $4=, $pop92 - i32.load $push91=, 28($6) - tee_local $push90=, $11=, $pop91 - br_if 0, $pop90 # 0: up to label22 + i32.const $push95=, 28 + i32.add $push12=, $4, $pop95 + i32.store $push94=, 0($pop12), $11 + tee_local $push93=, $6=, $pop94 + copy_local $4=, $pop93 + i32.load $push92=, 28($6) + tee_local $push91=, $11=, $pop92 + br_if 0, $pop91 # 0: up to label22 br 6 # 6: down to label6 .LBB0_26: # %if.then.i95 # in Loop: Header=BB0_23 Depth=2 end_loop # label23: - i32.const $push99=, 28 - i32.add $push13=, $4, $pop99 - i32.store $push98=, 0($pop13), $8 - tee_local $push97=, $4=, $pop98 - i32.load $push96=, 28($pop97) - tee_local $push95=, $6=, $pop96 - i32.ne $9=, $pop95, $7 + i32.const $push100=, 28 + i32.add $push13=, $4, $pop100 + i32.store $push99=, 0($pop13), $8 + tee_local $push98=, $4=, $pop99 + i32.load $push97=, 28($pop98) + tee_local $push96=, $6=, $pop97 + i32.ne $9=, $pop96, $7 i32.ne $2=, $11, $7 - i32.const $push143=, 0 - i32.eq $push144=, $11, $pop143 - br_if 1, $pop144 # 1: down to label21 + i32.eqz $push137=, $11 + br_if 1, $pop137 # 1: down to label21 # BB#27: # %if.then.i95 # in Loop: Header=BB0_23 Depth=2 copy_local $4=, $4 @@ -258,14 +250,13 @@ sort_pagelist: # @sort_pagelist # in Loop: Header=BB0_2 Depth=1 end_loop # label21: end_block # label19: - i32.const $push100=, 28 - i32.add $4=, $8, $pop100 - i32.const $push145=, 0 - i32.eq $push146=, $9, $pop145 - br_if 2, $pop146 # 2: down to label5 + i32.const $push101=, 28 + i32.add $4=, $8, $pop101 + i32.eqz $push138=, $9 + br_if 2, $pop138 # 2: down to label5 # BB#29: # in Loop: Header=BB0_2 Depth=1 - copy_local $push26=, $6 - i32.store $discard=, 0($4), $pop26 + copy_local $push27=, $6 + i32.store $discard=, 0($4), $pop27 br 3 # 3: down to label4 .LBB0_30: # %for.end.thread # in Loop: Header=BB0_2 Depth=1 @@ -274,17 +265,16 @@ sort_pagelist: # @sort_pagelist br 3 # 3: down to label3 .LBB0_31: # in Loop: Header=BB0_2 Depth=1 end_block # label6: - i32.const $push101=, 28 - i32.add $push27=, $6, $pop101 - i32.store $discard=, 0($pop27), $8 + i32.const $push102=, 28 + i32.add $push28=, $6, $pop102 + i32.store $discard=, 0($pop28), $8 br 1 # 1: down to label4 .LBB0_32: # %if.else9.i111 # in Loop: Header=BB0_2 Depth=1 end_block # label5: block - i32.const $push147=, 0 - i32.eq $push148=, $2, $pop147 - br_if 0, $pop148 # 0: down to label24 + i32.eqz $push139=, $2 + br_if 0, $pop139 # 0: down to label24 # BB#33: # %if.then11.i112 # in Loop: Header=BB0_2 Depth=1 i32.store $discard=, 0($4), $11 @@ -313,81 +303,78 @@ sort_pagelist: # @sort_pagelist # Child Loop BB0_42 Depth 2 # Child Loop BB0_43 Depth 3 loop # label25: - i32.const $push106=, 0 - i32.ne $4=, $10, $pop106 - i32.const $push105=, 2 - i32.shl $push15=, $6, $pop105 + i32.const $push107=, 0 + i32.ne $4=, $10, $pop107 + i32.const $push106=, 2 + i32.shl $push15=, $6, $pop106 i32.add $push16=, $1, $pop15 - i32.load $push104=, 0($pop16) - tee_local $push103=, $11=, $pop104 - i32.const $push102=, 0 - i32.ne $8=, $pop103, $pop102 - i32.const $push37=, 104 - i32.add $push38=, $1, $pop37 - copy_local $9=, $pop38 + i32.load $push105=, 0($pop16) + tee_local $push104=, $11=, $pop105 + i32.const $push103=, 0 + i32.ne $8=, $pop104, $pop103 + i32.const $push38=, 104 + i32.add $push39=, $1, $pop38 + copy_local $9=, $pop39 block block block block - i32.const $push149=, 0 - i32.eq $push150=, $10, $pop149 - br_if 0, $pop150 # 0: down to label30 + i32.eqz $push140=, $10 + br_if 0, $pop140 # 0: down to label30 # BB#40: # %for.body15 # in Loop: Header=BB0_39 Depth=1 - i32.const $push151=, 0 - i32.eq $push152=, $11, $pop151 - br_if 0, $pop152 # 0: down to label30 + i32.eqz $push141=, $11 + br_if 0, $pop141 # 0: down to label30 # BB#41: # %while.body.lr.ph.i47.preheader # in Loop: Header=BB0_39 Depth=1 - i32.const $push39=, 104 - i32.add $push40=, $1, $pop39 - copy_local $7=, $pop40 + i32.const $push40=, 104 + i32.add $push41=, $1, $pop40 + copy_local $7=, $pop41 .LBB0_42: # %while.body.lr.ph.i47 # Parent Loop BB0_39 Depth=1 # => This Loop Header: Depth=2 # Child Loop BB0_43 Depth 3 loop # label31: - copy_local $push108=, $10 - tee_local $push107=, $9=, $pop108 - i32.load $4=, 0($pop107) + copy_local $push109=, $10 + tee_local $push108=, $9=, $pop109 + i32.load $4=, 0($pop108) copy_local $11=, $11 .LBB0_43: # %while.body.i53 # Parent Loop BB0_39 Depth=1 # Parent Loop BB0_42 Depth=2 # => This Inner Loop Header: Depth=3 loop # label33: - copy_local $push110=, $11 - tee_local $push109=, $11=, $pop110 - i32.load $push17=, 0($pop109) + copy_local $push111=, $11 + tee_local $push110=, $11=, $pop111 + i32.load $push17=, 0($pop110) i32.lt_u $push18=, $4, $pop17 br_if 1, $pop18 # 1: down to label34 # BB#44: # %if.else.i60 # in Loop: Header=BB0_43 Depth=3 - i32.const $push115=, 28 - i32.add $push19=, $7, $pop115 - i32.store $push114=, 0($pop19), $11 - tee_local $push113=, $10=, $pop114 - copy_local $7=, $pop113 - i32.load $push112=, 28($10) - tee_local $push111=, $11=, $pop112 - br_if 0, $pop111 # 0: up to label33 + i32.const $push116=, 28 + i32.add $push19=, $7, $pop116 + i32.store $push115=, 0($pop19), $11 + tee_local $push114=, $10=, $pop115 + copy_local $7=, $pop114 + i32.load $push113=, 28($10) + tee_local $push112=, $11=, $pop113 + br_if 0, $pop112 # 0: up to label33 br 5 # 5: down to label29 .LBB0_45: # %if.then.i57 # in Loop: Header=BB0_42 Depth=2 end_loop # label34: - i32.const $push122=, 28 - i32.add $push20=, $7, $pop122 - i32.store $push121=, 0($pop20), $9 - tee_local $push120=, $7=, $pop121 - i32.load $push119=, 28($pop120) - tee_local $push118=, $10=, $pop119 + i32.const $push123=, 28 + i32.add $push20=, $7, $pop123 + i32.store $push122=, 0($pop20), $9 + tee_local $push121=, $7=, $pop122 + i32.load $push120=, 28($pop121) + tee_local $push119=, $10=, $pop120 + i32.const $push118=, 0 + i32.ne $4=, $pop119, $pop118 i32.const $push117=, 0 - i32.ne $4=, $pop118, $pop117 - i32.const $push116=, 0 - i32.ne $8=, $11, $pop116 - i32.const $push153=, 0 - i32.eq $push154=, $11, $pop153 - br_if 1, $pop154 # 1: down to label32 + i32.ne $8=, $11, $pop117 + i32.eqz $push142=, $11 + br_if 1, $pop142 # 1: down to label32 # BB#46: # %if.then.i57 # in Loop: Header=BB0_42 Depth=2 copy_local $7=, $7 @@ -396,28 +383,26 @@ sort_pagelist: # @sort_pagelist # in Loop: Header=BB0_39 Depth=1 end_loop # label32: end_block # label30: - i32.const $push123=, 28 - i32.add $7=, $9, $pop123 - i32.const $push155=, 0 - i32.eq $push156=, $4, $pop155 - br_if 1, $pop156 # 1: down to label28 + i32.const $push124=, 28 + i32.add $7=, $9, $pop124 + i32.eqz $push143=, $4 + br_if 1, $pop143 # 1: down to label28 # BB#48: # in Loop: Header=BB0_39 Depth=1 - copy_local $push28=, $10 - i32.store $discard=, 0($7), $pop28 + copy_local $push29=, $10 + i32.store $discard=, 0($7), $pop29 br 2 # 2: down to label27 .LBB0_49: # in Loop: Header=BB0_39 Depth=1 end_block # label29: - i32.const $push124=, 28 - i32.add $push29=, $10, $pop124 - i32.store $discard=, 0($pop29), $9 + i32.const $push125=, 28 + i32.add $push30=, $10, $pop125 + i32.store $discard=, 0($pop30), $9 br 1 # 1: down to label27 .LBB0_50: # %if.else9.i73 # in Loop: Header=BB0_39 Depth=1 end_block # label28: block - i32.const $push157=, 0 - i32.eq $push158=, $8, $pop157 - br_if 0, $pop158 # 0: down to label35 + i32.eqz $push144=, $8 + br_if 0, $pop144 # 0: down to label35 # BB#51: # %if.then11.i74 # in Loop: Header=BB0_39 Depth=1 i32.store $discard=, 0($7), $11 @@ -425,27 +410,27 @@ sort_pagelist: # @sort_pagelist .LBB0_52: # %if.else13.i75 # in Loop: Header=BB0_39 Depth=1 end_block # label35: - i32.const $push125=, 0 - i32.store $discard=, 0($7), $pop125 + i32.const $push126=, 0 + i32.store $discard=, 0($7), $pop126 .LBB0_53: # %merge_pagelist.exit77 # in Loop: Header=BB0_39 Depth=1 end_block # label27: - i32.const $push41=, 104 - i32.add $push42=, $1, $pop41 - i32.const $push128=, 28 - i32.add $push21=, $pop42, $pop128 + i32.const $push42=, 104 + i32.add $push43=, $1, $pop42 + i32.const $push129=, 28 + i32.add $push21=, $pop43, $pop129 i32.load $10=, 0($pop21) - i32.const $push127=, 1 - i32.add $6=, $6, $pop127 - i32.const $push126=, 25 - i32.ne $push22=, $6, $pop126 + i32.const $push128=, 1 + i32.add $6=, $6, $pop128 + i32.const $push127=, 25 + i32.ne $push22=, $6, $pop127 br_if 0, $pop22 # 0: up to label25 # BB#54: # %for.end20 end_loop # label26: - i32.const $push36=, __stack_pointer - i32.const $push34=, 144 - i32.add $push35=, $1, $pop34 - i32.store $discard=, 0($pop36), $pop35 + i32.const $push37=, __stack_pointer + i32.const $push35=, 144 + i32.add $push36=, $1, $pop35 + i32.store $discard=, 0($pop37), $pop36 return $10 .endfunc .Lfunc_end0: diff --git a/test/torture-s/pr33992.c.s b/test/torture-s/pr33992.c.s index 640d6a3d9..c50233d5f 100644 --- a/test/torture-s/pr33992.c.s +++ b/test/torture-s/pr33992.c.s @@ -9,9 +9,8 @@ bar: # @bar # BB#0: # %entry block i64.eqz $push0=, $0 - i32.const $push1=, 0 - i32.eq $push2=, $pop0, $pop1 - br_if 0, $pop2 # 0: down to label0 + i32.eqz $push1=, $pop0 + br_if 0, $pop1 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then diff --git a/test/torture-s/pr34176.c.s b/test/torture-s/pr34176.c.s index f1a3c7612..c44d2faa4 100644 --- a/test/torture-s/pr34176.c.s +++ b/test/torture-s/pr34176.c.s @@ -73,9 +73,8 @@ main: # @main i32.call $discard=, foo@FUNCTION, $0 i32.const $1=, 0 block - i32.const $push17=, 0 - i32.eq $push18=, $0, $pop17 - br_if 0, $pop18 # 0: down to label3 + i32.eqz $push17=, $0 + br_if 0, $pop17 # 0: down to label3 # BB#2: # %while.body.preheader # in Loop: Header=BB2_1 Depth=1 i32.const $1=, 0 @@ -95,9 +94,8 @@ main: # @main i32.const $push10=, 12 i32.add $push11=, $2, $pop10 i32.call $discard=, hash_find_entry@FUNCTION, $pop11 - i32.const $push19=, 0 - i32.eq $push20=, $1, $pop19 - br_if 0, $pop20 # 0: up to label1 + i32.eqz $push18=, $1 + br_if 0, $pop18 # 0: up to label1 # BB#5: # %for.end end_loop # label2: i32.const $push7=, __stack_pointer diff --git a/test/torture-s/pr34456.c.s b/test/torture-s/pr34456.c.s index 5e5290643..69ccb94bf 100644 --- a/test/torture-s/pr34456.c.s +++ b/test/torture-s/pr34456.c.s @@ -59,15 +59,13 @@ compare: # @compare block i32.load $push8=, 0($1) tee_local $push7=, $1=, $pop8 - i32.const $push10=, 0 - i32.eq $push11=, $pop7, $pop10 - br_if 0, $pop11 # 0: down to label0 + i32.eqz $push10=, $pop7 + br_if 0, $pop10 # 0: down to label0 # BB#1: # %land.lhs.true i32.load $push0=, 0($0) i32.call_indirect $push1=, $2, $pop0 - i32.const $push12=, 0 - i32.eq $push13=, $pop1, $pop12 - br_if 0, $pop13 # 0: down to label0 + i32.eqz $push11=, $pop1 + br_if 0, $pop11 # 0: down to label0 # BB#2: # %if.then i32.const $push2=, 0 i32.const $push9=, 0 diff --git a/test/torture-s/pr36339.c.s b/test/torture-s/pr36339.c.s index 95dab37e4..888463113 100644 --- a/test/torture-s/pr36339.c.s +++ b/test/torture-s/pr36339.c.s @@ -53,9 +53,8 @@ check_a: # @check_a # BB#1: # %land.lhs.true i32.const $1=, 0 i32.load $push5=, 3($0) - i32.const $push6=, 0 - i32.eq $push7=, $pop5, $pop6 - br_if 1, $pop7 # 1: down to label0 + i32.eqz $push6=, $pop5 + br_if 1, $pop6 # 1: down to label0 .LBB1_2: # %if.end end_block # label1: i32.const $1=, -1 diff --git a/test/torture-s/pr36343.c.s b/test/torture-s/pr36343.c.s index 8dd0428a2..6cacda421 100644 --- a/test/torture-s/pr36343.c.s +++ b/test/torture-s/pr36343.c.s @@ -43,9 +43,8 @@ foo: # @foo call bar@FUNCTION, $pop16 block block - i32.const $push20=, 0 - i32.eq $push21=, $0, $pop20 - br_if 0, $pop21 # 0: down to label1 + i32.eqz $push20=, $0 + br_if 0, $pop20 # 0: down to label1 # BB#1: # %if.then2 i32.load $push2=, 0($2) i32.load $push3=, 0($pop2) diff --git a/test/torture-s/pr37102.c.s b/test/torture-s/pr37102.c.s index 50177fdbf..887484a70 100644 --- a/test/torture-s/pr37102.c.s +++ b/test/torture-s/pr37102.c.s @@ -34,9 +34,8 @@ main: # @main block i32.const $push8=, 0 i32.load $push0=, c($pop8) - i32.const $push14=, 0 - i32.eq $push15=, $pop0, $pop14 - br_if 0, $pop15 # 0: down to label1 + i32.eqz $push14=, $pop0 + br_if 0, $pop14 # 0: down to label1 # BB#1: # %if.then.3 i32.const $push10=, 0 i32.store $discard=, a($pop10), $0 diff --git a/test/torture-s/pr37125.c.s b/test/torture-s/pr37125.c.s index 842da4bbe..03510090b 100644 --- a/test/torture-s/pr37125.c.s +++ b/test/torture-s/pr37125.c.s @@ -12,9 +12,8 @@ func_44: # @func_44 i32.mul $push1=, $0, $pop0 i32.const $push3=, -9 i32.rem_u $push2=, $pop1, $pop3 - i32.const $push4=, 0 - i32.eq $push5=, $pop2, $pop4 - br_if 0, $pop5 # 0: down to label0 + i32.eqz $push4=, $pop2 + br_if 0, $pop4 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then diff --git a/test/torture-s/pr38051.c.s b/test/torture-s/pr38051.c.s index feb617265..9370a7b4e 100644 --- a/test/torture-s/pr38051.c.s +++ b/test/torture-s/pr38051.c.s @@ -31,9 +31,8 @@ mymemcmp: # @mymemcmp block i32.const $push120=, 3 i32.and $push0=, $0, $pop120 - i32.const $push192=, 0 - i32.eq $push193=, $pop0, $pop192 - br_if 0, $pop193 # 0: down to label13 + i32.eqz $push192=, $pop0 + br_if 0, $pop192 # 0: down to label13 # BB#1: # %if.else i32.const $push5=, -4 i32.and $4=, $0, $pop5 @@ -47,9 +46,8 @@ mymemcmp: # @mymemcmp i32.const $push123=, 3 i32.and $push122=, $2, $pop123 tee_local $push121=, $7=, $pop122 - i32.const $push194=, 0 - i32.eq $push195=, $pop121, $pop194 - br_if 1, $pop195 # 1: down to label12 + i32.eqz $push193=, $pop121 + br_if 1, $pop193 # 1: down to label12 # BB#2: # %if.else i32.const $push6=, 1 i32.eq $push7=, $7, $pop6 @@ -70,9 +68,8 @@ mymemcmp: # @mymemcmp i32.const $push129=, 3 i32.and $push128=, $2, $pop129 tee_local $push127=, $4=, $pop128 - i32.const $push196=, 0 - i32.eq $push197=, $pop127, $pop196 - br_if 10, $pop197 # 10: down to label2 + i32.eqz $push194=, $pop127 + br_if 10, $pop194 # 10: down to label2 # BB#6: # %if.then i32.const $push44=, 1 i32.eq $push45=, $4, $pop44 @@ -317,9 +314,8 @@ mymemcmp: # @mymemcmp i32.load $3=, 12($1) i32.const $push57=, -4 i32.add $2=, $2, $pop57 - i32.const $push198=, 0 - i32.eq $push199=, $2, $pop198 - br_if 69, $pop199 # 69: down to label17 + i32.eqz $push195=, $2 + br_if 69, $pop195 # 69: down to label17 # BB#26: # in Loop: Header=BB0_22 Depth=1 i32.const $10=, 44 br 71 # 71: up to label14 @@ -572,9 +568,8 @@ mymemcmp: # @mymemcmp i32.load $5=, 12($7) i32.const $push25=, -4 i32.add $2=, $2, $pop25 - i32.const $push200=, 0 - i32.eq $push201=, $2, $pop200 - br_if 33, $pop201 # 33: down to label29 + i32.eqz $push196=, $2 + br_if 33, $pop196 # 33: down to label29 # BB#68: # in Loop: Header=BB0_22 Depth=1 i32.const $10=, 19 br 47 # 47: up to label14 diff --git a/test/torture-s/pr39100.c.s b/test/torture-s/pr39100.c.s index 90e05a8eb..d8c2d0ba6 100644 --- a/test/torture-s/pr39100.c.s +++ b/test/torture-s/pr39100.c.s @@ -12,21 +12,14 @@ foo: # @foo i32.const $push10=, __stack_pointer i32.load $push11=, 0($pop10) i32.const $push12=, 16 - i32.sub $push22=, $pop11, $pop12 - tee_local $push21=, $9=, $pop22 - i32.const $push13=, 12 - i32.add $push14=, $pop21, $pop13 - copy_local $8=, $pop14 - i32.const $push15=, 8 - i32.add $push16=, $9, $pop15 - copy_local $7=, $pop16 + i32.sub $9=, $pop11, $pop12 i32.const $push1=, 0 i32.store $push0=, 12($9), $pop1 i32.store $2=, 8($9), $pop0 block - i32.const $push28=, 0 - i32.eq $push29=, $1, $pop28 - br_if 0, $pop29 # 0: down to label0 + block + i32.eqz $push26=, $1 + br_if 0, $pop26 # 0: down to label1 # BB#1: # %while.body.lr.ph.lr.ph i32.const $push4=, 6 i32.add $4=, $0, $pop4 @@ -39,47 +32,56 @@ foo: # @foo .LBB0_2: # %while.body.lr.ph # =>This Loop Header: Depth=1 # Child Loop BB0_3 Depth 2 - loop # label1: + loop # label2: copy_local $6=, $1 .LBB0_3: # %while.body # Parent Loop BB0_2 Depth=1 # => This Inner Loop Header: Depth=2 - loop # label3: + loop # label4: i32.load $1=, 4($6) - i32.const $push24=, 4 - i32.add $3=, $6, $pop24 + i32.const $push22=, 4 + i32.add $3=, $6, $pop22 i32.load8_u $push2=, 0($6) - i32.const $push23=, 1 - i32.and $push3=, $pop2, $pop23 - br_if 1, $pop3 # 1: down to label4 + i32.const $push21=, 1 + i32.and $push3=, $pop2, $pop21 + br_if 1, $pop3 # 1: down to label5 # BB#4: # %if.else # in Loop: Header=BB0_3 Depth=2 - i32.const $push26=, 4 - i32.add $5=, $0, $pop26 + i32.const $push24=, 4 + i32.add $5=, $0, $pop24 i32.load16_u $push6=, 0($5) - i32.const $push25=, 1 - i32.add $push7=, $pop6, $pop25 + i32.const $push23=, 1 + i32.add $push7=, $pop6, $pop23 i32.store16 $discard=, 0($5), $pop7 i32.store $discard=, 0($7), $6 copy_local $6=, $1 copy_local $7=, $3 - br_if 0, $1 # 0: up to label3 - br 3 # 3: down to label2 + br_if 0, $1 # 0: up to label4 + br 3 # 3: down to label3 .LBB0_5: # %if.then # in Loop: Header=BB0_2 Depth=1 - end_loop # label4: + end_loop # label5: i32.load16_u $5=, 0($4) i32.store $discard=, 0($8), $6 - i32.const $push27=, 1 - i32.add $push5=, $5, $pop27 + i32.const $push25=, 1 + i32.add $push5=, $5, $pop25 i32.store16 $discard=, 0($4), $pop5 copy_local $8=, $3 - br_if 0, $1 # 0: up to label1 - br 2 # 2: down to label0 + br_if 0, $1 # 0: up to label2 + br 3 # 3: down to label0 .LBB0_6: - end_loop # label2: + end_loop # label3: copy_local $7=, $3 -.LBB0_7: # %while.end + br 1 # 1: down to label0 +.LBB0_7: + end_block # label1: + i32.const $push13=, 12 + i32.add $push14=, $9, $pop13 + copy_local $8=, $pop14 + i32.const $push15=, 8 + i32.add $push16=, $9, $pop15 + copy_local $7=, $pop16 +.LBB0_8: # %while.end end_block # label0: i32.load $push8=, 8($9) i32.store $discard=, 0($8), $pop8 @@ -123,18 +125,18 @@ main: # @main i32.load $push6=, 28($1) i32.const $push7=, 65537 i32.ne $push8=, $pop6, $pop7 - br_if 0, $pop8 # 0: down to label5 + br_if 0, $pop8 # 0: down to label6 # BB#1: # %if.end i32.load $push9=, 24($1) i32.ne $push10=, $pop9, $0 - br_if 0, $pop10 # 0: down to label5 + br_if 0, $pop10 # 0: down to label6 # BB#2: # %if.end13 i32.load $push11=, 12($1) i32.ne $push12=, $pop11, $1 - br_if 0, $pop12 # 0: down to label5 + br_if 0, $pop12 # 0: down to label6 # BB#3: # %if.end20 i32.load $push13=, 4($1) - br_if 0, $pop13 # 0: down to label5 + br_if 0, $pop13 # 0: down to label6 # BB#4: # %if.end24 i32.const $push21=, __stack_pointer i32.const $push19=, 32 @@ -143,7 +145,7 @@ main: # @main i32.const $push14=, 0 return $pop14 .LBB1_5: # %if.then23 - end_block # label5: + end_block # label6: call abort@FUNCTION unreachable .endfunc diff --git a/test/torture-s/pr39228.c.s b/test/torture-s/pr39228.c.s index 38195de22..d33e24b14 100644 --- a/test/torture-s/pr39228.c.s +++ b/test/torture-s/pr39228.c.s @@ -15,9 +15,8 @@ main: # @main br_if 0, $pop3 # 0: down to label0 # BB#1: # %if.end i32.const $push4=, 1 - i32.const $push11=, 0 - i32.eq $push12=, $pop4, $pop11 - br_if 0, $pop12 # 0: down to label0 + i32.eqz $push11=, $pop4 + br_if 0, $pop11 # 0: down to label0 # BB#2: # %if.end4 i64.const $push6=, 0 i64.const $push5=, 9223090561878065152 diff --git a/test/torture-s/pr40022.c.s b/test/torture-s/pr40022.c.s index ca86a8449..31e06b753 100644 --- a/test/torture-s/pr40022.c.s +++ b/test/torture-s/pr40022.c.s @@ -35,9 +35,8 @@ bar: # @bar i32.call $push4=, foo@FUNCTION, $1 tee_local $push3=, $1=, $pop4 i32.store $push0=, 0($0), $pop3 - i32.const $push7=, 0 - i32.eq $push8=, $pop0, $pop7 - br_if 0, $pop8 # 0: down to label0 + i32.eqz $push7=, $pop0 + br_if 0, $pop7 # 0: down to label0 .LBB1_1: # %while.cond.while.cond_crit_edge # =>This Inner Loop Header: Depth=1 loop # label1: @@ -51,9 +50,8 @@ bar: # @bar i32.call $push6=, foo@FUNCTION, $2 tee_local $push5=, $1=, $pop6 i32.store $push1=, 0($0), $pop5 - i32.const $push9=, 0 - i32.eq $push10=, $pop1, $pop9 - br_if 0, $pop10 # 0: down to label3 + i32.eqz $push8=, $pop1 + br_if 0, $pop8 # 0: down to label3 .LBB1_3: # %while.cond2.while.cond2_crit_edge # =>This Inner Loop Header: Depth=1 loop # label4: @@ -90,21 +88,18 @@ main: # @main i32.const $push9=, 0 i32.load $push8=, d($pop9) tee_local $push7=, $0=, $pop8 - i32.const $push15=, 0 - i32.eq $push16=, $pop7, $pop15 - br_if 0, $pop16 # 0: down to label6 + i32.eqz $push15=, $pop7 + br_if 0, $pop15 # 0: down to label6 # BB#1: # %lor.lhs.false i32.load $push12=, 0($0) tee_local $push11=, $0=, $pop12 - i32.const $push17=, 0 - i32.eq $push18=, $pop11, $pop17 - br_if 0, $pop18 # 0: down to label6 + i32.eqz $push16=, $pop11 + br_if 0, $pop16 # 0: down to label6 # BB#2: # %lor.lhs.false2 i32.load $push14=, 0($0) tee_local $push13=, $0=, $pop14 - i32.const $push19=, 0 - i32.eq $push20=, $pop13, $pop19 - br_if 0, $pop20 # 0: down to label6 + i32.eqz $push17=, $pop13 + br_if 0, $pop17 # 0: down to label6 # BB#3: # %lor.lhs.false6 i32.load $push5=, 0($0) br_if 0, $pop5 # 0: down to label6 diff --git a/test/torture-s/pr40057.c.s b/test/torture-s/pr40057.c.s index 70b764704..145d6a4de 100644 --- a/test/torture-s/pr40057.c.s +++ b/test/torture-s/pr40057.c.s @@ -46,9 +46,8 @@ main: # @main # BB#1: # %if.end i64.const $push2=, 6579460778 i32.call $push3=, foo@FUNCTION, $pop2 - i32.const $push9=, 0 - i32.eq $push10=, $pop3, $pop9 - br_if 0, $pop10 # 0: down to label0 + i32.eqz $push9=, $pop3 + br_if 0, $pop9 # 0: down to label0 # BB#2: # %if.end4 i64.const $push4=, 6042589866 i32.call $push5=, bar@FUNCTION, $pop4 @@ -56,9 +55,8 @@ main: # @main # BB#3: # %if.end8 i64.const $push6=, 6579460778 i32.call $push7=, bar@FUNCTION, $pop6 - i32.const $push11=, 0 - i32.eq $push12=, $pop7, $pop11 - br_if 0, $pop12 # 0: down to label0 + i32.eqz $push10=, $pop7 + br_if 0, $pop10 # 0: down to label0 # BB#4: # %if.end12 i32.const $push8=, 0 return $pop8 diff --git a/test/torture-s/pr41239.c.s b/test/torture-s/pr41239.c.s index d26173ce2..bd2869338 100644 --- a/test/torture-s/pr41239.c.s +++ b/test/torture-s/pr41239.c.s @@ -9,47 +9,46 @@ test: # @test .result i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push15=, __stack_pointer - i32.const $push12=, __stack_pointer - i32.load $push13=, 0($pop12) - i32.const $push14=, 16 - i32.sub $push19=, $pop13, $pop14 - i32.store $1=, 0($pop15), $pop19 + i32.const $push16=, __stack_pointer + i32.const $push13=, __stack_pointer + i32.load $push14=, 0($pop13) + i32.const $push15=, 16 + i32.sub $push20=, $pop14, $pop15 + i32.store $1=, 0($pop16), $pop20 i32.load $2=, 4($0) block i32.const $push0=, 8 i32.add $push1=, $0, $pop0 - i32.load $push21=, 0($pop1) - tee_local $push20=, $0=, $pop21 - br_if 0, $pop20 # 0: down to label0 + i32.load $push22=, 0($pop1) + tee_local $push21=, $0=, $pop22 + br_if 0, $pop21 # 0: down to label0 # BB#1: # %if.then i32.const $push5=, 20 i32.const $push3=, .L.str i32.const $push4=, 924 i32.const $push2=, .L__func__.test - i32.const $push22=, 0 - i32.call $push6=, fn1@FUNCTION, $pop5, $pop3, $pop4, $pop2, $pop22 + i32.const $push23=, 0 + i32.call $push6=, fn1@FUNCTION, $pop5, $pop3, $pop4, $pop2, $pop23 i32.const $push7=, 255 i32.and $push8=, $pop6, $pop7 - i32.const $push24=, 0 - i32.eq $push25=, $pop8, $pop24 + i32.eqz $push25=, $pop8 br_if 0, $pop25 # 0: down to label0 # BB#2: # %cond.true i32.const $push9=, 33816706 i32.call $3=, fn3@FUNCTION, $pop9 i32.const $push10=, .L.str.1 - i32.const $push23=, 0 - i32.call $push11=, fn4@FUNCTION, $pop10, $pop23 + i32.const $push24=, 0 + i32.call $push11=, fn4@FUNCTION, $pop10, $pop24 i32.store $discard=, 0($1), $pop11 call fn2@FUNCTION, $3, $1 .LBB0_3: # %if.end end_block # label0: - i32.div_s $0=, $2, $0 - i32.const $push18=, __stack_pointer - i32.const $push16=, 16 - i32.add $push17=, $1, $pop16 - i32.store $discard=, 0($pop18), $pop17 - return $0 + i32.const $push19=, __stack_pointer + i32.const $push17=, 16 + i32.add $push18=, $1, $pop17 + i32.store $discard=, 0($pop19), $pop18 + i32.div_s $push12=, $2, $0 + return $pop12 .endfunc .Lfunc_end0: .size test, .Lfunc_end0-test diff --git a/test/torture-s/pr41463.c.s b/test/torture-s/pr41463.c.s deleted file mode 100644 index c01168ed2..000000000 --- a/test/torture-s/pr41463.c.s +++ /dev/null @@ -1,65 +0,0 @@ - .text - .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr41463.c" - .section .text.foo,"ax",@progbits - .hidden foo - .globl foo - .type foo,@function -foo: # @foo - .param i32, i32 - .result i32 -# BB#0: # %entry - i32.const $push0=, 2 - i32.shl $push1=, $1, $pop0 - i32.add $push2=, $0, $pop1 - i32.const $push3=, 24 - i32.add $push10=, $pop2, $pop3 - tee_local $push9=, $1=, $pop10 - i32.const $push4=, 0 - i32.store $discard=, 0($pop9), $pop4 - i32.const $push5=, 28 - i32.add $push6=, $0, $pop5 - i32.const $push7=, global - i32.store $discard=, 0($pop6), $pop7 - i32.load $push8=, 0($1) - return $pop8 - .endfunc -.Lfunc_end0: - .size foo, .Lfunc_end0-foo - - .section .text.main,"ax",@progbits - .hidden main - .globl main - .type main,@function -main: # @main - .result i32 -# BB#0: # %entry - block - i32.const $push0=, 76 - i32.call $push1=, malloc@FUNCTION, $pop0 - i32.const $push2=, 1 - i32.call $push3=, foo@FUNCTION, $pop1, $pop2 - i32.const $push4=, global - i32.ne $push5=, $pop3, $pop4 - br_if 0, $pop5 # 0: down to label0 -# BB#1: # %if.end - i32.const $push6=, 0 - return $pop6 -.LBB1_2: # %if.then - end_block # label0: - call abort@FUNCTION - unreachable - .endfunc -.Lfunc_end1: - .size main, .Lfunc_end1-main - - .hidden global # @global - .type global,@object - .section .bss.global,"aw",@nobits - .globl global - .p2align 2 -global: - .skip 76 - .size global, 76 - - - .ident "clang version 3.9.0 " diff --git a/test/torture-s/pr42231.c.s b/test/torture-s/pr42231.c.s index cf2129241..1491cc252 100644 --- a/test/torture-s/pr42231.c.s +++ b/test/torture-s/pr42231.c.s @@ -10,9 +10,8 @@ main: # @main block i32.const $push0=, 1 i32.call $push1=, CallFunctionRec@FUNCTION, $pop0 - i32.const $push8=, 0 - i32.eq $push9=, $pop1, $pop8 - br_if 0, $pop9 # 0: down to label0 + i32.eqz $push8=, $pop1 + br_if 0, $pop8 # 0: down to label0 # BB#1: # %land.rhs.i i32.const $push2=, 0 call storemax@FUNCTION, $pop2 @@ -45,9 +44,8 @@ CallFunctionRec: # @CallFunctionRec call storemax@FUNCTION, $0 i32.const $1=, 0 block - i32.const $push5=, 0 - i32.eq $push6=, $0, $pop5 - br_if 0, $pop6 # 0: down to label2 + i32.eqz $push5=, $0 + br_if 0, $pop5 # 0: down to label2 # BB#1: # %if.end i32.const $1=, 1 i32.const $push0=, 9 diff --git a/test/torture-s/pr42614.c.s b/test/torture-s/pr42614.c.s index ebc4657ce..a0a797121 100644 --- a/test/torture-s/pr42614.c.s +++ b/test/torture-s/pr42614.c.s @@ -22,13 +22,11 @@ expect_func: # @expect_func .param i32, i32 # BB#0: # %entry block - i32.const $push0=, 0 - i32.eq $push1=, $0, $pop0 - br_if 0, $pop1 # 0: down to label0 + i32.eqz $push0=, $0 + br_if 0, $pop0 # 0: down to label0 # BB#1: # %if.end - i32.const $push2=, 0 - i32.eq $push3=, $1, $pop2 - br_if 0, $pop3 # 0: down to label0 + i32.eqz $push1=, $1 + br_if 0, $pop1 # 0: down to label0 # BB#2: # %if.end6 return .LBB1_3: # %if.then5 diff --git a/test/torture-s/pr43220.c.s b/test/torture-s/pr43220.c.s index 9734d5ba3..5bf24a566 100644 --- a/test/torture-s/pr43220.c.s +++ b/test/torture-s/pr43220.c.s @@ -8,63 +8,63 @@ main: # @main .result i32 .local i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push11=, __stack_pointer - i32.load $push13=, 0($pop11) - tee_local $push12=, $5=, $pop13 - copy_local $discard=, $pop12 - i32.const $3=, 0 + i32.const $push13=, __stack_pointer + i32.load $push15=, 0($pop13) + tee_local $push14=, $3=, $pop15 + copy_local $discard=, $pop14 + i32.const $2=, 0 .LBB0_1: # %lab # =>This Inner Loop Header: Depth=1 loop # label0: - copy_local $2=, $5 - i32.const $push35=, 1000 - i32.rem_s $push0=, $3, $pop35 - i32.const $push34=, 2 - i32.shl $push33=, $pop0, $pop34 - tee_local $push32=, $1=, $pop33 - i32.const $push31=, 19 - i32.add $push1=, $pop32, $pop31 - i32.const $push30=, -16 - i32.and $push2=, $pop1, $pop30 - i32.sub $push29=, $5, $pop2 - tee_local $push28=, $5=, $pop29 - copy_local $discard=, $pop28 - i32.const $push27=, 1 - i32.store $0=, 0($5), $pop27 - i32.add $push3=, $5, $1 - i32.const $push26=, 2 - i32.store $1=, 0($pop3), $pop26 - i32.const $push25=, 0 - i32.store $discard=, p($pop25), $5 - copy_local $push24=, $2 - tee_local $push23=, $5=, $pop24 - copy_local $2=, $pop23 - i32.add $push4=, $3, $0 - i32.const $push22=, 1000 - i32.rem_s $push5=, $pop4, $pop22 - i32.shl $push21=, $pop5, $1 - tee_local $push20=, $4=, $pop21 - i32.const $push19=, 19 - i32.add $push6=, $pop20, $pop19 - i32.const $push18=, -16 - i32.and $push7=, $pop6, $pop18 - i32.sub $push17=, $5, $pop7 - tee_local $push16=, $5=, $pop17 - copy_local $discard=, $pop16 + i32.const $push37=, 1000 + i32.rem_s $push0=, $2, $pop37 + i32.const $push36=, 2 + i32.shl $push35=, $pop0, $pop36 + tee_local $push34=, $1=, $pop35 + i32.const $push33=, 19 + i32.add $push2=, $pop34, $pop33 + i32.const $push32=, -16 + i32.and $push3=, $pop2, $pop32 + i32.sub $push31=, $3, $pop3 + tee_local $push30=, $5=, $pop31 + copy_local $discard=, $pop30 + i32.const $push29=, 1 + i32.store $0=, 0($5), $pop29 + i32.add $push4=, $5, $1 + i32.const $push28=, 2 + i32.store $1=, 0($pop4), $pop28 + i32.const $push27=, 0 + i32.store $discard=, p($pop27), $5 + copy_local $push1=, $3 + copy_local $push26=, $pop1 + tee_local $push25=, $3=, $pop26 + i32.add $push5=, $2, $0 + i32.const $push24=, 1000 + i32.rem_s $push6=, $pop5, $pop24 + i32.shl $push23=, $pop6, $1 + tee_local $push22=, $4=, $pop23 + i32.const $push21=, 19 + i32.add $push8=, $pop22, $pop21 + i32.const $push20=, -16 + i32.and $push9=, $pop8, $pop20 + i32.sub $push19=, $pop25, $pop9 + tee_local $push18=, $5=, $pop19 + copy_local $discard=, $pop18 i32.store $discard=, 0($5), $0 - i32.add $push8=, $5, $4 - i32.store $0=, 0($pop8), $1 - i32.const $push15=, 0 - i32.store $discard=, p($pop15), $5 - copy_local $5=, $2 - i32.add $3=, $3, $0 - i32.const $push14=, 1000000 - i32.lt_s $push9=, $3, $pop14 - br_if 0, $pop9 # 0: up to label0 + i32.add $push10=, $5, $4 + i32.store $0=, 0($pop10), $1 + i32.const $push17=, 0 + i32.store $discard=, p($pop17), $5 + copy_local $push7=, $3 + copy_local $3=, $pop7 + i32.add $2=, $2, $0 + i32.const $push16=, 1000000 + i32.lt_s $push11=, $2, $pop16 + br_if 0, $pop11 # 0: up to label0 # BB#2: # %if.end end_loop # label1: - i32.const $push10=, 0 - return $pop10 + i32.const $push12=, 0 + return $pop12 .endfunc .Lfunc_end0: .size main, .Lfunc_end0-main diff --git a/test/torture-s/pr43385.c.s b/test/torture-s/pr43385.c.s index f0af29f81..cc5bba797 100644 --- a/test/torture-s/pr43385.c.s +++ b/test/torture-s/pr43385.c.s @@ -8,13 +8,11 @@ foo: # @foo .param i32, i32 # BB#0: # %entry block - i32.const $push5=, 0 - i32.eq $push6=, $0, $pop5 - br_if 0, $pop6 # 0: down to label0 + i32.eqz $push5=, $0 + br_if 0, $pop5 # 0: down to label0 # BB#1: # %entry - i32.const $push7=, 0 - i32.eq $push8=, $1, $pop7 - br_if 0, $pop8 # 0: down to label0 + i32.eqz $push6=, $1 + br_if 0, $pop6 # 0: down to label0 # BB#2: # %if.then i32.const $push0=, 0 i32.const $push4=, 0 diff --git a/test/torture-s/pr43835.c.s b/test/torture-s/pr43835.c.s index b46bf0e20..76d71b107 100644 --- a/test/torture-s/pr43835.c.s +++ b/test/torture-s/pr43835.c.s @@ -40,18 +40,16 @@ mark_cell: # @mark_cell # BB#1: # %land.lhs.true i32.load $push9=, 0($1) tee_local $push8=, $1=, $pop9 - i32.const $push10=, 0 - i32.eq $push11=, $pop8, $pop10 - br_if 0, $pop11 # 0: down to label1 + i32.eqz $push10=, $pop8 + br_if 0, $pop10 # 0: down to label1 # BB#2: # %land.lhs.true1 i32.const $push3=, 2 i32.add $push4=, $1, $pop3 i32.load8_u $push5=, 0($pop4) i32.const $push6=, 4 i32.and $push7=, $pop5, $pop6 - i32.const $push12=, 0 - i32.eq $push13=, $pop7, $pop12 - br_if 1, $pop13 # 1: down to label0 + i32.eqz $push11=, $pop7 + br_if 1, $pop11 # 1: down to label0 .LBB2_3: # %if.end end_block # label1: return diff --git a/test/torture-s/pr44202-1.c.s b/test/torture-s/pr44202-1.c.s index 436ab4c76..b17c7b8ca 100644 --- a/test/torture-s/pr44202-1.c.s +++ b/test/torture-s/pr44202-1.c.s @@ -13,9 +13,8 @@ add512: # @add512 i32.const $push0=, 512 i32.add $push2=, $0, $pop0 tee_local $push1=, $2=, $pop2 - i32.const $push3=, 0 - i32.eq $push4=, $pop1, $pop3 - br_if 0, $pop4 # 0: down to label0 + i32.eqz $push3=, $pop1 + br_if 0, $pop3 # 0: down to label0 # BB#1: # %if.then i32.store $discard=, 0($1), $0 .LBB0_2: # %if.end diff --git a/test/torture-s/pr45070.c.s b/test/torture-s/pr45070.c.s index 628dcd1af..0143e7e72 100644 --- a/test/torture-s/pr45070.c.s +++ b/test/torture-s/pr45070.c.s @@ -92,9 +92,8 @@ next: # @next # =>This Inner Loop Header: Depth=1 loop # label6: i32.load $push4=, 0($1) - i32.const $push13=, 0 - i32.eq $push14=, $pop4, $pop13 - br_if 1, $pop14 # 1: down to label7 + i32.eqz $push13=, $pop4 + br_if 1, $pop13 # 1: down to label7 # BB#3: # %if.then1 # in Loop: Header=BB1_2 Depth=1 i32.const $3=, 0 diff --git a/test/torture-s/pr47337.c.s b/test/torture-s/pr47337.c.s index e284bf9dd..2a5d3db77 100644 --- a/test/torture-s/pr47337.c.s +++ b/test/torture-s/pr47337.c.s @@ -27,9 +27,8 @@ main: # @main i32.const $push33=, 0 i32.store $1=, d($pop3), $pop33 block - i32.const $push48=, 0 - i32.eq $push49=, $0, $pop48 - br_if 0, $pop49 # 0: down to label2 + i32.eqz $push48=, $0 + br_if 0, $pop48 # 0: down to label2 # BB#3: # %fnx.exit i32.load $push4=, b($1) i32.const $push5=, 1 diff --git a/test/torture-s/pr47538.c.s b/test/torture-s/pr47538.c.s index ecf7f625c..d7cf6be96 100644 --- a/test/torture-s/pr47538.c.s +++ b/test/torture-s/pr47538.c.s @@ -15,9 +15,8 @@ foo: # @foo f64.store $discard=, 8($0), $7 block block - i32.const $push53=, 0 - i32.eq $push54=, $2, $pop53 - br_if 0, $pop54 # 0: down to label1 + i32.eqz $push53=, $2 + br_if 0, $pop53 # 0: down to label1 # BB#1: # %if.else f64.sub $push4=, $7, $8 f64.const $push5=, 0x1p-2 @@ -54,9 +53,8 @@ foo: # @foo i32.const $push8=, -1 i32.add $push42=, $2, $pop8 tee_local $push41=, $10=, $pop42 - i32.const $push55=, 0 - i32.eq $push56=, $pop41, $pop55 - br_if 0, $pop56 # 0: down to label3 + i32.eqz $push54=, $pop41 + br_if 0, $pop54 # 0: down to label3 # BB#5: # %for.body.preheader i32.const $push43=, 8 i32.add $0=, $5, $pop43 diff --git a/test/torture-s/pr48973-1.c.s b/test/torture-s/pr48973-1.c.s index cb2156609..34d490f28 100644 --- a/test/torture-s/pr48973-1.c.s +++ b/test/torture-s/pr48973-1.c.s @@ -42,9 +42,8 @@ main: # @main i32.or $push5=, $pop3, $pop6 i32.store8 $discard=, s($pop10), $pop5 block - i32.const $push12=, 0 - i32.eq $push13=, $0, $pop12 - br_if 0, $pop13 # 0: down to label1 + i32.eqz $push12=, $0 + br_if 0, $pop12 # 0: down to label1 # BB#1: # %foo.exit i32.const $push11=, 0 return $pop11 diff --git a/test/torture-s/pr49073.c.s b/test/torture-s/pr49073.c.s index 568826710..32302744f 100644 --- a/test/torture-s/pr49073.c.s +++ b/test/torture-s/pr49073.c.s @@ -19,9 +19,8 @@ main: # @main block i32.const $push10=, 1 i32.and $push0=, $2, $pop10 - i32.const $push18=, 0 - i32.eq $push19=, $pop0, $pop18 - br_if 0, $pop19 # 0: down to label4 + i32.eqz $push18=, $pop0 + br_if 0, $pop18 # 0: down to label4 # BB#2: # %do.body # in Loop: Header=BB0_1 Depth=1 i32.const $push11=, 4 diff --git a/test/torture-s/pr49390.c.s b/test/torture-s/pr49390.c.s index 4bf14437d..527841801 100644 --- a/test/torture-s/pr49390.c.s +++ b/test/torture-s/pr49390.c.s @@ -89,16 +89,15 @@ test: # @test i32.sub $push59=, $pop51, $pop52 i32.store $push61=, 0($pop53), $pop59 tee_local $push60=, $3=, $pop61 - i32.const $push57=, 8 - i32.add $push58=, $pop60, $pop57 - copy_local $2=, $pop58 i32.const $push1=, 0 i64.load $push2=, a($pop1) - i64.store $1=, 8($3), $pop2 + i64.store $1=, 8($pop60), $pop2 + i32.const $push57=, 8 + i32.add $push58=, $3, $pop57 + copy_local $2=, $pop58 block - i32.const $push82=, 0 - i32.eq $push83=, $0, $pop82 - br_if 0, $pop83 # 0: down to label1 + i32.eqz $push82=, $0 + br_if 0, $pop82 # 0: down to label1 # BB#1: # %if.else block block @@ -129,9 +128,8 @@ test: # @test end_block # label1: block i32.call $push15=, baz@FUNCTION, $2 - i32.const $push84=, 0 - i32.eq $push85=, $pop15, $pop84 - br_if 0, $pop85 # 0: down to label4 + i32.eqz $push83=, $pop15 + br_if 0, $pop83 # 0: down to label4 # BB#6: # %if.end9 i32.const $push22=, 32 i32.const $push21=, 4 @@ -152,9 +150,8 @@ test: # @test i32.const $push23=, 8191 i32.and $push67=, $pop68, $pop23 tee_local $push66=, $4=, $pop67 - i32.const $push86=, 0 - i32.eq $push87=, $pop66, $pop86 - br_if 0, $pop87 # 0: down to label6 + i32.eqz $push84=, $pop66 + br_if 0, $pop84 # 0: down to label6 # BB#7: # %if.else17 i32.ge_u $push24=, $4, $0 br_if 1, $pop24 # 1: down to label5 @@ -180,9 +177,8 @@ test: # @test # BB#11: # %if.end24 i32.const $push30=, 1 i32.and $push29=, $6, $pop30 - i32.const $push88=, 0 - i32.eq $push89=, $pop29, $pop88 - br_if 0, $pop89 # 0: down to label7 + i32.eqz $push85=, $pop29 + br_if 0, $pop85 # 0: down to label7 # BB#12: # %if.then31 i64.load $push43=, 0($2):p2align=2 i64.store $discard=, 0($3):p2align=2, $pop43 diff --git a/test/torture-s/pr49712.c.s b/test/torture-s/pr49712.c.s index 65ed84d8c..95b1041e8 100644 --- a/test/torture-s/pr49712.c.s +++ b/test/torture-s/pr49712.c.s @@ -54,9 +54,8 @@ main: # @main i32.const $push5=, 0 i32.store $0=, b($pop6), $pop5 block - i32.const $push14=, 0 - i32.eq $push15=, $1, $pop14 - br_if 0, $pop15 # 0: down to label1 + i32.eqz $push14=, $1 + br_if 0, $pop14 # 0: down to label1 # BB#1: # %while.body.preheader i32.load $push2=, d($0) i32.const $push7=, 1 @@ -66,9 +65,8 @@ main: # @main loop # label2: i32.const $push13=, 1 i32.and $push3=, $0, $pop13 - i32.const $push16=, 0 - i32.eq $push17=, $pop3, $pop16 - br_if 0, $pop17 # 0: up to label2 + i32.eqz $push15=, $pop3 + br_if 0, $pop15 # 0: up to label2 # BB#3: # %for.cond4.preheader.preheader.i # in Loop: Header=BB2_2 Depth=1 i32.const $0=, 0 diff --git a/test/torture-s/pr49886.c.s b/test/torture-s/pr49886.c.s index eb0f85284..21a7df69b 100644 --- a/test/torture-s/pr49886.c.s +++ b/test/torture-s/pr49886.c.s @@ -62,15 +62,13 @@ mark_cell: # @mark_cell block block block - i32.const $push49=, 0 - i32.eq $push50=, $0, $pop49 - br_if 0, $pop50 # 0: down to label9 + i32.eqz $push49=, $0 + br_if 0, $pop49 # 0: down to label9 # BB#1: # %entry i32.const $push1=, 0 i32.load $push0=, cond($pop1) - i32.const $push51=, 0 - i32.eq $push52=, $pop0, $pop51 - br_if 0, $pop52 # 0: down to label9 + i32.eqz $push50=, $pop0 + br_if 0, $pop50 # 0: down to label9 # BB#2: # %land.lhs.true i32.load $push2=, 8($0) i32.const $push3=, 4 @@ -79,9 +77,8 @@ mark_cell: # @mark_cell # BB#3: # %land.lhs.true2 i32.load $push38=, 0($0) tee_local $push37=, $0=, $pop38 - i32.const $push53=, 0 - i32.eq $push54=, $pop37, $pop53 - br_if 0, $pop54 # 0: down to label9 + i32.eqz $push51=, $pop37 + br_if 0, $pop51 # 0: down to label9 # BB#4: # %land.lhs.true4 i32.const $push41=, 2 i32.add $push40=, $0, $pop41 @@ -89,34 +86,30 @@ mark_cell: # @mark_cell i32.load8_u $push5=, 0($pop39) i32.const $push6=, 4 i32.and $push7=, $pop5, $pop6 - i32.const $push55=, 0 - i32.eq $push56=, $pop7, $pop55 - br_if 1, $pop56 # 1: down to label8 + i32.eqz $push52=, $pop7 + br_if 1, $pop52 # 1: down to label8 # BB#5: # %land.lhs.true17 i32.load8_u $push8=, 0($1) i32.const $push42=, 2 i32.and $push9=, $pop8, $pop42 - i32.const $push57=, 0 - i32.eq $push58=, $pop9, $pop57 - br_if 2, $pop58 # 2: down to label7 + i32.eqz $push53=, $pop9 + br_if 2, $pop53 # 2: down to label7 # BB#6: # %land.lhs.true33 i32.const $push10=, 2 i32.add $push11=, $0, $pop10 i32.load8_u $push12=, 0($pop11) i32.const $push43=, 1 i32.and $push13=, $pop12, $pop43 - i32.const $push59=, 0 - i32.eq $push60=, $pop13, $pop59 - br_if 3, $pop60 # 3: down to label6 + i32.eqz $push54=, $pop13 + br_if 3, $pop54 # 3: down to label6 # BB#7: # %land.lhs.true49 i32.const $push44=, 1 i32.add $push14=, $0, $pop44 i32.load8_u $push15=, 0($pop14) i32.const $push16=, 7 i32.shr_u $push17=, $pop15, $pop16 - i32.const $push61=, 0 - i32.eq $push62=, $pop17, $pop61 - br_if 4, $pop62 # 4: down to label5 + i32.eqz $push55=, $pop17 + br_if 4, $pop55 # 4: down to label5 # BB#8: # %land.lhs.true65 i32.const $push18=, 1 i32.add $push46=, $0, $pop18 @@ -124,16 +117,14 @@ mark_cell: # @mark_cell i32.load8_u $push19=, 0($pop45) i32.const $push20=, 64 i32.and $push21=, $pop19, $pop20 - i32.const $push63=, 0 - i32.eq $push64=, $pop21, $pop63 - br_if 5, $pop64 # 5: down to label4 + i32.eqz $push56=, $pop21 + br_if 5, $pop56 # 5: down to label4 # BB#9: # %land.lhs.true81 i32.load8_u $push22=, 0($1) i32.const $push23=, 32 i32.and $push24=, $pop22, $pop23 - i32.const $push65=, 0 - i32.eq $push66=, $pop24, $pop65 - br_if 6, $pop66 # 6: down to label3 + i32.eqz $push57=, $pop24 + br_if 6, $pop57 # 6: down to label3 # BB#10: # %land.lhs.true97 i32.const $push25=, 1 i32.add $push48=, $0, $pop25 @@ -141,25 +132,22 @@ mark_cell: # @mark_cell i32.load8_u $push26=, 0($pop47) i32.const $push27=, 16 i32.and $push28=, $pop26, $pop27 - i32.const $push67=, 0 - i32.eq $push68=, $pop28, $pop67 - br_if 7, $pop68 # 7: down to label2 + i32.eqz $push58=, $pop28 + br_if 7, $pop58 # 7: down to label2 # BB#11: # %land.lhs.true113 i32.load8_u $push29=, 0($1) i32.const $push30=, 8 i32.and $push31=, $pop29, $pop30 - i32.const $push69=, 0 - i32.eq $push70=, $pop31, $pop69 - br_if 8, $pop70 # 8: down to label1 + i32.eqz $push59=, $pop31 + br_if 8, $pop59 # 8: down to label1 # BB#12: # %land.lhs.true129 i32.const $push32=, 1 i32.add $push33=, $0, $pop32 i32.load8_u $push34=, 0($pop33) i32.const $push35=, 4 i32.and $push36=, $pop34, $pop35 - i32.const $push71=, 0 - i32.eq $push72=, $pop36, $pop71 - br_if 9, $pop72 # 9: down to label0 + i32.eqz $push60=, $pop36 + br_if 9, $pop60 # 9: down to label0 .LBB3_13: # %if.end137 end_block # label9: return diff --git a/test/torture-s/pr52979-1.c.s b/test/torture-s/pr52979-1.c.s index e659303d6..e9b1f3c59 100644 --- a/test/torture-s/pr52979-1.c.s +++ b/test/torture-s/pr52979-1.c.s @@ -47,9 +47,8 @@ bar: # @bar tee_local $push12=, $1=, $pop13 i32.store $discard=, e($pop12), $1 block - i32.const $push28=, 0 - i32.eq $push29=, $0, $pop28 - br_if 0, $pop29 # 0: down to label0 + i32.eqz $push28=, $0 + br_if 0, $pop28 # 0: down to label0 # BB#1: # %if.then i64.const $push9=, 33 i64.shl $push10=, $3, $pop9 @@ -99,9 +98,8 @@ baz: # @baz tee_local $push13=, $0=, $pop14 i32.store $discard=, e($pop13), $0 block - i32.const $push29=, 0 - i32.eq $push30=, $1, $pop29 - br_if 0, $pop30 # 0: down to label1 + i32.eqz $push29=, $1 + br_if 0, $pop29 # 0: down to label1 # BB#1: # %if.then.i i64.const $push9=, 33 i64.shl $push10=, $3, $pop9 @@ -156,9 +154,8 @@ main: # @main tee_local $push19=, $0=, $pop20 i32.store $discard=, e($pop19), $0 block - i32.const $push36=, 0 - i32.eq $push37=, $1, $pop36 - br_if 0, $pop37 # 0: down to label2 + i32.eqz $push36=, $1 + br_if 0, $pop36 # 0: down to label2 # BB#1: # %if.then.i.i i64.const $push9=, 33 i64.shl $push10=, $3, $pop9 diff --git a/test/torture-s/pr52979-2.c.s b/test/torture-s/pr52979-2.c.s index 42835065d..e7ae7e280 100644 --- a/test/torture-s/pr52979-2.c.s +++ b/test/torture-s/pr52979-2.c.s @@ -47,9 +47,8 @@ bar: # @bar tee_local $push12=, $1=, $pop13 i32.store $discard=, e($pop12), $1 block - i32.const $push28=, 0 - i32.eq $push29=, $0, $pop28 - br_if 0, $pop29 # 0: down to label0 + i32.eqz $push28=, $0 + br_if 0, $pop28 # 0: down to label0 # BB#1: # %if.then i64.const $push9=, 33 i64.shl $push10=, $3, $pop9 @@ -99,9 +98,8 @@ baz: # @baz tee_local $push13=, $0=, $pop14 i32.store $discard=, e($pop13), $0 block - i32.const $push29=, 0 - i32.eq $push30=, $1, $pop29 - br_if 0, $pop30 # 0: down to label1 + i32.eqz $push29=, $1 + br_if 0, $pop29 # 0: down to label1 # BB#1: # %if.then.i i64.const $push9=, 33 i64.shl $push10=, $3, $pop9 @@ -156,9 +154,8 @@ main: # @main tee_local $push19=, $0=, $pop20 i32.store $discard=, e($pop19), $0 block - i32.const $push36=, 0 - i32.eq $push37=, $1, $pop36 - br_if 0, $pop37 # 0: down to label2 + i32.eqz $push36=, $1 + br_if 0, $pop36 # 0: down to label2 # BB#1: # %if.then.i.i i64.const $push9=, 33 i64.shl $push10=, $3, $pop9 diff --git a/test/torture-s/pr53160.c.s b/test/torture-s/pr53160.c.s index 829200025..fbdbe7d8f 100644 --- a/test/torture-s/pr53160.c.s +++ b/test/torture-s/pr53160.c.s @@ -25,9 +25,8 @@ main: # @main block i32.const $push7=, 0 i32.load $push3=, g($pop7) - i32.const $push13=, 0 - i32.eq $push14=, $pop3, $pop13 - br_if 0, $pop14 # 0: down to label0 + i32.eqz $push13=, $pop3 + br_if 0, $pop13 # 0: down to label0 # BB#1: # %if.then i32.const $push8=, 0 i32.load $discard=, b($pop8) diff --git a/test/torture-s/pr53465.c.s b/test/torture-s/pr53465.c.s index a92b3b1a3..fd3bf7575 100644 --- a/test/torture-s/pr53465.c.s +++ b/test/torture-s/pr53465.c.s @@ -23,15 +23,13 @@ foo: # @foo copy_local $2=, $5 i32.load $push5=, 0($0) tee_local $push4=, $5=, $pop5 - i32.const $push8=, 0 - i32.eq $push9=, $pop4, $pop8 - br_if 1, $pop9 # 1: down to label3 + i32.eqz $push8=, $pop4 + br_if 1, $pop8 # 1: down to label3 # BB#3: # %if.end # in Loop: Header=BB0_2 Depth=1 block - i32.const $push10=, 0 - i32.eq $push11=, $4, $pop10 - br_if 0, $pop11 # 0: down to label4 + i32.eqz $push9=, $4 + br_if 0, $pop9 # 0: down to label4 # BB#4: # %if.end # in Loop: Header=BB0_2 Depth=1 i32.le_s $push1=, $5, $2 diff --git a/test/torture-s/pr53645-2.c.s b/test/torture-s/pr53645-2.c.s index 94e3b132f..a126732b8 100644 --- a/test/torture-s/pr53645-2.c.s +++ b/test/torture-s/pr53645-2.c.s @@ -777,66 +777,66 @@ uq33333333: # @uq33333333 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_u $push20=, 0($pop19) - i32.const $push22=, 3 - i32.div_u $2=, $pop20, $pop22 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_u $push17=, 0($pop16) - i32.const $push44=, 3 - i32.div_u $3=, $pop17, $pop44 - i32.const $push12=, 6 + i32.const $push0=, 14 + i32.add $push1=, $1, $pop0 + i32.load16_u $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_u $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_u $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_u $5=, 0($pop7) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_u $6=, 0($pop9) + i32.const $push12=, 2 i32.add $push13=, $1, $pop12 - i32.load16_u $push14=, 0($pop13) + i32.load16_u $8=, 0($pop13) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_u $7=, 0($pop11) + i32.load16_u $push14=, 0($1) + i32.const $push15=, 3 + i32.div_u $push23=, $pop14, $pop15 + i32.store16 $discard=, 0($0), $pop23 + i32.const $push44=, 14 + i32.add $push24=, $0, $pop44 i32.const $push43=, 3 - i32.div_u $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_u $push11=, 0($pop10) - i32.const $push42=, 3 - i32.div_u $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_u $push8=, 0($pop7) + i32.div_u $push22=, $2, $pop43 + i32.store16 $discard=, 0($pop24), $pop22 + i32.const $push42=, 12 + i32.add $push25=, $0, $pop42 i32.const $push41=, 3 - i32.div_u $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_u $push5=, 0($pop4) - i32.const $push40=, 3 - i32.div_u $7=, $pop5, $pop40 - i32.const $push0=, 14 - i32.add $push1=, $1, $pop0 - i32.load16_u $push2=, 0($pop1) + i32.div_u $push21=, $3, $pop41 + i32.store16 $discard=, 0($pop25), $pop21 + i32.const $push40=, 10 + i32.add $push26=, $0, $pop40 i32.const $push39=, 3 - i32.div_u $8=, $pop2, $pop39 - i32.load16_u $push21=, 0($1) - i32.const $push38=, 3 - i32.div_u $push23=, $pop21, $pop38 - i32.store16 $discard=, 0($0), $pop23 - i32.const $push37=, 14 - i32.add $push24=, $0, $pop37 - i32.store16 $discard=, 0($pop24), $8 - i32.const $push36=, 12 - i32.add $push25=, $0, $pop36 - i32.store16 $discard=, 0($pop25), $7 - i32.const $push35=, 10 - i32.add $push26=, $0, $pop35 - i32.store16 $discard=, 0($pop26), $6 - i32.const $push34=, 8 - i32.add $push27=, $0, $pop34 - i32.store16 $discard=, 0($pop27), $5 - i32.const $push33=, 6 - i32.add $push28=, $0, $pop33 - i32.store16 $discard=, 0($pop28), $4 - i32.const $push32=, 4 - i32.add $push29=, $0, $pop32 - i32.store16 $discard=, 0($pop29), $3 - i32.const $push31=, 2 - i32.add $push30=, $0, $pop31 - i32.store16 $discard=, 0($pop30), $2 + i32.div_u $push20=, $4, $pop39 + i32.store16 $discard=, 0($pop26), $pop20 + i32.const $push38=, 8 + i32.add $push27=, $0, $pop38 + i32.const $push37=, 3 + i32.div_u $push19=, $5, $pop37 + i32.store16 $discard=, 0($pop27), $pop19 + i32.const $push36=, 6 + i32.add $push28=, $0, $pop36 + i32.const $push35=, 3 + i32.div_u $push18=, $6, $pop35 + i32.store16 $discard=, 0($pop28), $pop18 + i32.const $push34=, 4 + i32.add $push29=, $0, $pop34 + i32.const $push33=, 3 + i32.div_u $push17=, $7, $pop33 + i32.store16 $discard=, 0($pop29), $pop17 + i32.const $push32=, 2 + i32.add $push30=, $0, $pop32 + i32.const $push31=, 3 + i32.div_u $push16=, $8, $pop31 + i32.store16 $discard=, 0($pop30), $pop16 return .endfunc .Lfunc_end8: @@ -850,66 +850,66 @@ ur33333333: # @ur33333333 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_u $push20=, 0($pop19) - i32.const $push22=, 3 - i32.rem_u $2=, $pop20, $pop22 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_u $push17=, 0($pop16) - i32.const $push44=, 3 - i32.rem_u $3=, $pop17, $pop44 - i32.const $push12=, 6 + i32.const $push0=, 14 + i32.add $push1=, $1, $pop0 + i32.load16_u $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_u $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_u $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_u $5=, 0($pop7) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_u $6=, 0($pop9) + i32.const $push12=, 2 i32.add $push13=, $1, $pop12 - i32.load16_u $push14=, 0($pop13) + i32.load16_u $8=, 0($pop13) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_u $7=, 0($pop11) + i32.load16_u $push14=, 0($1) + i32.const $push15=, 3 + i32.rem_u $push23=, $pop14, $pop15 + i32.store16 $discard=, 0($0), $pop23 + i32.const $push44=, 14 + i32.add $push24=, $0, $pop44 i32.const $push43=, 3 - i32.rem_u $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_u $push11=, 0($pop10) - i32.const $push42=, 3 - i32.rem_u $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_u $push8=, 0($pop7) + i32.rem_u $push22=, $2, $pop43 + i32.store16 $discard=, 0($pop24), $pop22 + i32.const $push42=, 12 + i32.add $push25=, $0, $pop42 i32.const $push41=, 3 - i32.rem_u $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_u $push5=, 0($pop4) - i32.const $push40=, 3 - i32.rem_u $7=, $pop5, $pop40 - i32.const $push0=, 14 - i32.add $push1=, $1, $pop0 - i32.load16_u $push2=, 0($pop1) + i32.rem_u $push21=, $3, $pop41 + i32.store16 $discard=, 0($pop25), $pop21 + i32.const $push40=, 10 + i32.add $push26=, $0, $pop40 i32.const $push39=, 3 - i32.rem_u $8=, $pop2, $pop39 - i32.load16_u $push21=, 0($1) - i32.const $push38=, 3 - i32.rem_u $push23=, $pop21, $pop38 - i32.store16 $discard=, 0($0), $pop23 - i32.const $push37=, 14 - i32.add $push24=, $0, $pop37 - i32.store16 $discard=, 0($pop24), $8 - i32.const $push36=, 12 - i32.add $push25=, $0, $pop36 - i32.store16 $discard=, 0($pop25), $7 - i32.const $push35=, 10 - i32.add $push26=, $0, $pop35 - i32.store16 $discard=, 0($pop26), $6 - i32.const $push34=, 8 - i32.add $push27=, $0, $pop34 - i32.store16 $discard=, 0($pop27), $5 - i32.const $push33=, 6 - i32.add $push28=, $0, $pop33 - i32.store16 $discard=, 0($pop28), $4 - i32.const $push32=, 4 - i32.add $push29=, $0, $pop32 - i32.store16 $discard=, 0($pop29), $3 - i32.const $push31=, 2 - i32.add $push30=, $0, $pop31 - i32.store16 $discard=, 0($pop30), $2 + i32.rem_u $push20=, $4, $pop39 + i32.store16 $discard=, 0($pop26), $pop20 + i32.const $push38=, 8 + i32.add $push27=, $0, $pop38 + i32.const $push37=, 3 + i32.rem_u $push19=, $5, $pop37 + i32.store16 $discard=, 0($pop27), $pop19 + i32.const $push36=, 6 + i32.add $push28=, $0, $pop36 + i32.const $push35=, 3 + i32.rem_u $push18=, $6, $pop35 + i32.store16 $discard=, 0($pop28), $pop18 + i32.const $push34=, 4 + i32.add $push29=, $0, $pop34 + i32.const $push33=, 3 + i32.rem_u $push17=, $7, $pop33 + i32.store16 $discard=, 0($pop29), $pop17 + i32.const $push32=, 2 + i32.add $push30=, $0, $pop32 + i32.const $push31=, 3 + i32.rem_u $push16=, $8, $pop31 + i32.store16 $discard=, 0($pop30), $pop16 return .endfunc .Lfunc_end9: @@ -923,66 +923,66 @@ sq33333333: # @sq33333333 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_s $push20=, 0($pop19) - i32.const $push22=, 3 - i32.div_s $2=, $pop20, $pop22 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_s $push17=, 0($pop16) - i32.const $push44=, 3 - i32.div_s $3=, $pop17, $pop44 - i32.const $push12=, 6 + i32.const $push0=, 14 + i32.add $push1=, $1, $pop0 + i32.load16_s $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_s $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_s $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_s $5=, 0($pop7) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_s $6=, 0($pop9) + i32.const $push12=, 2 i32.add $push13=, $1, $pop12 - i32.load16_s $push14=, 0($pop13) + i32.load16_s $8=, 0($pop13) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_s $7=, 0($pop11) + i32.load16_s $push14=, 0($1) + i32.const $push15=, 3 + i32.div_s $push23=, $pop14, $pop15 + i32.store16 $discard=, 0($0), $pop23 + i32.const $push44=, 14 + i32.add $push24=, $0, $pop44 i32.const $push43=, 3 - i32.div_s $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_s $push11=, 0($pop10) - i32.const $push42=, 3 - i32.div_s $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_s $push8=, 0($pop7) + i32.div_s $push22=, $2, $pop43 + i32.store16 $discard=, 0($pop24), $pop22 + i32.const $push42=, 12 + i32.add $push25=, $0, $pop42 i32.const $push41=, 3 - i32.div_s $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_s $push5=, 0($pop4) - i32.const $push40=, 3 - i32.div_s $7=, $pop5, $pop40 - i32.const $push0=, 14 - i32.add $push1=, $1, $pop0 - i32.load16_s $push2=, 0($pop1) + i32.div_s $push21=, $3, $pop41 + i32.store16 $discard=, 0($pop25), $pop21 + i32.const $push40=, 10 + i32.add $push26=, $0, $pop40 i32.const $push39=, 3 - i32.div_s $8=, $pop2, $pop39 - i32.load16_s $push21=, 0($1) - i32.const $push38=, 3 - i32.div_s $push23=, $pop21, $pop38 - i32.store16 $discard=, 0($0), $pop23 - i32.const $push37=, 14 - i32.add $push24=, $0, $pop37 - i32.store16 $discard=, 0($pop24), $8 - i32.const $push36=, 12 - i32.add $push25=, $0, $pop36 - i32.store16 $discard=, 0($pop25), $7 - i32.const $push35=, 10 - i32.add $push26=, $0, $pop35 - i32.store16 $discard=, 0($pop26), $6 - i32.const $push34=, 8 - i32.add $push27=, $0, $pop34 - i32.store16 $discard=, 0($pop27), $5 - i32.const $push33=, 6 - i32.add $push28=, $0, $pop33 - i32.store16 $discard=, 0($pop28), $4 - i32.const $push32=, 4 - i32.add $push29=, $0, $pop32 - i32.store16 $discard=, 0($pop29), $3 - i32.const $push31=, 2 - i32.add $push30=, $0, $pop31 - i32.store16 $discard=, 0($pop30), $2 + i32.div_s $push20=, $4, $pop39 + i32.store16 $discard=, 0($pop26), $pop20 + i32.const $push38=, 8 + i32.add $push27=, $0, $pop38 + i32.const $push37=, 3 + i32.div_s $push19=, $5, $pop37 + i32.store16 $discard=, 0($pop27), $pop19 + i32.const $push36=, 6 + i32.add $push28=, $0, $pop36 + i32.const $push35=, 3 + i32.div_s $push18=, $6, $pop35 + i32.store16 $discard=, 0($pop28), $pop18 + i32.const $push34=, 4 + i32.add $push29=, $0, $pop34 + i32.const $push33=, 3 + i32.div_s $push17=, $7, $pop33 + i32.store16 $discard=, 0($pop29), $pop17 + i32.const $push32=, 2 + i32.add $push30=, $0, $pop32 + i32.const $push31=, 3 + i32.div_s $push16=, $8, $pop31 + i32.store16 $discard=, 0($pop30), $pop16 return .endfunc .Lfunc_end10: @@ -996,66 +996,66 @@ sr33333333: # @sr33333333 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_s $push20=, 0($pop19) - i32.const $push22=, 3 - i32.rem_s $2=, $pop20, $pop22 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_s $push17=, 0($pop16) - i32.const $push44=, 3 - i32.rem_s $3=, $pop17, $pop44 - i32.const $push12=, 6 + i32.const $push0=, 14 + i32.add $push1=, $1, $pop0 + i32.load16_s $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_s $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_s $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_s $5=, 0($pop7) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_s $6=, 0($pop9) + i32.const $push12=, 2 i32.add $push13=, $1, $pop12 - i32.load16_s $push14=, 0($pop13) + i32.load16_s $8=, 0($pop13) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_s $7=, 0($pop11) + i32.load16_s $push14=, 0($1) + i32.const $push15=, 3 + i32.rem_s $push23=, $pop14, $pop15 + i32.store16 $discard=, 0($0), $pop23 + i32.const $push44=, 14 + i32.add $push24=, $0, $pop44 i32.const $push43=, 3 - i32.rem_s $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_s $push11=, 0($pop10) - i32.const $push42=, 3 - i32.rem_s $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_s $push8=, 0($pop7) + i32.rem_s $push22=, $2, $pop43 + i32.store16 $discard=, 0($pop24), $pop22 + i32.const $push42=, 12 + i32.add $push25=, $0, $pop42 i32.const $push41=, 3 - i32.rem_s $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_s $push5=, 0($pop4) - i32.const $push40=, 3 - i32.rem_s $7=, $pop5, $pop40 - i32.const $push0=, 14 - i32.add $push1=, $1, $pop0 - i32.load16_s $push2=, 0($pop1) + i32.rem_s $push21=, $3, $pop41 + i32.store16 $discard=, 0($pop25), $pop21 + i32.const $push40=, 10 + i32.add $push26=, $0, $pop40 i32.const $push39=, 3 - i32.rem_s $8=, $pop2, $pop39 - i32.load16_s $push21=, 0($1) - i32.const $push38=, 3 - i32.rem_s $push23=, $pop21, $pop38 - i32.store16 $discard=, 0($0), $pop23 - i32.const $push37=, 14 - i32.add $push24=, $0, $pop37 - i32.store16 $discard=, 0($pop24), $8 - i32.const $push36=, 12 - i32.add $push25=, $0, $pop36 - i32.store16 $discard=, 0($pop25), $7 - i32.const $push35=, 10 - i32.add $push26=, $0, $pop35 - i32.store16 $discard=, 0($pop26), $6 - i32.const $push34=, 8 - i32.add $push27=, $0, $pop34 - i32.store16 $discard=, 0($pop27), $5 - i32.const $push33=, 6 - i32.add $push28=, $0, $pop33 - i32.store16 $discard=, 0($pop28), $4 - i32.const $push32=, 4 - i32.add $push29=, $0, $pop32 - i32.store16 $discard=, 0($pop29), $3 - i32.const $push31=, 2 - i32.add $push30=, $0, $pop31 - i32.store16 $discard=, 0($pop30), $2 + i32.rem_s $push20=, $4, $pop39 + i32.store16 $discard=, 0($pop26), $pop20 + i32.const $push38=, 8 + i32.add $push27=, $0, $pop38 + i32.const $push37=, 3 + i32.rem_s $push19=, $5, $pop37 + i32.store16 $discard=, 0($pop27), $pop19 + i32.const $push36=, 6 + i32.add $push28=, $0, $pop36 + i32.const $push35=, 3 + i32.rem_s $push18=, $6, $pop35 + i32.store16 $discard=, 0($pop28), $pop18 + i32.const $push34=, 4 + i32.add $push29=, $0, $pop34 + i32.const $push33=, 3 + i32.rem_s $push17=, $7, $pop33 + i32.store16 $discard=, 0($pop29), $pop17 + i32.const $push32=, 2 + i32.add $push30=, $0, $pop32 + i32.const $push31=, 3 + i32.rem_s $push16=, $8, $pop31 + i32.store16 $discard=, 0($pop30), $pop16 return .endfunc .Lfunc_end11: @@ -1069,66 +1069,66 @@ uq65656565: # @uq65656565 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_u $push20=, 0($pop19) - i32.const $push22=, 5 - i32.div_u $2=, $pop20, $pop22 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_u $push17=, 0($pop16) - i32.const $push12=, 6 - i32.div_u $3=, $pop17, $pop12 - i32.const $push44=, 6 - i32.add $push13=, $1, $pop44 - i32.load16_u $push14=, 0($pop13) - i32.const $push43=, 5 - i32.div_u $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_u $push11=, 0($pop10) - i32.const $push42=, 6 - i32.div_u $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_u $push8=, 0($pop7) - i32.const $push41=, 5 - i32.div_u $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_u $push5=, 0($pop4) - i32.const $push40=, 6 - i32.div_u $7=, $pop5, $pop40 i32.const $push0=, 14 i32.add $push1=, $1, $pop0 - i32.load16_u $push2=, 0($pop1) - i32.const $push39=, 5 - i32.div_u $8=, $pop2, $pop39 - i32.load16_u $push21=, 0($1) - i32.const $push38=, 6 - i32.div_u $push23=, $pop21, $pop38 + i32.load16_u $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_u $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_u $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_u $5=, 0($pop7) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_u $6=, 0($pop9) + i32.const $push12=, 2 + i32.add $push13=, $1, $pop12 + i32.load16_u $8=, 0($pop13) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_u $7=, 0($pop11) + i32.load16_u $push14=, 0($1) + i32.const $push44=, 6 + i32.div_u $push23=, $pop14, $pop44 i32.store16 $discard=, 0($0), $pop23 - i32.const $push37=, 14 - i32.add $push24=, $0, $pop37 - i32.store16 $discard=, 0($pop24), $8 - i32.const $push36=, 12 - i32.add $push25=, $0, $pop36 - i32.store16 $discard=, 0($pop25), $7 - i32.const $push35=, 10 - i32.add $push26=, $0, $pop35 - i32.store16 $discard=, 0($pop26), $6 - i32.const $push34=, 8 - i32.add $push27=, $0, $pop34 - i32.store16 $discard=, 0($pop27), $5 + i32.const $push43=, 14 + i32.add $push24=, $0, $pop43 + i32.const $push15=, 5 + i32.div_u $push22=, $2, $pop15 + i32.store16 $discard=, 0($pop24), $pop22 + i32.const $push42=, 12 + i32.add $push25=, $0, $pop42 + i32.const $push41=, 6 + i32.div_u $push21=, $3, $pop41 + i32.store16 $discard=, 0($pop25), $pop21 + i32.const $push40=, 10 + i32.add $push26=, $0, $pop40 + i32.const $push39=, 5 + i32.div_u $push20=, $4, $pop39 + i32.store16 $discard=, 0($pop26), $pop20 + i32.const $push38=, 8 + i32.add $push27=, $0, $pop38 + i32.const $push37=, 6 + i32.div_u $push19=, $5, $pop37 + i32.store16 $discard=, 0($pop27), $pop19 + i32.const $push36=, 6 + i32.add $push28=, $0, $pop36 + i32.const $push35=, 5 + i32.div_u $push18=, $6, $pop35 + i32.store16 $discard=, 0($pop28), $pop18 + i32.const $push34=, 4 + i32.add $push29=, $0, $pop34 i32.const $push33=, 6 - i32.add $push28=, $0, $pop33 - i32.store16 $discard=, 0($pop28), $4 - i32.const $push32=, 4 - i32.add $push29=, $0, $pop32 - i32.store16 $discard=, 0($pop29), $3 - i32.const $push31=, 2 - i32.add $push30=, $0, $pop31 - i32.store16 $discard=, 0($pop30), $2 + i32.div_u $push17=, $7, $pop33 + i32.store16 $discard=, 0($pop29), $pop17 + i32.const $push32=, 2 + i32.add $push30=, $0, $pop32 + i32.const $push31=, 5 + i32.div_u $push16=, $8, $pop31 + i32.store16 $discard=, 0($pop30), $pop16 return .endfunc .Lfunc_end12: @@ -1142,66 +1142,66 @@ ur65656565: # @ur65656565 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_u $push20=, 0($pop19) - i32.const $push22=, 5 - i32.rem_u $2=, $pop20, $pop22 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_u $push17=, 0($pop16) - i32.const $push12=, 6 - i32.rem_u $3=, $pop17, $pop12 - i32.const $push44=, 6 - i32.add $push13=, $1, $pop44 - i32.load16_u $push14=, 0($pop13) - i32.const $push43=, 5 - i32.rem_u $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_u $push11=, 0($pop10) - i32.const $push42=, 6 - i32.rem_u $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_u $push8=, 0($pop7) - i32.const $push41=, 5 - i32.rem_u $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_u $push5=, 0($pop4) - i32.const $push40=, 6 - i32.rem_u $7=, $pop5, $pop40 i32.const $push0=, 14 i32.add $push1=, $1, $pop0 - i32.load16_u $push2=, 0($pop1) - i32.const $push39=, 5 - i32.rem_u $8=, $pop2, $pop39 - i32.load16_u $push21=, 0($1) - i32.const $push38=, 6 - i32.rem_u $push23=, $pop21, $pop38 + i32.load16_u $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_u $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_u $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_u $5=, 0($pop7) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_u $6=, 0($pop9) + i32.const $push12=, 2 + i32.add $push13=, $1, $pop12 + i32.load16_u $8=, 0($pop13) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_u $7=, 0($pop11) + i32.load16_u $push14=, 0($1) + i32.const $push44=, 6 + i32.rem_u $push23=, $pop14, $pop44 i32.store16 $discard=, 0($0), $pop23 - i32.const $push37=, 14 - i32.add $push24=, $0, $pop37 - i32.store16 $discard=, 0($pop24), $8 - i32.const $push36=, 12 - i32.add $push25=, $0, $pop36 - i32.store16 $discard=, 0($pop25), $7 - i32.const $push35=, 10 - i32.add $push26=, $0, $pop35 - i32.store16 $discard=, 0($pop26), $6 - i32.const $push34=, 8 - i32.add $push27=, $0, $pop34 - i32.store16 $discard=, 0($pop27), $5 + i32.const $push43=, 14 + i32.add $push24=, $0, $pop43 + i32.const $push15=, 5 + i32.rem_u $push22=, $2, $pop15 + i32.store16 $discard=, 0($pop24), $pop22 + i32.const $push42=, 12 + i32.add $push25=, $0, $pop42 + i32.const $push41=, 6 + i32.rem_u $push21=, $3, $pop41 + i32.store16 $discard=, 0($pop25), $pop21 + i32.const $push40=, 10 + i32.add $push26=, $0, $pop40 + i32.const $push39=, 5 + i32.rem_u $push20=, $4, $pop39 + i32.store16 $discard=, 0($pop26), $pop20 + i32.const $push38=, 8 + i32.add $push27=, $0, $pop38 + i32.const $push37=, 6 + i32.rem_u $push19=, $5, $pop37 + i32.store16 $discard=, 0($pop27), $pop19 + i32.const $push36=, 6 + i32.add $push28=, $0, $pop36 + i32.const $push35=, 5 + i32.rem_u $push18=, $6, $pop35 + i32.store16 $discard=, 0($pop28), $pop18 + i32.const $push34=, 4 + i32.add $push29=, $0, $pop34 i32.const $push33=, 6 - i32.add $push28=, $0, $pop33 - i32.store16 $discard=, 0($pop28), $4 - i32.const $push32=, 4 - i32.add $push29=, $0, $pop32 - i32.store16 $discard=, 0($pop29), $3 - i32.const $push31=, 2 - i32.add $push30=, $0, $pop31 - i32.store16 $discard=, 0($pop30), $2 + i32.rem_u $push17=, $7, $pop33 + i32.store16 $discard=, 0($pop29), $pop17 + i32.const $push32=, 2 + i32.add $push30=, $0, $pop32 + i32.const $push31=, 5 + i32.rem_u $push16=, $8, $pop31 + i32.store16 $discard=, 0($pop30), $pop16 return .endfunc .Lfunc_end13: @@ -1215,66 +1215,66 @@ sq65656565: # @sq65656565 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_s $push20=, 0($pop19) - i32.const $push22=, 5 - i32.div_s $2=, $pop20, $pop22 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_s $push17=, 0($pop16) - i32.const $push12=, 6 - i32.div_s $3=, $pop17, $pop12 - i32.const $push44=, 6 - i32.add $push13=, $1, $pop44 - i32.load16_s $push14=, 0($pop13) - i32.const $push43=, 5 - i32.div_s $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_s $push11=, 0($pop10) - i32.const $push42=, 6 - i32.div_s $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_s $push8=, 0($pop7) - i32.const $push41=, 5 - i32.div_s $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_s $push5=, 0($pop4) - i32.const $push40=, 6 - i32.div_s $7=, $pop5, $pop40 i32.const $push0=, 14 i32.add $push1=, $1, $pop0 - i32.load16_s $push2=, 0($pop1) - i32.const $push39=, 5 - i32.div_s $8=, $pop2, $pop39 - i32.load16_s $push21=, 0($1) - i32.const $push38=, 6 - i32.div_s $push23=, $pop21, $pop38 + i32.load16_s $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_s $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_s $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_s $5=, 0($pop7) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_s $6=, 0($pop9) + i32.const $push12=, 2 + i32.add $push13=, $1, $pop12 + i32.load16_s $8=, 0($pop13) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_s $7=, 0($pop11) + i32.load16_s $push14=, 0($1) + i32.const $push44=, 6 + i32.div_s $push23=, $pop14, $pop44 i32.store16 $discard=, 0($0), $pop23 - i32.const $push37=, 14 - i32.add $push24=, $0, $pop37 - i32.store16 $discard=, 0($pop24), $8 - i32.const $push36=, 12 - i32.add $push25=, $0, $pop36 - i32.store16 $discard=, 0($pop25), $7 - i32.const $push35=, 10 - i32.add $push26=, $0, $pop35 - i32.store16 $discard=, 0($pop26), $6 - i32.const $push34=, 8 - i32.add $push27=, $0, $pop34 - i32.store16 $discard=, 0($pop27), $5 + i32.const $push43=, 14 + i32.add $push24=, $0, $pop43 + i32.const $push15=, 5 + i32.div_s $push22=, $2, $pop15 + i32.store16 $discard=, 0($pop24), $pop22 + i32.const $push42=, 12 + i32.add $push25=, $0, $pop42 + i32.const $push41=, 6 + i32.div_s $push21=, $3, $pop41 + i32.store16 $discard=, 0($pop25), $pop21 + i32.const $push40=, 10 + i32.add $push26=, $0, $pop40 + i32.const $push39=, 5 + i32.div_s $push20=, $4, $pop39 + i32.store16 $discard=, 0($pop26), $pop20 + i32.const $push38=, 8 + i32.add $push27=, $0, $pop38 + i32.const $push37=, 6 + i32.div_s $push19=, $5, $pop37 + i32.store16 $discard=, 0($pop27), $pop19 + i32.const $push36=, 6 + i32.add $push28=, $0, $pop36 + i32.const $push35=, 5 + i32.div_s $push18=, $6, $pop35 + i32.store16 $discard=, 0($pop28), $pop18 + i32.const $push34=, 4 + i32.add $push29=, $0, $pop34 i32.const $push33=, 6 - i32.add $push28=, $0, $pop33 - i32.store16 $discard=, 0($pop28), $4 - i32.const $push32=, 4 - i32.add $push29=, $0, $pop32 - i32.store16 $discard=, 0($pop29), $3 - i32.const $push31=, 2 - i32.add $push30=, $0, $pop31 - i32.store16 $discard=, 0($pop30), $2 + i32.div_s $push17=, $7, $pop33 + i32.store16 $discard=, 0($pop29), $pop17 + i32.const $push32=, 2 + i32.add $push30=, $0, $pop32 + i32.const $push31=, 5 + i32.div_s $push16=, $8, $pop31 + i32.store16 $discard=, 0($pop30), $pop16 return .endfunc .Lfunc_end14: @@ -1288,66 +1288,66 @@ sr65656565: # @sr65656565 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_s $push20=, 0($pop19) - i32.const $push22=, 5 - i32.rem_s $2=, $pop20, $pop22 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_s $push17=, 0($pop16) - i32.const $push12=, 6 - i32.rem_s $3=, $pop17, $pop12 - i32.const $push44=, 6 - i32.add $push13=, $1, $pop44 - i32.load16_s $push14=, 0($pop13) - i32.const $push43=, 5 - i32.rem_s $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_s $push11=, 0($pop10) - i32.const $push42=, 6 - i32.rem_s $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_s $push8=, 0($pop7) - i32.const $push41=, 5 - i32.rem_s $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_s $push5=, 0($pop4) - i32.const $push40=, 6 - i32.rem_s $7=, $pop5, $pop40 i32.const $push0=, 14 i32.add $push1=, $1, $pop0 - i32.load16_s $push2=, 0($pop1) - i32.const $push39=, 5 - i32.rem_s $8=, $pop2, $pop39 - i32.load16_s $push21=, 0($1) - i32.const $push38=, 6 - i32.rem_s $push23=, $pop21, $pop38 + i32.load16_s $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_s $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_s $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_s $5=, 0($pop7) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_s $6=, 0($pop9) + i32.const $push12=, 2 + i32.add $push13=, $1, $pop12 + i32.load16_s $8=, 0($pop13) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_s $7=, 0($pop11) + i32.load16_s $push14=, 0($1) + i32.const $push44=, 6 + i32.rem_s $push23=, $pop14, $pop44 i32.store16 $discard=, 0($0), $pop23 - i32.const $push37=, 14 - i32.add $push24=, $0, $pop37 - i32.store16 $discard=, 0($pop24), $8 - i32.const $push36=, 12 - i32.add $push25=, $0, $pop36 - i32.store16 $discard=, 0($pop25), $7 - i32.const $push35=, 10 - i32.add $push26=, $0, $pop35 - i32.store16 $discard=, 0($pop26), $6 - i32.const $push34=, 8 - i32.add $push27=, $0, $pop34 - i32.store16 $discard=, 0($pop27), $5 + i32.const $push43=, 14 + i32.add $push24=, $0, $pop43 + i32.const $push15=, 5 + i32.rem_s $push22=, $2, $pop15 + i32.store16 $discard=, 0($pop24), $pop22 + i32.const $push42=, 12 + i32.add $push25=, $0, $pop42 + i32.const $push41=, 6 + i32.rem_s $push21=, $3, $pop41 + i32.store16 $discard=, 0($pop25), $pop21 + i32.const $push40=, 10 + i32.add $push26=, $0, $pop40 + i32.const $push39=, 5 + i32.rem_s $push20=, $4, $pop39 + i32.store16 $discard=, 0($pop26), $pop20 + i32.const $push38=, 8 + i32.add $push27=, $0, $pop38 + i32.const $push37=, 6 + i32.rem_s $push19=, $5, $pop37 + i32.store16 $discard=, 0($pop27), $pop19 + i32.const $push36=, 6 + i32.add $push28=, $0, $pop36 + i32.const $push35=, 5 + i32.rem_s $push18=, $6, $pop35 + i32.store16 $discard=, 0($pop28), $pop18 + i32.const $push34=, 4 + i32.add $push29=, $0, $pop34 i32.const $push33=, 6 - i32.add $push28=, $0, $pop33 - i32.store16 $discard=, 0($pop28), $4 - i32.const $push32=, 4 - i32.add $push29=, $0, $pop32 - i32.store16 $discard=, 0($pop29), $3 - i32.const $push31=, 2 - i32.add $push30=, $0, $pop31 - i32.store16 $discard=, 0($pop30), $2 + i32.rem_s $push17=, $7, $pop33 + i32.store16 $discard=, 0($pop29), $pop17 + i32.const $push32=, 2 + i32.add $push30=, $0, $pop32 + i32.const $push31=, 5 + i32.rem_s $push16=, $8, $pop31 + i32.store16 $discard=, 0($pop30), $pop16 return .endfunc .Lfunc_end15: @@ -1361,66 +1361,66 @@ uq14141461461414: # @uq14141461461414 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_u $push20=, 0($pop19) i32.const $push0=, 14 - i32.div_u $2=, $pop20, $pop0 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_u $push17=, 0($pop16) - i32.const $push44=, 14 - i32.div_u $3=, $pop17, $pop44 - i32.const $push12=, 6 + i32.add $push1=, $1, $pop0 + i32.load16_u $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_u $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_u $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_u $5=, 0($pop7) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_u $7=, 0($pop11) + i32.const $push12=, 2 i32.add $push13=, $1, $pop12 - i32.load16_u $push14=, 0($pop13) - i32.const $push43=, 6 - i32.div_u $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_u $push11=, 0($pop10) + i32.load16_u $8=, 0($pop13) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_u $6=, 0($pop9) + i32.load16_u $push14=, 0($1) + i32.const $push44=, 14 + i32.div_u $push22=, $pop14, $pop44 + i32.store16 $discard=, 0($0), $pop22 + i32.const $push43=, 14 + i32.add $push23=, $0, $pop43 i32.const $push42=, 14 - i32.div_u $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_u $push8=, 0($pop7) - i32.const $push41=, 6 - i32.div_u $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_u $push5=, 0($pop4) + i32.div_u $push21=, $2, $pop42 + i32.store16 $discard=, 0($pop23), $pop21 + i32.const $push41=, 12 + i32.add $push24=, $0, $pop41 i32.const $push40=, 14 - i32.div_u $7=, $pop5, $pop40 - i32.const $push39=, 14 - i32.add $push1=, $1, $pop39 - i32.load16_u $push2=, 0($pop1) - i32.const $push38=, 14 - i32.div_u $8=, $pop2, $pop38 - i32.load16_u $push21=, 0($1) - i32.const $push37=, 14 - i32.div_u $push22=, $pop21, $pop37 - i32.store16 $discard=, 0($0), $pop22 + i32.div_u $push20=, $3, $pop40 + i32.store16 $discard=, 0($pop24), $pop20 + i32.const $push39=, 10 + i32.add $push25=, $0, $pop39 + i32.const $push38=, 6 + i32.div_u $push19=, $4, $pop38 + i32.store16 $discard=, 0($pop25), $pop19 + i32.const $push37=, 8 + i32.add $push26=, $0, $pop37 i32.const $push36=, 14 - i32.add $push23=, $0, $pop36 - i32.store16 $discard=, 0($pop23), $8 - i32.const $push35=, 12 - i32.add $push24=, $0, $pop35 - i32.store16 $discard=, 0($pop24), $7 - i32.const $push34=, 10 - i32.add $push25=, $0, $pop34 - i32.store16 $discard=, 0($pop25), $6 - i32.const $push33=, 8 - i32.add $push26=, $0, $pop33 - i32.store16 $discard=, 0($pop26), $5 - i32.const $push32=, 6 - i32.add $push27=, $0, $pop32 - i32.store16 $discard=, 0($pop27), $4 - i32.const $push31=, 4 - i32.add $push28=, $0, $pop31 - i32.store16 $discard=, 0($pop28), $3 - i32.const $push30=, 2 - i32.add $push29=, $0, $pop30 - i32.store16 $discard=, 0($pop29), $2 + i32.div_u $push18=, $5, $pop36 + i32.store16 $discard=, 0($pop26), $pop18 + i32.const $push35=, 6 + i32.add $push27=, $0, $pop35 + i32.const $push34=, 6 + i32.div_u $push17=, $6, $pop34 + i32.store16 $discard=, 0($pop27), $pop17 + i32.const $push33=, 4 + i32.add $push28=, $0, $pop33 + i32.const $push32=, 14 + i32.div_u $push16=, $7, $pop32 + i32.store16 $discard=, 0($pop28), $pop16 + i32.const $push31=, 2 + i32.add $push29=, $0, $pop31 + i32.const $push30=, 14 + i32.div_u $push15=, $8, $pop30 + i32.store16 $discard=, 0($pop29), $pop15 return .endfunc .Lfunc_end16: @@ -1434,66 +1434,66 @@ ur14141461461414: # @ur14141461461414 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_u $push20=, 0($pop19) i32.const $push0=, 14 - i32.rem_u $2=, $pop20, $pop0 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_u $push17=, 0($pop16) - i32.const $push44=, 14 - i32.rem_u $3=, $pop17, $pop44 - i32.const $push12=, 6 + i32.add $push1=, $1, $pop0 + i32.load16_u $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_u $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_u $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_u $5=, 0($pop7) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_u $7=, 0($pop11) + i32.const $push12=, 2 i32.add $push13=, $1, $pop12 - i32.load16_u $push14=, 0($pop13) - i32.const $push43=, 6 - i32.rem_u $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_u $push11=, 0($pop10) + i32.load16_u $8=, 0($pop13) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_u $6=, 0($pop9) + i32.load16_u $push14=, 0($1) + i32.const $push44=, 14 + i32.rem_u $push22=, $pop14, $pop44 + i32.store16 $discard=, 0($0), $pop22 + i32.const $push43=, 14 + i32.add $push23=, $0, $pop43 i32.const $push42=, 14 - i32.rem_u $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_u $push8=, 0($pop7) - i32.const $push41=, 6 - i32.rem_u $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_u $push5=, 0($pop4) + i32.rem_u $push21=, $2, $pop42 + i32.store16 $discard=, 0($pop23), $pop21 + i32.const $push41=, 12 + i32.add $push24=, $0, $pop41 i32.const $push40=, 14 - i32.rem_u $7=, $pop5, $pop40 - i32.const $push39=, 14 - i32.add $push1=, $1, $pop39 - i32.load16_u $push2=, 0($pop1) - i32.const $push38=, 14 - i32.rem_u $8=, $pop2, $pop38 - i32.load16_u $push21=, 0($1) - i32.const $push37=, 14 - i32.rem_u $push22=, $pop21, $pop37 - i32.store16 $discard=, 0($0), $pop22 + i32.rem_u $push20=, $3, $pop40 + i32.store16 $discard=, 0($pop24), $pop20 + i32.const $push39=, 10 + i32.add $push25=, $0, $pop39 + i32.const $push38=, 6 + i32.rem_u $push19=, $4, $pop38 + i32.store16 $discard=, 0($pop25), $pop19 + i32.const $push37=, 8 + i32.add $push26=, $0, $pop37 i32.const $push36=, 14 - i32.add $push23=, $0, $pop36 - i32.store16 $discard=, 0($pop23), $8 - i32.const $push35=, 12 - i32.add $push24=, $0, $pop35 - i32.store16 $discard=, 0($pop24), $7 - i32.const $push34=, 10 - i32.add $push25=, $0, $pop34 - i32.store16 $discard=, 0($pop25), $6 - i32.const $push33=, 8 - i32.add $push26=, $0, $pop33 - i32.store16 $discard=, 0($pop26), $5 - i32.const $push32=, 6 - i32.add $push27=, $0, $pop32 - i32.store16 $discard=, 0($pop27), $4 - i32.const $push31=, 4 - i32.add $push28=, $0, $pop31 - i32.store16 $discard=, 0($pop28), $3 - i32.const $push30=, 2 - i32.add $push29=, $0, $pop30 - i32.store16 $discard=, 0($pop29), $2 + i32.rem_u $push18=, $5, $pop36 + i32.store16 $discard=, 0($pop26), $pop18 + i32.const $push35=, 6 + i32.add $push27=, $0, $pop35 + i32.const $push34=, 6 + i32.rem_u $push17=, $6, $pop34 + i32.store16 $discard=, 0($pop27), $pop17 + i32.const $push33=, 4 + i32.add $push28=, $0, $pop33 + i32.const $push32=, 14 + i32.rem_u $push16=, $7, $pop32 + i32.store16 $discard=, 0($pop28), $pop16 + i32.const $push31=, 2 + i32.add $push29=, $0, $pop31 + i32.const $push30=, 14 + i32.rem_u $push15=, $8, $pop30 + i32.store16 $discard=, 0($pop29), $pop15 return .endfunc .Lfunc_end17: @@ -1507,66 +1507,66 @@ sq14141461461414: # @sq14141461461414 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_s $push20=, 0($pop19) i32.const $push0=, 14 - i32.div_s $2=, $pop20, $pop0 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_s $push17=, 0($pop16) - i32.const $push44=, 14 - i32.div_s $3=, $pop17, $pop44 - i32.const $push12=, 6 + i32.add $push1=, $1, $pop0 + i32.load16_s $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_s $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_s $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_s $5=, 0($pop7) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_s $7=, 0($pop11) + i32.const $push12=, 2 i32.add $push13=, $1, $pop12 - i32.load16_s $push14=, 0($pop13) - i32.const $push43=, 6 - i32.div_s $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_s $push11=, 0($pop10) + i32.load16_s $8=, 0($pop13) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_s $6=, 0($pop9) + i32.load16_s $push14=, 0($1) + i32.const $push44=, 14 + i32.div_s $push22=, $pop14, $pop44 + i32.store16 $discard=, 0($0), $pop22 + i32.const $push43=, 14 + i32.add $push23=, $0, $pop43 i32.const $push42=, 14 - i32.div_s $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_s $push8=, 0($pop7) - i32.const $push41=, 6 - i32.div_s $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_s $push5=, 0($pop4) + i32.div_s $push21=, $2, $pop42 + i32.store16 $discard=, 0($pop23), $pop21 + i32.const $push41=, 12 + i32.add $push24=, $0, $pop41 i32.const $push40=, 14 - i32.div_s $7=, $pop5, $pop40 - i32.const $push39=, 14 - i32.add $push1=, $1, $pop39 - i32.load16_s $push2=, 0($pop1) - i32.const $push38=, 14 - i32.div_s $8=, $pop2, $pop38 - i32.load16_s $push21=, 0($1) - i32.const $push37=, 14 - i32.div_s $push22=, $pop21, $pop37 - i32.store16 $discard=, 0($0), $pop22 + i32.div_s $push20=, $3, $pop40 + i32.store16 $discard=, 0($pop24), $pop20 + i32.const $push39=, 10 + i32.add $push25=, $0, $pop39 + i32.const $push38=, 6 + i32.div_s $push19=, $4, $pop38 + i32.store16 $discard=, 0($pop25), $pop19 + i32.const $push37=, 8 + i32.add $push26=, $0, $pop37 i32.const $push36=, 14 - i32.add $push23=, $0, $pop36 - i32.store16 $discard=, 0($pop23), $8 - i32.const $push35=, 12 - i32.add $push24=, $0, $pop35 - i32.store16 $discard=, 0($pop24), $7 - i32.const $push34=, 10 - i32.add $push25=, $0, $pop34 - i32.store16 $discard=, 0($pop25), $6 - i32.const $push33=, 8 - i32.add $push26=, $0, $pop33 - i32.store16 $discard=, 0($pop26), $5 - i32.const $push32=, 6 - i32.add $push27=, $0, $pop32 - i32.store16 $discard=, 0($pop27), $4 - i32.const $push31=, 4 - i32.add $push28=, $0, $pop31 - i32.store16 $discard=, 0($pop28), $3 - i32.const $push30=, 2 - i32.add $push29=, $0, $pop30 - i32.store16 $discard=, 0($pop29), $2 + i32.div_s $push18=, $5, $pop36 + i32.store16 $discard=, 0($pop26), $pop18 + i32.const $push35=, 6 + i32.add $push27=, $0, $pop35 + i32.const $push34=, 6 + i32.div_s $push17=, $6, $pop34 + i32.store16 $discard=, 0($pop27), $pop17 + i32.const $push33=, 4 + i32.add $push28=, $0, $pop33 + i32.const $push32=, 14 + i32.div_s $push16=, $7, $pop32 + i32.store16 $discard=, 0($pop28), $pop16 + i32.const $push31=, 2 + i32.add $push29=, $0, $pop31 + i32.const $push30=, 14 + i32.div_s $push15=, $8, $pop30 + i32.store16 $discard=, 0($pop29), $pop15 return .endfunc .Lfunc_end18: @@ -1580,66 +1580,66 @@ sr14141461461414: # @sr14141461461414 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_s $push20=, 0($pop19) i32.const $push0=, 14 - i32.rem_s $2=, $pop20, $pop0 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_s $push17=, 0($pop16) - i32.const $push44=, 14 - i32.rem_s $3=, $pop17, $pop44 - i32.const $push12=, 6 + i32.add $push1=, $1, $pop0 + i32.load16_s $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_s $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_s $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_s $5=, 0($pop7) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_s $7=, 0($pop11) + i32.const $push12=, 2 i32.add $push13=, $1, $pop12 - i32.load16_s $push14=, 0($pop13) - i32.const $push43=, 6 - i32.rem_s $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_s $push11=, 0($pop10) + i32.load16_s $8=, 0($pop13) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_s $6=, 0($pop9) + i32.load16_s $push14=, 0($1) + i32.const $push44=, 14 + i32.rem_s $push22=, $pop14, $pop44 + i32.store16 $discard=, 0($0), $pop22 + i32.const $push43=, 14 + i32.add $push23=, $0, $pop43 i32.const $push42=, 14 - i32.rem_s $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_s $push8=, 0($pop7) - i32.const $push41=, 6 - i32.rem_s $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_s $push5=, 0($pop4) + i32.rem_s $push21=, $2, $pop42 + i32.store16 $discard=, 0($pop23), $pop21 + i32.const $push41=, 12 + i32.add $push24=, $0, $pop41 i32.const $push40=, 14 - i32.rem_s $7=, $pop5, $pop40 - i32.const $push39=, 14 - i32.add $push1=, $1, $pop39 - i32.load16_s $push2=, 0($pop1) - i32.const $push38=, 14 - i32.rem_s $8=, $pop2, $pop38 - i32.load16_s $push21=, 0($1) - i32.const $push37=, 14 - i32.rem_s $push22=, $pop21, $pop37 - i32.store16 $discard=, 0($0), $pop22 + i32.rem_s $push20=, $3, $pop40 + i32.store16 $discard=, 0($pop24), $pop20 + i32.const $push39=, 10 + i32.add $push25=, $0, $pop39 + i32.const $push38=, 6 + i32.rem_s $push19=, $4, $pop38 + i32.store16 $discard=, 0($pop25), $pop19 + i32.const $push37=, 8 + i32.add $push26=, $0, $pop37 i32.const $push36=, 14 - i32.add $push23=, $0, $pop36 - i32.store16 $discard=, 0($pop23), $8 - i32.const $push35=, 12 - i32.add $push24=, $0, $pop35 - i32.store16 $discard=, 0($pop24), $7 - i32.const $push34=, 10 - i32.add $push25=, $0, $pop34 - i32.store16 $discard=, 0($pop25), $6 - i32.const $push33=, 8 - i32.add $push26=, $0, $pop33 - i32.store16 $discard=, 0($pop26), $5 - i32.const $push32=, 6 - i32.add $push27=, $0, $pop32 - i32.store16 $discard=, 0($pop27), $4 - i32.const $push31=, 4 - i32.add $push28=, $0, $pop31 - i32.store16 $discard=, 0($pop28), $3 - i32.const $push30=, 2 - i32.add $push29=, $0, $pop30 - i32.store16 $discard=, 0($pop29), $2 + i32.rem_s $push18=, $5, $pop36 + i32.store16 $discard=, 0($pop26), $pop18 + i32.const $push35=, 6 + i32.add $push27=, $0, $pop35 + i32.const $push34=, 6 + i32.rem_s $push17=, $6, $pop34 + i32.store16 $discard=, 0($pop27), $pop17 + i32.const $push33=, 4 + i32.add $push28=, $0, $pop33 + i32.const $push32=, 14 + i32.rem_s $push16=, $7, $pop32 + i32.store16 $discard=, 0($pop28), $pop16 + i32.const $push31=, 2 + i32.add $push29=, $0, $pop31 + i32.const $push30=, 14 + i32.rem_s $push15=, $8, $pop30 + i32.store16 $discard=, 0($pop29), $pop15 return .endfunc .Lfunc_end19: @@ -1653,66 +1653,66 @@ uq77777777: # @uq77777777 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_u $push20=, 0($pop19) - i32.const $push22=, 7 - i32.div_u $2=, $pop20, $pop22 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_u $push17=, 0($pop16) - i32.const $push44=, 7 - i32.div_u $3=, $pop17, $pop44 - i32.const $push12=, 6 + i32.const $push0=, 14 + i32.add $push1=, $1, $pop0 + i32.load16_u $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_u $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_u $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_u $5=, 0($pop7) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_u $6=, 0($pop9) + i32.const $push12=, 2 i32.add $push13=, $1, $pop12 - i32.load16_u $push14=, 0($pop13) + i32.load16_u $8=, 0($pop13) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_u $7=, 0($pop11) + i32.load16_u $push14=, 0($1) + i32.const $push15=, 7 + i32.div_u $push23=, $pop14, $pop15 + i32.store16 $discard=, 0($0), $pop23 + i32.const $push44=, 14 + i32.add $push24=, $0, $pop44 i32.const $push43=, 7 - i32.div_u $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_u $push11=, 0($pop10) - i32.const $push42=, 7 - i32.div_u $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_u $push8=, 0($pop7) + i32.div_u $push22=, $2, $pop43 + i32.store16 $discard=, 0($pop24), $pop22 + i32.const $push42=, 12 + i32.add $push25=, $0, $pop42 i32.const $push41=, 7 - i32.div_u $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_u $push5=, 0($pop4) - i32.const $push40=, 7 - i32.div_u $7=, $pop5, $pop40 - i32.const $push0=, 14 - i32.add $push1=, $1, $pop0 - i32.load16_u $push2=, 0($pop1) + i32.div_u $push21=, $3, $pop41 + i32.store16 $discard=, 0($pop25), $pop21 + i32.const $push40=, 10 + i32.add $push26=, $0, $pop40 i32.const $push39=, 7 - i32.div_u $8=, $pop2, $pop39 - i32.load16_u $push21=, 0($1) - i32.const $push38=, 7 - i32.div_u $push23=, $pop21, $pop38 - i32.store16 $discard=, 0($0), $pop23 - i32.const $push37=, 14 - i32.add $push24=, $0, $pop37 - i32.store16 $discard=, 0($pop24), $8 - i32.const $push36=, 12 - i32.add $push25=, $0, $pop36 - i32.store16 $discard=, 0($pop25), $7 - i32.const $push35=, 10 - i32.add $push26=, $0, $pop35 - i32.store16 $discard=, 0($pop26), $6 - i32.const $push34=, 8 - i32.add $push27=, $0, $pop34 - i32.store16 $discard=, 0($pop27), $5 - i32.const $push33=, 6 - i32.add $push28=, $0, $pop33 - i32.store16 $discard=, 0($pop28), $4 - i32.const $push32=, 4 - i32.add $push29=, $0, $pop32 - i32.store16 $discard=, 0($pop29), $3 - i32.const $push31=, 2 - i32.add $push30=, $0, $pop31 - i32.store16 $discard=, 0($pop30), $2 + i32.div_u $push20=, $4, $pop39 + i32.store16 $discard=, 0($pop26), $pop20 + i32.const $push38=, 8 + i32.add $push27=, $0, $pop38 + i32.const $push37=, 7 + i32.div_u $push19=, $5, $pop37 + i32.store16 $discard=, 0($pop27), $pop19 + i32.const $push36=, 6 + i32.add $push28=, $0, $pop36 + i32.const $push35=, 7 + i32.div_u $push18=, $6, $pop35 + i32.store16 $discard=, 0($pop28), $pop18 + i32.const $push34=, 4 + i32.add $push29=, $0, $pop34 + i32.const $push33=, 7 + i32.div_u $push17=, $7, $pop33 + i32.store16 $discard=, 0($pop29), $pop17 + i32.const $push32=, 2 + i32.add $push30=, $0, $pop32 + i32.const $push31=, 7 + i32.div_u $push16=, $8, $pop31 + i32.store16 $discard=, 0($pop30), $pop16 return .endfunc .Lfunc_end20: @@ -1726,66 +1726,66 @@ ur77777777: # @ur77777777 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_u $push20=, 0($pop19) - i32.const $push22=, 7 - i32.rem_u $2=, $pop20, $pop22 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_u $push17=, 0($pop16) - i32.const $push44=, 7 - i32.rem_u $3=, $pop17, $pop44 - i32.const $push12=, 6 + i32.const $push0=, 14 + i32.add $push1=, $1, $pop0 + i32.load16_u $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_u $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_u $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_u $5=, 0($pop7) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_u $6=, 0($pop9) + i32.const $push12=, 2 i32.add $push13=, $1, $pop12 - i32.load16_u $push14=, 0($pop13) + i32.load16_u $8=, 0($pop13) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_u $7=, 0($pop11) + i32.load16_u $push14=, 0($1) + i32.const $push15=, 7 + i32.rem_u $push23=, $pop14, $pop15 + i32.store16 $discard=, 0($0), $pop23 + i32.const $push44=, 14 + i32.add $push24=, $0, $pop44 i32.const $push43=, 7 - i32.rem_u $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_u $push11=, 0($pop10) - i32.const $push42=, 7 - i32.rem_u $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_u $push8=, 0($pop7) + i32.rem_u $push22=, $2, $pop43 + i32.store16 $discard=, 0($pop24), $pop22 + i32.const $push42=, 12 + i32.add $push25=, $0, $pop42 i32.const $push41=, 7 - i32.rem_u $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_u $push5=, 0($pop4) - i32.const $push40=, 7 - i32.rem_u $7=, $pop5, $pop40 - i32.const $push0=, 14 - i32.add $push1=, $1, $pop0 - i32.load16_u $push2=, 0($pop1) + i32.rem_u $push21=, $3, $pop41 + i32.store16 $discard=, 0($pop25), $pop21 + i32.const $push40=, 10 + i32.add $push26=, $0, $pop40 i32.const $push39=, 7 - i32.rem_u $8=, $pop2, $pop39 - i32.load16_u $push21=, 0($1) - i32.const $push38=, 7 - i32.rem_u $push23=, $pop21, $pop38 - i32.store16 $discard=, 0($0), $pop23 - i32.const $push37=, 14 - i32.add $push24=, $0, $pop37 - i32.store16 $discard=, 0($pop24), $8 - i32.const $push36=, 12 - i32.add $push25=, $0, $pop36 - i32.store16 $discard=, 0($pop25), $7 - i32.const $push35=, 10 - i32.add $push26=, $0, $pop35 - i32.store16 $discard=, 0($pop26), $6 - i32.const $push34=, 8 - i32.add $push27=, $0, $pop34 - i32.store16 $discard=, 0($pop27), $5 - i32.const $push33=, 6 - i32.add $push28=, $0, $pop33 - i32.store16 $discard=, 0($pop28), $4 - i32.const $push32=, 4 - i32.add $push29=, $0, $pop32 - i32.store16 $discard=, 0($pop29), $3 - i32.const $push31=, 2 - i32.add $push30=, $0, $pop31 - i32.store16 $discard=, 0($pop30), $2 + i32.rem_u $push20=, $4, $pop39 + i32.store16 $discard=, 0($pop26), $pop20 + i32.const $push38=, 8 + i32.add $push27=, $0, $pop38 + i32.const $push37=, 7 + i32.rem_u $push19=, $5, $pop37 + i32.store16 $discard=, 0($pop27), $pop19 + i32.const $push36=, 6 + i32.add $push28=, $0, $pop36 + i32.const $push35=, 7 + i32.rem_u $push18=, $6, $pop35 + i32.store16 $discard=, 0($pop28), $pop18 + i32.const $push34=, 4 + i32.add $push29=, $0, $pop34 + i32.const $push33=, 7 + i32.rem_u $push17=, $7, $pop33 + i32.store16 $discard=, 0($pop29), $pop17 + i32.const $push32=, 2 + i32.add $push30=, $0, $pop32 + i32.const $push31=, 7 + i32.rem_u $push16=, $8, $pop31 + i32.store16 $discard=, 0($pop30), $pop16 return .endfunc .Lfunc_end21: @@ -1799,66 +1799,66 @@ sq77777777: # @sq77777777 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_s $push20=, 0($pop19) - i32.const $push22=, 7 - i32.div_s $2=, $pop20, $pop22 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_s $push17=, 0($pop16) - i32.const $push44=, 7 - i32.div_s $3=, $pop17, $pop44 - i32.const $push12=, 6 + i32.const $push0=, 14 + i32.add $push1=, $1, $pop0 + i32.load16_s $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_s $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_s $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_s $5=, 0($pop7) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_s $6=, 0($pop9) + i32.const $push12=, 2 i32.add $push13=, $1, $pop12 - i32.load16_s $push14=, 0($pop13) + i32.load16_s $8=, 0($pop13) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_s $7=, 0($pop11) + i32.load16_s $push14=, 0($1) + i32.const $push15=, 7 + i32.div_s $push23=, $pop14, $pop15 + i32.store16 $discard=, 0($0), $pop23 + i32.const $push44=, 14 + i32.add $push24=, $0, $pop44 i32.const $push43=, 7 - i32.div_s $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_s $push11=, 0($pop10) - i32.const $push42=, 7 - i32.div_s $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_s $push8=, 0($pop7) + i32.div_s $push22=, $2, $pop43 + i32.store16 $discard=, 0($pop24), $pop22 + i32.const $push42=, 12 + i32.add $push25=, $0, $pop42 i32.const $push41=, 7 - i32.div_s $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_s $push5=, 0($pop4) - i32.const $push40=, 7 - i32.div_s $7=, $pop5, $pop40 - i32.const $push0=, 14 - i32.add $push1=, $1, $pop0 - i32.load16_s $push2=, 0($pop1) + i32.div_s $push21=, $3, $pop41 + i32.store16 $discard=, 0($pop25), $pop21 + i32.const $push40=, 10 + i32.add $push26=, $0, $pop40 i32.const $push39=, 7 - i32.div_s $8=, $pop2, $pop39 - i32.load16_s $push21=, 0($1) - i32.const $push38=, 7 - i32.div_s $push23=, $pop21, $pop38 - i32.store16 $discard=, 0($0), $pop23 - i32.const $push37=, 14 - i32.add $push24=, $0, $pop37 - i32.store16 $discard=, 0($pop24), $8 - i32.const $push36=, 12 - i32.add $push25=, $0, $pop36 - i32.store16 $discard=, 0($pop25), $7 - i32.const $push35=, 10 - i32.add $push26=, $0, $pop35 - i32.store16 $discard=, 0($pop26), $6 - i32.const $push34=, 8 - i32.add $push27=, $0, $pop34 - i32.store16 $discard=, 0($pop27), $5 - i32.const $push33=, 6 - i32.add $push28=, $0, $pop33 - i32.store16 $discard=, 0($pop28), $4 - i32.const $push32=, 4 - i32.add $push29=, $0, $pop32 - i32.store16 $discard=, 0($pop29), $3 - i32.const $push31=, 2 - i32.add $push30=, $0, $pop31 - i32.store16 $discard=, 0($pop30), $2 + i32.div_s $push20=, $4, $pop39 + i32.store16 $discard=, 0($pop26), $pop20 + i32.const $push38=, 8 + i32.add $push27=, $0, $pop38 + i32.const $push37=, 7 + i32.div_s $push19=, $5, $pop37 + i32.store16 $discard=, 0($pop27), $pop19 + i32.const $push36=, 6 + i32.add $push28=, $0, $pop36 + i32.const $push35=, 7 + i32.div_s $push18=, $6, $pop35 + i32.store16 $discard=, 0($pop28), $pop18 + i32.const $push34=, 4 + i32.add $push29=, $0, $pop34 + i32.const $push33=, 7 + i32.div_s $push17=, $7, $pop33 + i32.store16 $discard=, 0($pop29), $pop17 + i32.const $push32=, 2 + i32.add $push30=, $0, $pop32 + i32.const $push31=, 7 + i32.div_s $push16=, $8, $pop31 + i32.store16 $discard=, 0($pop30), $pop16 return .endfunc .Lfunc_end22: @@ -1872,66 +1872,66 @@ sr77777777: # @sr77777777 .param i32, i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push18=, 2 - i32.add $push19=, $1, $pop18 - i32.load16_s $push20=, 0($pop19) - i32.const $push22=, 7 - i32.rem_s $2=, $pop20, $pop22 - i32.const $push15=, 4 - i32.add $push16=, $1, $pop15 - i32.load16_s $push17=, 0($pop16) - i32.const $push44=, 7 - i32.rem_s $3=, $pop17, $pop44 - i32.const $push12=, 6 + i32.const $push0=, 14 + i32.add $push1=, $1, $pop0 + i32.load16_s $2=, 0($pop1) + i32.const $push2=, 12 + i32.add $push3=, $1, $pop2 + i32.load16_s $3=, 0($pop3) + i32.const $push4=, 10 + i32.add $push5=, $1, $pop4 + i32.load16_s $4=, 0($pop5) + i32.const $push6=, 8 + i32.add $push7=, $1, $pop6 + i32.load16_s $5=, 0($pop7) + i32.const $push8=, 6 + i32.add $push9=, $1, $pop8 + i32.load16_s $6=, 0($pop9) + i32.const $push12=, 2 i32.add $push13=, $1, $pop12 - i32.load16_s $push14=, 0($pop13) + i32.load16_s $8=, 0($pop13) + i32.const $push10=, 4 + i32.add $push11=, $1, $pop10 + i32.load16_s $7=, 0($pop11) + i32.load16_s $push14=, 0($1) + i32.const $push15=, 7 + i32.rem_s $push23=, $pop14, $pop15 + i32.store16 $discard=, 0($0), $pop23 + i32.const $push44=, 14 + i32.add $push24=, $0, $pop44 i32.const $push43=, 7 - i32.rem_s $4=, $pop14, $pop43 - i32.const $push9=, 8 - i32.add $push10=, $1, $pop9 - i32.load16_s $push11=, 0($pop10) - i32.const $push42=, 7 - i32.rem_s $5=, $pop11, $pop42 - i32.const $push6=, 10 - i32.add $push7=, $1, $pop6 - i32.load16_s $push8=, 0($pop7) + i32.rem_s $push22=, $2, $pop43 + i32.store16 $discard=, 0($pop24), $pop22 + i32.const $push42=, 12 + i32.add $push25=, $0, $pop42 i32.const $push41=, 7 - i32.rem_s $6=, $pop8, $pop41 - i32.const $push3=, 12 - i32.add $push4=, $1, $pop3 - i32.load16_s $push5=, 0($pop4) - i32.const $push40=, 7 - i32.rem_s $7=, $pop5, $pop40 - i32.const $push0=, 14 - i32.add $push1=, $1, $pop0 - i32.load16_s $push2=, 0($pop1) + i32.rem_s $push21=, $3, $pop41 + i32.store16 $discard=, 0($pop25), $pop21 + i32.const $push40=, 10 + i32.add $push26=, $0, $pop40 i32.const $push39=, 7 - i32.rem_s $8=, $pop2, $pop39 - i32.load16_s $push21=, 0($1) - i32.const $push38=, 7 - i32.rem_s $push23=, $pop21, $pop38 - i32.store16 $discard=, 0($0), $pop23 - i32.const $push37=, 14 - i32.add $push24=, $0, $pop37 - i32.store16 $discard=, 0($pop24), $8 - i32.const $push36=, 12 - i32.add $push25=, $0, $pop36 - i32.store16 $discard=, 0($pop25), $7 - i32.const $push35=, 10 - i32.add $push26=, $0, $pop35 - i32.store16 $discard=, 0($pop26), $6 - i32.const $push34=, 8 - i32.add $push27=, $0, $pop34 - i32.store16 $discard=, 0($pop27), $5 - i32.const $push33=, 6 - i32.add $push28=, $0, $pop33 - i32.store16 $discard=, 0($pop28), $4 - i32.const $push32=, 4 - i32.add $push29=, $0, $pop32 - i32.store16 $discard=, 0($pop29), $3 - i32.const $push31=, 2 - i32.add $push30=, $0, $pop31 - i32.store16 $discard=, 0($pop30), $2 + i32.rem_s $push20=, $4, $pop39 + i32.store16 $discard=, 0($pop26), $pop20 + i32.const $push38=, 8 + i32.add $push27=, $0, $pop38 + i32.const $push37=, 7 + i32.rem_s $push19=, $5, $pop37 + i32.store16 $discard=, 0($pop27), $pop19 + i32.const $push36=, 6 + i32.add $push28=, $0, $pop36 + i32.const $push35=, 7 + i32.rem_s $push18=, $6, $pop35 + i32.store16 $discard=, 0($pop28), $pop18 + i32.const $push34=, 4 + i32.add $push29=, $0, $pop34 + i32.const $push33=, 7 + i32.rem_s $push17=, $7, $pop33 + i32.store16 $discard=, 0($pop29), $pop17 + i32.const $push32=, 2 + i32.add $push30=, $0, $pop32 + i32.const $push31=, 7 + i32.rem_s $push16=, $8, $pop31 + i32.store16 $discard=, 0($pop30), $pop16 return .endfunc .Lfunc_end23: diff --git a/test/torture-s/pr53645.c.s b/test/torture-s/pr53645.c.s index 47d2bfb7c..db219ba5b 100644 --- a/test/torture-s/pr53645.c.s +++ b/test/torture-s/pr53645.c.s @@ -401,34 +401,34 @@ uq3333: # @uq3333 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 3 - i32.div_u $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push20=, 3 - i32.div_u $3=, $pop5, $pop20 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push19=, 3 - i32.div_u $4=, $pop2, $pop19 - i32.load $push9=, 0($1) - i32.const $push18=, 3 - i32.div_u $push11=, $pop9, $pop18 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push7=, 3 + i32.div_u $push11=, $pop6, $pop7 i32.store $discard=, 0($0), $pop11 - i32.const $push17=, 12 - i32.add $push12=, $0, $pop17 - i32.store $discard=, 0($pop12), $4 - i32.const $push16=, 8 - i32.add $push13=, $0, $pop16 - i32.store $discard=, 0($pop13), $3 - i32.const $push15=, 4 - i32.add $push14=, $0, $pop15 - i32.store $discard=, 0($pop14), $2 + i32.const $push20=, 12 + i32.add $push12=, $0, $pop20 + i32.const $push19=, 3 + i32.div_u $push10=, $2, $pop19 + i32.store $discard=, 0($pop12), $pop10 + i32.const $push18=, 8 + i32.add $push13=, $0, $pop18 + i32.const $push17=, 3 + i32.div_u $push9=, $3, $pop17 + i32.store $discard=, 0($pop13), $pop9 + i32.const $push16=, 4 + i32.add $push14=, $0, $pop16 + i32.const $push15=, 3 + i32.div_u $push8=, $4, $pop15 + i32.store $discard=, 0($pop14), $pop8 return .endfunc .Lfunc_end8: @@ -442,34 +442,34 @@ ur3333: # @ur3333 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 3 - i32.rem_u $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push20=, 3 - i32.rem_u $3=, $pop5, $pop20 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push19=, 3 - i32.rem_u $4=, $pop2, $pop19 - i32.load $push9=, 0($1) - i32.const $push18=, 3 - i32.rem_u $push11=, $pop9, $pop18 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push7=, 3 + i32.rem_u $push11=, $pop6, $pop7 i32.store $discard=, 0($0), $pop11 - i32.const $push17=, 12 - i32.add $push12=, $0, $pop17 - i32.store $discard=, 0($pop12), $4 - i32.const $push16=, 8 - i32.add $push13=, $0, $pop16 - i32.store $discard=, 0($pop13), $3 - i32.const $push15=, 4 - i32.add $push14=, $0, $pop15 - i32.store $discard=, 0($pop14), $2 + i32.const $push20=, 12 + i32.add $push12=, $0, $pop20 + i32.const $push19=, 3 + i32.rem_u $push10=, $2, $pop19 + i32.store $discard=, 0($pop12), $pop10 + i32.const $push18=, 8 + i32.add $push13=, $0, $pop18 + i32.const $push17=, 3 + i32.rem_u $push9=, $3, $pop17 + i32.store $discard=, 0($pop13), $pop9 + i32.const $push16=, 4 + i32.add $push14=, $0, $pop16 + i32.const $push15=, 3 + i32.rem_u $push8=, $4, $pop15 + i32.store $discard=, 0($pop14), $pop8 return .endfunc .Lfunc_end9: @@ -483,34 +483,34 @@ sq3333: # @sq3333 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 3 - i32.div_s $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push20=, 3 - i32.div_s $3=, $pop5, $pop20 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push19=, 3 - i32.div_s $4=, $pop2, $pop19 - i32.load $push9=, 0($1) - i32.const $push18=, 3 - i32.div_s $push11=, $pop9, $pop18 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push7=, 3 + i32.div_s $push11=, $pop6, $pop7 i32.store $discard=, 0($0), $pop11 - i32.const $push17=, 12 - i32.add $push12=, $0, $pop17 - i32.store $discard=, 0($pop12), $4 - i32.const $push16=, 8 - i32.add $push13=, $0, $pop16 - i32.store $discard=, 0($pop13), $3 - i32.const $push15=, 4 - i32.add $push14=, $0, $pop15 - i32.store $discard=, 0($pop14), $2 + i32.const $push20=, 12 + i32.add $push12=, $0, $pop20 + i32.const $push19=, 3 + i32.div_s $push10=, $2, $pop19 + i32.store $discard=, 0($pop12), $pop10 + i32.const $push18=, 8 + i32.add $push13=, $0, $pop18 + i32.const $push17=, 3 + i32.div_s $push9=, $3, $pop17 + i32.store $discard=, 0($pop13), $pop9 + i32.const $push16=, 4 + i32.add $push14=, $0, $pop16 + i32.const $push15=, 3 + i32.div_s $push8=, $4, $pop15 + i32.store $discard=, 0($pop14), $pop8 return .endfunc .Lfunc_end10: @@ -524,34 +524,34 @@ sr3333: # @sr3333 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 3 - i32.rem_s $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push20=, 3 - i32.rem_s $3=, $pop5, $pop20 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push19=, 3 - i32.rem_s $4=, $pop2, $pop19 - i32.load $push9=, 0($1) - i32.const $push18=, 3 - i32.rem_s $push11=, $pop9, $pop18 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push7=, 3 + i32.rem_s $push11=, $pop6, $pop7 i32.store $discard=, 0($0), $pop11 - i32.const $push17=, 12 - i32.add $push12=, $0, $pop17 - i32.store $discard=, 0($pop12), $4 - i32.const $push16=, 8 - i32.add $push13=, $0, $pop16 - i32.store $discard=, 0($pop13), $3 - i32.const $push15=, 4 - i32.add $push14=, $0, $pop15 - i32.store $discard=, 0($pop14), $2 + i32.const $push20=, 12 + i32.add $push12=, $0, $pop20 + i32.const $push19=, 3 + i32.rem_s $push10=, $2, $pop19 + i32.store $discard=, 0($pop12), $pop10 + i32.const $push18=, 8 + i32.add $push13=, $0, $pop18 + i32.const $push17=, 3 + i32.rem_s $push9=, $3, $pop17 + i32.store $discard=, 0($pop13), $pop9 + i32.const $push16=, 4 + i32.add $push14=, $0, $pop16 + i32.const $push15=, 3 + i32.rem_s $push8=, $4, $pop15 + i32.store $discard=, 0($pop14), $pop8 return .endfunc .Lfunc_end11: @@ -565,34 +565,34 @@ uq6565: # @uq6565 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 5 - i32.div_u $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push11=, 6 - i32.div_u $3=, $pop5, $pop11 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push20=, 5 - i32.div_u $4=, $pop2, $pop20 - i32.load $push9=, 0($1) - i32.const $push19=, 6 - i32.div_u $push12=, $pop9, $pop19 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push9=, 6 + i32.div_u $push12=, $pop6, $pop9 i32.store $discard=, 0($0), $pop12 - i32.const $push18=, 12 - i32.add $push13=, $0, $pop18 - i32.store $discard=, 0($pop13), $4 - i32.const $push17=, 8 - i32.add $push14=, $0, $pop17 - i32.store $discard=, 0($pop14), $3 - i32.const $push16=, 4 - i32.add $push15=, $0, $pop16 - i32.store $discard=, 0($pop15), $2 + i32.const $push20=, 12 + i32.add $push13=, $0, $pop20 + i32.const $push7=, 5 + i32.div_u $push11=, $2, $pop7 + i32.store $discard=, 0($pop13), $pop11 + i32.const $push19=, 8 + i32.add $push14=, $0, $pop19 + i32.const $push18=, 6 + i32.div_u $push10=, $3, $pop18 + i32.store $discard=, 0($pop14), $pop10 + i32.const $push17=, 4 + i32.add $push15=, $0, $pop17 + i32.const $push16=, 5 + i32.div_u $push8=, $4, $pop16 + i32.store $discard=, 0($pop15), $pop8 return .endfunc .Lfunc_end12: @@ -606,34 +606,34 @@ ur6565: # @ur6565 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 5 - i32.rem_u $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push11=, 6 - i32.rem_u $3=, $pop5, $pop11 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push20=, 5 - i32.rem_u $4=, $pop2, $pop20 - i32.load $push9=, 0($1) - i32.const $push19=, 6 - i32.rem_u $push12=, $pop9, $pop19 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push9=, 6 + i32.rem_u $push12=, $pop6, $pop9 i32.store $discard=, 0($0), $pop12 - i32.const $push18=, 12 - i32.add $push13=, $0, $pop18 - i32.store $discard=, 0($pop13), $4 - i32.const $push17=, 8 - i32.add $push14=, $0, $pop17 - i32.store $discard=, 0($pop14), $3 - i32.const $push16=, 4 - i32.add $push15=, $0, $pop16 - i32.store $discard=, 0($pop15), $2 + i32.const $push20=, 12 + i32.add $push13=, $0, $pop20 + i32.const $push7=, 5 + i32.rem_u $push11=, $2, $pop7 + i32.store $discard=, 0($pop13), $pop11 + i32.const $push19=, 8 + i32.add $push14=, $0, $pop19 + i32.const $push18=, 6 + i32.rem_u $push10=, $3, $pop18 + i32.store $discard=, 0($pop14), $pop10 + i32.const $push17=, 4 + i32.add $push15=, $0, $pop17 + i32.const $push16=, 5 + i32.rem_u $push8=, $4, $pop16 + i32.store $discard=, 0($pop15), $pop8 return .endfunc .Lfunc_end13: @@ -647,34 +647,34 @@ sq6565: # @sq6565 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 5 - i32.div_s $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push11=, 6 - i32.div_s $3=, $pop5, $pop11 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push20=, 5 - i32.div_s $4=, $pop2, $pop20 - i32.load $push9=, 0($1) - i32.const $push19=, 6 - i32.div_s $push12=, $pop9, $pop19 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push9=, 6 + i32.div_s $push12=, $pop6, $pop9 i32.store $discard=, 0($0), $pop12 - i32.const $push18=, 12 - i32.add $push13=, $0, $pop18 - i32.store $discard=, 0($pop13), $4 - i32.const $push17=, 8 - i32.add $push14=, $0, $pop17 - i32.store $discard=, 0($pop14), $3 - i32.const $push16=, 4 - i32.add $push15=, $0, $pop16 - i32.store $discard=, 0($pop15), $2 + i32.const $push20=, 12 + i32.add $push13=, $0, $pop20 + i32.const $push7=, 5 + i32.div_s $push11=, $2, $pop7 + i32.store $discard=, 0($pop13), $pop11 + i32.const $push19=, 8 + i32.add $push14=, $0, $pop19 + i32.const $push18=, 6 + i32.div_s $push10=, $3, $pop18 + i32.store $discard=, 0($pop14), $pop10 + i32.const $push17=, 4 + i32.add $push15=, $0, $pop17 + i32.const $push16=, 5 + i32.div_s $push8=, $4, $pop16 + i32.store $discard=, 0($pop15), $pop8 return .endfunc .Lfunc_end14: @@ -688,34 +688,34 @@ sr6565: # @sr6565 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 5 - i32.rem_s $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push11=, 6 - i32.rem_s $3=, $pop5, $pop11 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push20=, 5 - i32.rem_s $4=, $pop2, $pop20 - i32.load $push9=, 0($1) - i32.const $push19=, 6 - i32.rem_s $push12=, $pop9, $pop19 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push9=, 6 + i32.rem_s $push12=, $pop6, $pop9 i32.store $discard=, 0($0), $pop12 - i32.const $push18=, 12 - i32.add $push13=, $0, $pop18 - i32.store $discard=, 0($pop13), $4 - i32.const $push17=, 8 - i32.add $push14=, $0, $pop17 - i32.store $discard=, 0($pop14), $3 - i32.const $push16=, 4 - i32.add $push15=, $0, $pop16 - i32.store $discard=, 0($pop15), $2 + i32.const $push20=, 12 + i32.add $push13=, $0, $pop20 + i32.const $push7=, 5 + i32.rem_s $push11=, $2, $pop7 + i32.store $discard=, 0($pop13), $pop11 + i32.const $push19=, 8 + i32.add $push14=, $0, $pop19 + i32.const $push18=, 6 + i32.rem_s $push10=, $3, $pop18 + i32.store $discard=, 0($pop14), $pop10 + i32.const $push17=, 4 + i32.add $push15=, $0, $pop17 + i32.const $push16=, 5 + i32.rem_s $push8=, $4, $pop16 + i32.store $discard=, 0($pop15), $pop8 return .endfunc .Lfunc_end15: @@ -729,34 +729,34 @@ uq1414146: # @uq1414146 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 14 - i32.div_u $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push20=, 14 - i32.div_u $3=, $pop5, $pop20 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push11=, 6 - i32.div_u $4=, $pop2, $pop11 - i32.load $push9=, 0($1) - i32.const $push19=, 14 - i32.div_u $push12=, $pop9, $pop19 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push7=, 14 + i32.div_u $push12=, $pop6, $pop7 i32.store $discard=, 0($0), $pop12 - i32.const $push18=, 12 - i32.add $push13=, $0, $pop18 - i32.store $discard=, 0($pop13), $4 - i32.const $push17=, 8 - i32.add $push14=, $0, $pop17 - i32.store $discard=, 0($pop14), $3 - i32.const $push16=, 4 - i32.add $push15=, $0, $pop16 - i32.store $discard=, 0($pop15), $2 + i32.const $push20=, 12 + i32.add $push13=, $0, $pop20 + i32.const $push10=, 6 + i32.div_u $push11=, $2, $pop10 + i32.store $discard=, 0($pop13), $pop11 + i32.const $push19=, 8 + i32.add $push14=, $0, $pop19 + i32.const $push18=, 14 + i32.div_u $push9=, $3, $pop18 + i32.store $discard=, 0($pop14), $pop9 + i32.const $push17=, 4 + i32.add $push15=, $0, $pop17 + i32.const $push16=, 14 + i32.div_u $push8=, $4, $pop16 + i32.store $discard=, 0($pop15), $pop8 return .endfunc .Lfunc_end16: @@ -770,34 +770,34 @@ ur1414146: # @ur1414146 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 14 - i32.rem_u $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push20=, 14 - i32.rem_u $3=, $pop5, $pop20 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push11=, 6 - i32.rem_u $4=, $pop2, $pop11 - i32.load $push9=, 0($1) - i32.const $push19=, 14 - i32.rem_u $push12=, $pop9, $pop19 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push7=, 14 + i32.rem_u $push12=, $pop6, $pop7 i32.store $discard=, 0($0), $pop12 - i32.const $push18=, 12 - i32.add $push13=, $0, $pop18 - i32.store $discard=, 0($pop13), $4 - i32.const $push17=, 8 - i32.add $push14=, $0, $pop17 - i32.store $discard=, 0($pop14), $3 - i32.const $push16=, 4 - i32.add $push15=, $0, $pop16 - i32.store $discard=, 0($pop15), $2 + i32.const $push20=, 12 + i32.add $push13=, $0, $pop20 + i32.const $push10=, 6 + i32.rem_u $push11=, $2, $pop10 + i32.store $discard=, 0($pop13), $pop11 + i32.const $push19=, 8 + i32.add $push14=, $0, $pop19 + i32.const $push18=, 14 + i32.rem_u $push9=, $3, $pop18 + i32.store $discard=, 0($pop14), $pop9 + i32.const $push17=, 4 + i32.add $push15=, $0, $pop17 + i32.const $push16=, 14 + i32.rem_u $push8=, $4, $pop16 + i32.store $discard=, 0($pop15), $pop8 return .endfunc .Lfunc_end17: @@ -811,34 +811,34 @@ sq1414146: # @sq1414146 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 14 - i32.div_s $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push20=, 14 - i32.div_s $3=, $pop5, $pop20 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push11=, 6 - i32.div_s $4=, $pop2, $pop11 - i32.load $push9=, 0($1) - i32.const $push19=, 14 - i32.div_s $push12=, $pop9, $pop19 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push7=, 14 + i32.div_s $push12=, $pop6, $pop7 i32.store $discard=, 0($0), $pop12 - i32.const $push18=, 12 - i32.add $push13=, $0, $pop18 - i32.store $discard=, 0($pop13), $4 - i32.const $push17=, 8 - i32.add $push14=, $0, $pop17 - i32.store $discard=, 0($pop14), $3 - i32.const $push16=, 4 - i32.add $push15=, $0, $pop16 - i32.store $discard=, 0($pop15), $2 + i32.const $push20=, 12 + i32.add $push13=, $0, $pop20 + i32.const $push10=, 6 + i32.div_s $push11=, $2, $pop10 + i32.store $discard=, 0($pop13), $pop11 + i32.const $push19=, 8 + i32.add $push14=, $0, $pop19 + i32.const $push18=, 14 + i32.div_s $push9=, $3, $pop18 + i32.store $discard=, 0($pop14), $pop9 + i32.const $push17=, 4 + i32.add $push15=, $0, $pop17 + i32.const $push16=, 14 + i32.div_s $push8=, $4, $pop16 + i32.store $discard=, 0($pop15), $pop8 return .endfunc .Lfunc_end18: @@ -852,34 +852,34 @@ sr1414146: # @sr1414146 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 14 - i32.rem_s $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push20=, 14 - i32.rem_s $3=, $pop5, $pop20 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push11=, 6 - i32.rem_s $4=, $pop2, $pop11 - i32.load $push9=, 0($1) - i32.const $push19=, 14 - i32.rem_s $push12=, $pop9, $pop19 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push7=, 14 + i32.rem_s $push12=, $pop6, $pop7 i32.store $discard=, 0($0), $pop12 - i32.const $push18=, 12 - i32.add $push13=, $0, $pop18 - i32.store $discard=, 0($pop13), $4 - i32.const $push17=, 8 - i32.add $push14=, $0, $pop17 - i32.store $discard=, 0($pop14), $3 - i32.const $push16=, 4 - i32.add $push15=, $0, $pop16 - i32.store $discard=, 0($pop15), $2 + i32.const $push20=, 12 + i32.add $push13=, $0, $pop20 + i32.const $push10=, 6 + i32.rem_s $push11=, $2, $pop10 + i32.store $discard=, 0($pop13), $pop11 + i32.const $push19=, 8 + i32.add $push14=, $0, $pop19 + i32.const $push18=, 14 + i32.rem_s $push9=, $3, $pop18 + i32.store $discard=, 0($pop14), $pop9 + i32.const $push17=, 4 + i32.add $push15=, $0, $pop17 + i32.const $push16=, 14 + i32.rem_s $push8=, $4, $pop16 + i32.store $discard=, 0($pop15), $pop8 return .endfunc .Lfunc_end19: @@ -893,34 +893,34 @@ uq7777: # @uq7777 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 7 - i32.div_u $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push20=, 7 - i32.div_u $3=, $pop5, $pop20 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push19=, 7 - i32.div_u $4=, $pop2, $pop19 - i32.load $push9=, 0($1) - i32.const $push18=, 7 - i32.div_u $push11=, $pop9, $pop18 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push7=, 7 + i32.div_u $push11=, $pop6, $pop7 i32.store $discard=, 0($0), $pop11 - i32.const $push17=, 12 - i32.add $push12=, $0, $pop17 - i32.store $discard=, 0($pop12), $4 - i32.const $push16=, 8 - i32.add $push13=, $0, $pop16 - i32.store $discard=, 0($pop13), $3 - i32.const $push15=, 4 - i32.add $push14=, $0, $pop15 - i32.store $discard=, 0($pop14), $2 + i32.const $push20=, 12 + i32.add $push12=, $0, $pop20 + i32.const $push19=, 7 + i32.div_u $push10=, $2, $pop19 + i32.store $discard=, 0($pop12), $pop10 + i32.const $push18=, 8 + i32.add $push13=, $0, $pop18 + i32.const $push17=, 7 + i32.div_u $push9=, $3, $pop17 + i32.store $discard=, 0($pop13), $pop9 + i32.const $push16=, 4 + i32.add $push14=, $0, $pop16 + i32.const $push15=, 7 + i32.div_u $push8=, $4, $pop15 + i32.store $discard=, 0($pop14), $pop8 return .endfunc .Lfunc_end20: @@ -934,34 +934,34 @@ ur7777: # @ur7777 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 7 - i32.rem_u $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push20=, 7 - i32.rem_u $3=, $pop5, $pop20 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push19=, 7 - i32.rem_u $4=, $pop2, $pop19 - i32.load $push9=, 0($1) - i32.const $push18=, 7 - i32.rem_u $push11=, $pop9, $pop18 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push7=, 7 + i32.rem_u $push11=, $pop6, $pop7 i32.store $discard=, 0($0), $pop11 - i32.const $push17=, 12 - i32.add $push12=, $0, $pop17 - i32.store $discard=, 0($pop12), $4 - i32.const $push16=, 8 - i32.add $push13=, $0, $pop16 - i32.store $discard=, 0($pop13), $3 - i32.const $push15=, 4 - i32.add $push14=, $0, $pop15 - i32.store $discard=, 0($pop14), $2 + i32.const $push20=, 12 + i32.add $push12=, $0, $pop20 + i32.const $push19=, 7 + i32.rem_u $push10=, $2, $pop19 + i32.store $discard=, 0($pop12), $pop10 + i32.const $push18=, 8 + i32.add $push13=, $0, $pop18 + i32.const $push17=, 7 + i32.rem_u $push9=, $3, $pop17 + i32.store $discard=, 0($pop13), $pop9 + i32.const $push16=, 4 + i32.add $push14=, $0, $pop16 + i32.const $push15=, 7 + i32.rem_u $push8=, $4, $pop15 + i32.store $discard=, 0($pop14), $pop8 return .endfunc .Lfunc_end21: @@ -975,34 +975,34 @@ sq7777: # @sq7777 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 7 - i32.div_s $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push20=, 7 - i32.div_s $3=, $pop5, $pop20 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push19=, 7 - i32.div_s $4=, $pop2, $pop19 - i32.load $push9=, 0($1) - i32.const $push18=, 7 - i32.div_s $push11=, $pop9, $pop18 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push7=, 7 + i32.div_s $push11=, $pop6, $pop7 i32.store $discard=, 0($0), $pop11 - i32.const $push17=, 12 - i32.add $push12=, $0, $pop17 - i32.store $discard=, 0($pop12), $4 - i32.const $push16=, 8 - i32.add $push13=, $0, $pop16 - i32.store $discard=, 0($pop13), $3 - i32.const $push15=, 4 - i32.add $push14=, $0, $pop15 - i32.store $discard=, 0($pop14), $2 + i32.const $push20=, 12 + i32.add $push12=, $0, $pop20 + i32.const $push19=, 7 + i32.div_s $push10=, $2, $pop19 + i32.store $discard=, 0($pop12), $pop10 + i32.const $push18=, 8 + i32.add $push13=, $0, $pop18 + i32.const $push17=, 7 + i32.div_s $push9=, $3, $pop17 + i32.store $discard=, 0($pop13), $pop9 + i32.const $push16=, 4 + i32.add $push14=, $0, $pop16 + i32.const $push15=, 7 + i32.div_s $push8=, $4, $pop15 + i32.store $discard=, 0($pop14), $pop8 return .endfunc .Lfunc_end22: @@ -1016,34 +1016,34 @@ sr7777: # @sr7777 .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - i32.const $push6=, 4 - i32.add $push7=, $1, $pop6 - i32.load $push8=, 0($pop7) - i32.const $push10=, 7 - i32.rem_s $2=, $pop8, $pop10 - i32.const $push3=, 8 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i32.const $push20=, 7 - i32.rem_s $3=, $pop5, $pop20 i32.const $push0=, 12 i32.add $push1=, $1, $pop0 - i32.load $push2=, 0($pop1) - i32.const $push19=, 7 - i32.rem_s $4=, $pop2, $pop19 - i32.load $push9=, 0($1) - i32.const $push18=, 7 - i32.rem_s $push11=, $pop9, $pop18 + i32.load $2=, 0($pop1) + i32.const $push4=, 4 + i32.add $push5=, $1, $pop4 + i32.load $4=, 0($pop5) + i32.const $push2=, 8 + i32.add $push3=, $1, $pop2 + i32.load $3=, 0($pop3) + i32.load $push6=, 0($1) + i32.const $push7=, 7 + i32.rem_s $push11=, $pop6, $pop7 i32.store $discard=, 0($0), $pop11 - i32.const $push17=, 12 - i32.add $push12=, $0, $pop17 - i32.store $discard=, 0($pop12), $4 - i32.const $push16=, 8 - i32.add $push13=, $0, $pop16 - i32.store $discard=, 0($pop13), $3 - i32.const $push15=, 4 - i32.add $push14=, $0, $pop15 - i32.store $discard=, 0($pop14), $2 + i32.const $push20=, 12 + i32.add $push12=, $0, $pop20 + i32.const $push19=, 7 + i32.rem_s $push10=, $2, $pop19 + i32.store $discard=, 0($pop12), $pop10 + i32.const $push18=, 8 + i32.add $push13=, $0, $pop18 + i32.const $push17=, 7 + i32.rem_s $push9=, $3, $pop17 + i32.store $discard=, 0($pop13), $pop9 + i32.const $push16=, 4 + i32.add $push14=, $0, $pop16 + i32.const $push15=, 7 + i32.rem_s $push8=, $4, $pop15 + i32.store $discard=, 0($pop14), $pop8 return .endfunc .Lfunc_end23: diff --git a/test/torture-s/pr54471.c.s b/test/torture-s/pr54471.c.s index ba655dbc4..048d1c0f3 100644 --- a/test/torture-s/pr54471.c.s +++ b/test/torture-s/pr54471.c.s @@ -15,9 +15,8 @@ foo: # @foo i32.sub $push19=, $pop9, $pop10 i32.store $4=, 0($pop11), $pop19 block - i32.const $push25=, 0 - i32.eq $push26=, $3, $pop25 - br_if 0, $pop26 # 0: down to label0 + i32.eqz $push25=, $3 + br_if 0, $pop25 # 0: down to label0 # BB#1: # %for.body.preheader i64.const $6=, 0 i64.const $5=, 1 @@ -47,9 +46,8 @@ foo: # @foo i64.xor $push2=, $5, $pop23 i64.or $push3=, $pop2, $6 i64.eqz $push4=, $pop3 - i32.const $push27=, 0 - i32.eq $push28=, $pop4, $pop27 - br_if 0, $pop28 # 0: down to label0 + i32.eqz $push26=, $pop4 + br_if 0, $pop26 # 0: down to label0 # BB#4: # %if.end i64.const $push24=, 14348907 i64.store $discard=, 0($0), $pop24 diff --git a/test/torture-s/pr54937.c.s b/test/torture-s/pr54937.c.s index 0b6f754c2..ebbd829ad 100644 --- a/test/torture-s/pr54937.c.s +++ b/test/torture-s/pr54937.c.s @@ -19,9 +19,8 @@ t: # @t # =>This Inner Loop Header: Depth=1 loop # label1: block - i32.const $push8=, 0 - i32.eq $push9=, $1, $pop8 - br_if 0, $pop9 # 0: down to label3 + i32.eqz $push8=, $1 + br_if 0, $pop8 # 0: down to label3 # BB#3: # %if.then # in Loop: Header=BB0_2 Depth=1 i32.const $push4=, 0 diff --git a/test/torture-s/pr54985.c.s b/test/torture-s/pr54985.c.s index 70f74dbe5..34114c186 100644 --- a/test/torture-s/pr54985.c.s +++ b/test/torture-s/pr54985.c.s @@ -11,9 +11,8 @@ foo: # @foo # BB#0: # %entry block block - i32.const $push9=, 0 - i32.eq $push10=, $1, $pop9 - br_if 0, $pop10 # 0: down to label1 + i32.eqz $push9=, $1 + br_if 0, $pop9 # 0: down to label1 # BB#1: # %while.body.preheader i32.load $3=, 0($0) i32.const $push3=, 4 @@ -23,9 +22,8 @@ foo: # @foo loop # label2: i32.const $push4=, -1 i32.add $1=, $1, $pop4 - i32.const $push11=, 0 - i32.eq $push12=, $1, $pop11 - br_if 3, $pop12 # 3: down to label0 + i32.eqz $push10=, $1 + br_if 3, $pop10 # 3: down to label0 # BB#3: # %while.cond.while.body_crit_edge # in Loop: Header=BB0_2 Depth=1 i32.load $push7=, 0($0) diff --git a/test/torture-s/pr55875.c.s b/test/torture-s/pr55875.c.s index 7f0497eb4..453d22eca 100644 --- a/test/torture-s/pr55875.c.s +++ b/test/torture-s/pr55875.c.s @@ -10,9 +10,8 @@ t: # @t # BB#0: # %entry block block - i32.const $push3=, 0 - i32.eq $push4=, $0, $pop3 - br_if 0, $pop4 # 0: down to label1 + i32.eqz $push3=, $0 + br_if 0, $pop3 # 0: down to label1 # BB#1: # %if.end i32.const $push0=, 256 i32.ge_s $push1=, $0, $pop0 diff --git a/test/torture-s/pr56205.c.s b/test/torture-s/pr56205.c.s index e56216b4e..a98515f7e 100644 --- a/test/torture-s/pr56205.c.s +++ b/test/torture-s/pr56205.c.s @@ -45,9 +45,8 @@ f4: # @f4 i32.store $2=, a($pop29), $pop0 block block - i32.const $push33=, 0 - i32.eq $push34=, $1, $pop33 - br_if 0, $pop34 # 0: down to label2 + i32.eqz $push33=, $1 + br_if 0, $pop33 # 0: down to label2 # BB#4: # %land.rhs.i i32.load8_u $4=, 0($1) i32.store $discard=, 20($5), $2 @@ -60,9 +59,8 @@ f4: # @f4 i32.add $push22=, $5, $pop21 call f1@FUNCTION, $5, $pop22 i32.load8_u $push13=, 0($1) - i32.const $push35=, 0 - i32.eq $push36=, $pop13, $pop35 - br_if 1, $pop36 # 1: down to label1 + i32.eqz $push34=, $pop13 + br_if 1, $pop34 # 1: down to label1 # BB#5: # %if.then.i call f2@FUNCTION, $1, $3 br 1 # 1: down to label1 diff --git a/test/torture-s/pr56799.c.s b/test/torture-s/pr56799.c.s index 717944c61..39de5d059 100644 --- a/test/torture-s/pr56799.c.s +++ b/test/torture-s/pr56799.c.s @@ -61,9 +61,8 @@ foo: # @foo tee_local $push10=, $2=, $pop11 i32.const $push9=, 65535 i32.and $push0=, $pop10, $pop9 - i32.const $push15=, 0 - i32.eq $push16=, $pop0, $pop15 - br_if 0, $pop16 # 0: down to label1 + i32.eqz $push15=, $pop0 + br_if 0, $pop15 # 0: down to label1 # BB#1: # %if.then i32.const $push1=, 0 i32.const $push2=, 1 diff --git a/test/torture-s/pr56866.c.s b/test/torture-s/pr56866.c.s index 51164f7a0..3f99dc577 100644 --- a/test/torture-s/pr56866.c.s +++ b/test/torture-s/pr56866.c.s @@ -185,9 +185,8 @@ main: # @main # BB#9: # %lor.lhs.false i64.load $push32=, 3624($4) i64.eqz $push33=, $pop32 - i32.const $push138=, 0 - i32.eq $push139=, $pop33, $pop138 - br_if 0, $pop139 # 0: down to label8 + i32.eqz $push138=, $pop33 + br_if 0, $pop138 # 0: down to label8 # BB#10: # %if.end i64.load $push133=, 1568($4) tee_local $push132=, $6=, $pop133 diff --git a/test/torture-s/pr56982.c.s b/test/torture-s/pr56982.c.s index eab01b9d8..1a7514fb8 100644 --- a/test/torture-s/pr56982.c.s +++ b/test/torture-s/pr56982.c.s @@ -24,16 +24,15 @@ f: # @f # BB#0: # %entry block i32.load $push0=, 0($0) - i32.const $push6=, 0 - i32.eq $push7=, $pop0, $pop6 - br_if 0, $pop7 # 0: down to label0 + i32.eqz $push6=, $pop0 + br_if 0, $pop6 # 0: down to label0 # BB#1: # %if.then i32.const $push1=, 1 return $pop1 .LBB1_2: # %if.end end_block # label0: i32.const $push4=, env - i32.call $1=, _setjmp@FUNCTION, $pop4 + i32.call $1=, setjmp@FUNCTION, $pop4 #APP #NO_APP block diff --git a/test/torture-s/pr57131.c.s b/test/torture-s/pr57131.c.s index 68f2d28ab..2877301d3 100644 --- a/test/torture-s/pr57131.c.s +++ b/test/torture-s/pr57131.c.s @@ -6,46 +6,46 @@ .type main,@function main: # @main .result i32 - .local i32, i32 + .local i32, i32, i64, i64, i64, i64, i32, i32 # BB#0: # %entry - i32.const $push22=, __stack_pointer - i32.const $push19=, __stack_pointer - i32.load $push20=, 0($pop19) - i32.const $push21=, 48 - i32.sub $push26=, $pop20, $pop21 - i32.store $push28=, 0($pop22), $pop26 - tee_local $push27=, $1=, $pop28 - i32.const $push2=, 0 - i32.store $0=, 44($pop27), $pop2 - i64.const $push3=, 0 - i64.store $discard=, 32($1), $pop3 - i32.store $discard=, 28($1), $0 - i32.const $push4=, 1 - i32.store $push0=, 24($1), $pop4 - i32.store $discard=, 20($1), $pop0 + i32.const $push16=, __stack_pointer + i32.const $push13=, __stack_pointer + i32.load $push14=, 0($pop13) + i32.const $push15=, 48 + i32.sub $push20=, $pop14, $pop15 + i32.store $push22=, 0($pop16), $pop20 + tee_local $push21=, $7=, $pop22 + i32.const $push1=, 0 + i32.store $0=, 44($pop21), $pop1 + i64.const $push2=, 0 + i64.store $discard=, 32($7), $pop2 + i32.store $1=, 28($7), $0 + i32.const $push3=, 1 + i32.store $push0=, 24($7), $pop3 + i32.store $discard=, 20($7), $pop0 + i64.const $push4=, 1 + i64.store $2=, 8($7), $pop4 + i64.load32_s $3=, 44($7) + i64.load $4=, 32($7) + i64.load32_u $5=, 28($7) + i32.load $0=, 24($7) + i32.load $6=, 20($7) block - i64.const $push5=, 1 - i64.store $push1=, 8($1), $pop5 - i64.load32_s $push6=, 44($1) - i64.load $push7=, 32($1) - i64.load32_u $push8=, 28($1) - i64.shl $push9=, $pop7, $pop8 - i64.mul $push10=, $pop6, $pop9 - i32.load $push11=, 24($1) - i32.load $push12=, 20($1) - i32.mul $push13=, $pop11, $pop12 - i64.extend_s/i32 $push14=, $pop13 - i64.div_s $push15=, $pop10, $pop14 - i64.load $push16=, 8($1) - i64.add $push17=, $pop15, $pop16 - i64.ne $push18=, $pop1, $pop17 - br_if 0, $pop18 # 0: down to label0 + i64.load $push10=, 8($7) + i64.shl $push5=, $4, $5 + i64.mul $push6=, $3, $pop5 + i32.mul $push7=, $6, $0 + i64.extend_s/i32 $push8=, $pop7 + i64.div_s $push9=, $pop6, $pop8 + i64.add $push11=, $pop10, $pop9 + i64.ne $push12=, $2, $pop11 + br_if 0, $pop12 # 0: down to label0 # BB#1: # %if.end - i32.const $push25=, __stack_pointer - i32.const $push23=, 48 - i32.add $push24=, $1, $pop23 - i32.store $discard=, 0($pop25), $pop24 - return $0 + i32.const $push19=, __stack_pointer + i32.const $push17=, 48 + i32.add $push18=, $7, $pop17 + i32.store $discard=, 0($pop19), $pop18 + return $1 .LBB0_2: # %if.then end_block # label0: call abort@FUNCTION diff --git a/test/torture-s/pr57568.c.s b/test/torture-s/pr57568.c.s index 18c9549ba..1949909ce 100644 --- a/test/torture-s/pr57568.c.s +++ b/test/torture-s/pr57568.c.s @@ -12,9 +12,8 @@ main: # @main block i32.const $push3=, 0 i32.load $push0=, b($pop3) - i32.const $push8=, 0 - i32.eq $push9=, $pop0, $pop8 - br_if 0, $pop9 # 0: down to label1 + i32.eqz $push8=, $pop0 + br_if 0, $pop8 # 0: down to label1 # BB#1: # %land.lhs.true i32.const $push6=, 0 i32.load $0=, c($pop6) diff --git a/test/torture-s/pr57860.c.s b/test/torture-s/pr57860.c.s index 8dc99c4e4..aa7c54cc2 100644 --- a/test/torture-s/pr57860.c.s +++ b/test/torture-s/pr57860.c.s @@ -22,9 +22,8 @@ foo: # @foo block i32.const $push16=, 0 i32.load $push1=, c($pop16) - i32.const $push25=, 0 - i32.eq $push26=, $pop1, $pop25 - br_if 0, $pop26 # 0: down to label2 + i32.eqz $push25=, $pop1 + br_if 0, $pop25 # 0: down to label2 # BB#2: # %for.inc.preheader # in Loop: Header=BB0_1 Depth=1 i32.const $push18=, 0 @@ -84,9 +83,8 @@ main: # @main block i32.const $push18=, 0 i32.load $push1=, c($pop18) - i32.const $push30=, 0 - i32.eq $push31=, $pop1, $pop30 - br_if 0, $pop31 # 0: down to label5 + i32.eqz $push30=, $pop1 + br_if 0, $pop30 # 0: down to label5 # BB#2: # %for.inc.preheader.i # in Loop: Header=BB1_1 Depth=1 i32.const $push20=, 0 diff --git a/test/torture-s/pr57875.c.s b/test/torture-s/pr57875.c.s index 2c8511b6f..3ecdfdaac 100644 --- a/test/torture-s/pr57875.c.s +++ b/test/torture-s/pr57875.c.s @@ -29,9 +29,8 @@ main: # @main # in Loop: Header=BB0_2 Depth=1 block block - i32.const $push29=, 0 - i32.eq $push30=, $1, $pop29 - br_if 0, $pop30 # 0: down to label5 + i32.eqz $push29=, $1 + br_if 0, $pop29 # 0: down to label5 # BB#4: # %if.then.if.end_crit_edge # in Loop: Header=BB0_2 Depth=1 i32.const $push18=, 0 diff --git a/test/torture-s/pr57876.c.s b/test/torture-s/pr57876.c.s index 2e0225330..1f6d64ddc 100644 --- a/test/torture-s/pr57876.c.s +++ b/test/torture-s/pr57876.c.s @@ -151,9 +151,8 @@ main: # @main i32.add $push85=, $9, $pop84 i32.store $discard=, g($8), $pop85 block - i32.const $push106=, 0 - i32.eq $push107=, $10, $pop106 - br_if 0, $pop107 # 0: down to label0 + i32.eqz $push106=, $10 + br_if 0, $pop106 # 0: down to label0 # BB#1: # %if.end i32.const $push83=, __stack_pointer i32.const $push81=, 16 diff --git a/test/torture-s/pr58209.c.s b/test/torture-s/pr58209.c.s index 960e7abc9..0ff2ec8aa 100644 --- a/test/torture-s/pr58209.c.s +++ b/test/torture-s/pr58209.c.s @@ -9,9 +9,8 @@ foo: # @foo .result i32 # BB#0: # %entry block - i32.const $push6=, 0 - i32.eq $push7=, $0, $pop6 - br_if 0, $pop7 # 0: down to label0 + i32.eqz $push6=, $0 + br_if 0, $pop6 # 0: down to label0 # BB#1: # %if.end i32.const $push0=, -1 i32.add $push1=, $0, $pop0 @@ -38,9 +37,8 @@ bar: # @bar # BB#0: # %entry i32.const $1=, buf block - i32.const $push4=, 0 - i32.eq $push5=, $0, $pop4 - br_if 0, $pop5 # 0: down to label1 + i32.eqz $push4=, $0 + br_if 0, $pop4 # 0: down to label1 # BB#1: # %if.end i32.const $push0=, -1 i32.add $push1=, $0, $pop0 @@ -78,9 +76,8 @@ main: # @main # in Loop: Header=BB2_1 Depth=1 i32.const $2=, buf block - i32.const $push13=, 0 - i32.eq $push14=, $1, $pop13 - br_if 0, $pop14 # 0: down to label5 + i32.eqz $push13=, $1 + br_if 0, $pop13 # 0: down to label5 # BB#3: # %if.end.i # in Loop: Header=BB2_1 Depth=1 i32.const $push10=, -1 diff --git a/test/torture-s/pr58277-1.c.s b/test/torture-s/pr58277-1.c.s index 0df82a3ee..417020e09 100644 --- a/test/torture-s/pr58277-1.c.s +++ b/test/torture-s/pr58277-1.c.s @@ -36,20 +36,20 @@ main: # @main .result i32 .local i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push95=, __stack_pointer - i32.const $push92=, __stack_pointer - i32.load $push93=, 0($pop92) - i32.const $push94=, 32 - i32.sub $push99=, $pop93, $pop94 - i32.store $4=, 0($pop95), $pop99 + i32.const $push89=, __stack_pointer + i32.const $push86=, __stack_pointer + i32.load $push87=, 0($pop86) + i32.const $push88=, 32 + i32.sub $push93=, $pop87, $pop88 + i32.store $4=, 0($pop89), $pop93 i32.const $push5=, 0 - i32.const $push102=, 0 + i32.const $push96=, 0 i32.const $push4=, 1 - i32.store $push0=, a($pop102), $pop4 + i32.store $push0=, a($pop96), $pop4 i32.store $0=, n($pop5), $pop0 - i32.const $push101=, 0 - i32.const $push100=, 0 - i32.store8 $1=, u($pop101), $pop100 + i32.const $push95=, 0 + i32.const $push94=, 0 + i32.store8 $1=, u($pop95), $pop94 i32.const $5=, 1 .LBB2_1: # %for.body # =>This Loop Header: Depth=1 @@ -60,38 +60,37 @@ main: # @main i32.store $2=, g($1), $1 block block - i32.const $push152=, 0 - i32.eq $push153=, $6, $pop152 - br_if 0, $pop153 # 0: down to label3 + i32.eqz $push146=, $6 + br_if 0, $pop146 # 0: down to label3 # BB#2: # %for.end # in Loop: Header=BB2_1 Depth=1 i32.load $push6=, j($2) - i32.store $push108=, 0($pop6), $2 - tee_local $push107=, $6=, $pop108 - i32.store $push106=, d($pop107), $6 - tee_local $push105=, $6=, $pop106 - i32.load $push9=, i($pop105) - i32.load $push7=, j($6) - i32.load $push8=, 0($pop7) - i32.store $discard=, 0($pop9), $pop8 - i32.load $push10=, i($6) - i32.store $push104=, 0($pop10), $6 - tee_local $push103=, $6=, $pop104 - i32.load $push11=, i($pop103) - i32.store $push1=, 0($pop11), $6 - i32.load $push12=, i($pop1) - i32.store $discard=, 0($pop12), $4 + i32.store $push102=, 0($pop6), $2 + tee_local $push101=, $6=, $pop102 + i32.store $push100=, d($pop101), $6 + tee_local $push99=, $6=, $pop100 + i32.load $3=, j($pop99) + i32.load $push8=, i($6) + i32.load $push7=, 0($3) + i32.store $discard=, 0($pop8), $pop7 + i32.load $push9=, i($6) + i32.store $push98=, 0($pop9), $6 + tee_local $push97=, $6=, $pop98 + i32.load $push10=, i($pop97) + i32.store $push1=, 0($pop10), $6 + i32.load $push11=, i($pop1) + i32.store $discard=, 0($pop11), $4 br 1 # 1: down to label2 .LBB2_3: # %for.cond.preheader.i # in Loop: Header=BB2_1 Depth=1 end_block # label3: - i32.load $push13=, i($2) - i32.store $push112=, 0($pop13), $2 - tee_local $push111=, $5=, $pop112 - i32.load $push14=, e($pop111) - i32.store $push110=, 0($pop14), $5 - tee_local $push109=, $5=, $pop110 - i32.load $6=, p($pop109) + i32.load $push12=, i($2) + i32.store $push106=, 0($pop12), $2 + tee_local $push105=, $5=, $pop106 + i32.load $push13=, e($pop105) + i32.store $push104=, 0($pop13), $5 + tee_local $push103=, $5=, $pop104 + i32.load $6=, p($pop103) i32.store $3=, o($5), $5 block br_if 0, $6 # 0: down to label4 @@ -101,72 +100,70 @@ main: # @main # Child Loop BB2_5 Depth 3 loop # label5: block - i32.load $push118=, i($3) - tee_local $push117=, $7=, $pop118 - i32.load $push116=, 0($pop117) - tee_local $push115=, $6=, $pop116 - i32.store $push114=, 0($pop115), $3 - tee_local $push113=, $5=, $pop114 - i32.load $push15=, j($pop113) + i32.load $push112=, i($3) + tee_local $push111=, $7=, $pop112 + i32.load $push110=, 0($pop111) + tee_local $push109=, $6=, $pop110 + i32.store $push108=, 0($pop109), $3 + tee_local $push107=, $5=, $pop108 + i32.load $push14=, j($pop107) + i32.load $push15=, 0($pop14) i32.load $push16=, 0($pop15) - i32.load $push17=, 0($pop16) - br_if 0, $pop17 # 0: down to label7 + br_if 0, $pop16 # 0: down to label7 .LBB2_5: # %if.end110.i # Parent Loop BB2_1 Depth=1 # Parent Loop BB2_4 Depth=2 # => This Inner Loop Header: Depth=3 loop # label8: - i32.load $push18=, k($5) - i32.add $push19=, $pop18, $0 - i32.store $discard=, k($5), $pop19 + i32.load $push17=, k($5) + i32.add $push18=, $pop17, $0 + i32.store $discard=, k($5), $pop18 i32.store $push2=, 0($6), $5 - i32.load $push20=, j($pop2) + i32.load $push19=, j($pop2) + i32.load $push20=, 0($pop19) i32.load $push21=, 0($pop20) - i32.load $push22=, 0($pop21) - i32.const $push154=, 0 - i32.eq $push155=, $pop22, $pop154 - br_if 0, $pop155 # 0: up to label8 + i32.eqz $push147=, $pop21 + br_if 0, $pop147 # 0: up to label8 .LBB2_6: # %for.end.i # in Loop: Header=BB2_4 Depth=2 end_loop # label9: end_block # label7: - i32.load $push23=, j($5) - i32.load $push24=, 0($pop23) - i32.store $discard=, 0($7), $pop24 + i32.load $push22=, j($5) + i32.load $push23=, 0($pop22) + i32.store $discard=, 0($7), $pop23 + i32.load $6=, j($5) + i32.load $push25=, i($5) + i32.load $push24=, 0($6) + i32.store $discard=, 0($pop25), $pop24 + i32.load $6=, j($5) i32.load $push27=, i($5) - i32.load $push25=, j($5) - i32.load $push26=, 0($pop25) + i32.load $push26=, 0($6) i32.store $discard=, 0($pop27), $pop26 - i32.load $push30=, i($5) - i32.load $push28=, j($5) - i32.load $push29=, 0($pop28) - i32.store $discard=, 0($pop30), $pop29 + i32.load $6=, j($5) + i32.load $push29=, i($5) + i32.load $push28=, 0($6) + i32.store $discard=, 0($pop29), $pop28 + i32.load $6=, j($5) + i32.load $push31=, i($5) + i32.load $push30=, 0($6) + i32.store $discard=, 0($pop31), $pop30 + i32.load $6=, j($5) i32.load $push33=, i($5) - i32.load $push31=, j($5) - i32.load $push32=, 0($pop31) + i32.load $push32=, 0($6) i32.store $discard=, 0($pop33), $pop32 - i32.load $push36=, i($5) - i32.load $push34=, j($5) - i32.load $push35=, 0($pop34) - i32.store $discard=, 0($pop36), $pop35 - i32.load $push39=, i($5) - i32.load $push37=, j($5) - i32.load $push38=, 0($pop37) - i32.store $discard=, 0($pop39), $pop38 i32.load $6=, h($5) - i32.load $push41=, i($5) - i32.store $push122=, 0($pop41), $5 - tee_local $push121=, $5=, $pop122 - i32.load $7=, e($pop121) - i32.add $push40=, $6, $0 - i32.store $discard=, h($5), $pop40 - i32.store $push120=, 0($7), $5 - tee_local $push119=, $5=, $pop120 - i32.load $6=, p($pop119) + i32.load $push35=, i($5) + i32.store $push116=, 0($pop35), $5 + tee_local $push115=, $5=, $pop116 + i32.load $7=, e($pop115) + i32.add $push34=, $6, $0 + i32.store $discard=, h($5), $pop34 + i32.store $push114=, 0($7), $5 + tee_local $push113=, $5=, $pop114 + i32.load $6=, p($pop113) i32.store $discard=, o($5), $5 - i32.const $push156=, 0 - i32.eq $push157=, $6, $pop156 - br_if 0, $pop157 # 0: up to label5 + i32.eqz $push148=, $6 + br_if 0, $pop148 # 0: up to label5 .LBB2_7: # %foo.exit.thread # in Loop: Header=BB2_1 Depth=1 end_loop # label6: @@ -176,21 +173,20 @@ main: # @main .LBB2_8: # %for.inc7 # in Loop: Header=BB2_1 Depth=1 end_block # label2: - i32.const $push123=, -1 - i32.add $5=, $5, $pop123 + i32.const $push117=, -1 + i32.add $5=, $5, $pop117 i32.store $push3=, n($2), $5 br_if 0, $pop3 # 0: up to label0 # BB#9: # %for.end8 end_loop # label1: - i32.const $push42=, 0 - i32.load $6=, b($pop42) - i32.const $push125=, 0 - i32.const $push124=, 0 - i32.store8 $3=, u($pop125), $pop124 + i32.const $push36=, 0 + i32.load $6=, b($pop36) + i32.const $push119=, 0 + i32.const $push118=, 0 + i32.store8 $3=, u($pop119), $pop118 block - i32.const $push158=, 0 - i32.eq $push159=, $6, $pop158 - br_if 0, $pop159 # 0: down to label10 + i32.eqz $push149=, $6 + br_if 0, $pop149 # 0: down to label10 # BB#10: # %for.cond12.preheader.lr.ph i32.load $0=, c($3) .LBB2_11: # %for.cond12.preheader @@ -202,106 +198,105 @@ main: # @main # Parent Loop BB2_11 Depth=1 # => This Inner Loop Header: Depth=2 loop # label13: - i32.const $push134=, 2 - i32.shl $push43=, $0, $pop134 + i32.const $push128=, 2 + i32.shl $push37=, $0, $pop128 + i32.load $push38=, a($pop37) + i32.const $push127=, 2 + i32.shl $push39=, $pop38, $pop127 + i32.load $push40=, a($pop39) + i32.const $push126=, 2 + i32.shl $push41=, $pop40, $pop126 + i32.load $push42=, a($pop41) + i32.const $push125=, 2 + i32.shl $push43=, $pop42, $pop125 i32.load $push44=, a($pop43) - i32.const $push133=, 2 - i32.shl $push45=, $pop44, $pop133 + i32.const $push124=, 2 + i32.shl $push45=, $pop44, $pop124 i32.load $push46=, a($pop45) - i32.const $push132=, 2 - i32.shl $push47=, $pop46, $pop132 + i32.const $push123=, 2 + i32.shl $push47=, $pop46, $pop123 i32.load $push48=, a($pop47) - i32.const $push131=, 2 - i32.shl $push49=, $pop48, $pop131 + i32.const $push122=, 2 + i32.shl $push49=, $pop48, $pop122 i32.load $push50=, a($pop49) - i32.const $push130=, 2 - i32.shl $push51=, $pop50, $pop130 - i32.load $push52=, a($pop51) - i32.const $push129=, 2 - i32.shl $push53=, $pop52, $pop129 - i32.load $push54=, a($pop53) - i32.const $push128=, 2 - i32.shl $push55=, $pop54, $pop128 - i32.load $push56=, a($pop55) - i32.const $push127=, 2 - i32.shl $push57=, $pop56, $pop127 - i32.load $0=, a($pop57) - i32.const $push126=, -1 - i32.add $5=, $5, $pop126 + i32.const $push121=, 2 + i32.shl $push51=, $pop50, $pop121 + i32.load $0=, a($pop51) + i32.const $push120=, -1 + i32.add $5=, $5, $pop120 br_if 0, $5 # 0: up to label13 # BB#13: # %for.inc27 # in Loop: Header=BB2_11 Depth=1 end_loop # label14: - i32.const $push135=, 1 - i32.add $6=, $6, $pop135 + i32.const $push129=, 1 + i32.add $6=, $6, $pop129 br_if 0, $6 # 0: up to label11 # BB#14: # %for.cond9.for.end29_crit_edge end_loop # label12: - i32.const $push58=, 0 - i32.store $discard=, c($pop58), $0 - i32.const $push137=, 0 - i32.const $push136=, 0 - i32.store $discard=, b($pop137), $pop136 + i32.const $push52=, 0 + i32.store $discard=, c($pop52), $0 + i32.const $push131=, 0 + i32.const $push130=, 0 + i32.store $discard=, b($pop131), $pop130 .LBB2_15: # %for.end29 end_block # label10: call baz@FUNCTION block - i32.load8_s $push59=, u($3) - i32.const $push60=, 2 - i32.shl $push61=, $pop59, $pop60 + i32.load8_s $push53=, u($3) + i32.const $push54=, 2 + i32.shl $push55=, $pop53, $pop54 + i32.load $push56=, a($pop55) + i32.const $push145=, 2 + i32.shl $push57=, $pop56, $pop145 + i32.load $push58=, a($pop57) + i32.const $push144=, 2 + i32.shl $push59=, $pop58, $pop144 + i32.load $push60=, a($pop59) + i32.const $push143=, 2 + i32.shl $push61=, $pop60, $pop143 i32.load $push62=, a($pop61) - i32.const $push151=, 2 - i32.shl $push63=, $pop62, $pop151 + i32.const $push142=, 2 + i32.shl $push63=, $pop62, $pop142 i32.load $push64=, a($pop63) - i32.const $push150=, 2 - i32.shl $push65=, $pop64, $pop150 + i32.const $push141=, 2 + i32.shl $push65=, $pop64, $pop141 i32.load $push66=, a($pop65) - i32.const $push149=, 2 - i32.shl $push67=, $pop66, $pop149 + i32.const $push140=, 2 + i32.shl $push67=, $pop66, $pop140 i32.load $push68=, a($pop67) - i32.const $push148=, 2 - i32.shl $push69=, $pop68, $pop148 + i32.const $push139=, 2 + i32.shl $push69=, $pop68, $pop139 i32.load $push70=, a($pop69) - i32.const $push147=, 2 - i32.shl $push71=, $pop70, $pop147 + i32.const $push138=, 2 + i32.shl $push71=, $pop70, $pop138 i32.load $push72=, a($pop71) - i32.const $push146=, 2 - i32.shl $push73=, $pop72, $pop146 + i32.const $push137=, 2 + i32.shl $push73=, $pop72, $pop137 i32.load $push74=, a($pop73) - i32.const $push145=, 2 - i32.shl $push75=, $pop74, $pop145 + i32.const $push136=, 2 + i32.shl $push75=, $pop74, $pop136 i32.load $push76=, a($pop75) - i32.const $push144=, 2 - i32.shl $push77=, $pop76, $pop144 + i32.const $push135=, 2 + i32.shl $push77=, $pop76, $pop135 i32.load $push78=, a($pop77) - i32.const $push143=, 2 - i32.shl $push79=, $pop78, $pop143 + i32.const $push134=, 2 + i32.shl $push79=, $pop78, $pop134 i32.load $push80=, a($pop79) - i32.const $push142=, 2 - i32.shl $push81=, $pop80, $pop142 + i32.const $push133=, 2 + i32.shl $push81=, $pop80, $pop133 i32.load $push82=, a($pop81) - i32.const $push141=, 2 - i32.shl $push83=, $pop82, $pop141 + i32.const $push132=, 2 + i32.shl $push83=, $pop82, $pop132 i32.load $push84=, a($pop83) - i32.const $push140=, 2 - i32.shl $push85=, $pop84, $pop140 - i32.load $push86=, a($pop85) - i32.const $push139=, 2 - i32.shl $push87=, $pop86, $pop139 - i32.load $push88=, a($pop87) - i32.const $push138=, 2 - i32.shl $push89=, $pop88, $pop138 - i32.load $push90=, a($pop89) - i32.const $push160=, 0 - i32.eq $push161=, $pop90, $pop160 - br_if 0, $pop161 # 0: down to label15 + i32.eqz $push150=, $pop84 + br_if 0, $pop150 # 0: down to label15 # BB#16: # %if.end47 - i32.const $push98=, __stack_pointer - i32.const $push96=, 32 - i32.add $push97=, $4, $pop96 - i32.store $discard=, 0($pop98), $pop97 - i32.const $push91=, 0 - return $pop91 + i32.const $push92=, __stack_pointer + i32.const $push90=, 32 + i32.add $push91=, $4, $pop90 + i32.store $discard=, 0($pop92), $pop91 + i32.const $push85=, 0 + return $pop85 .LBB2_17: # %if.then46 end_block # label15: call abort@FUNCTION diff --git a/test/torture-s/pr58277-2.c.s b/test/torture-s/pr58277-2.c.s index 7a4236251..5f550af71 100644 --- a/test/torture-s/pr58277-2.c.s +++ b/test/torture-s/pr58277-2.c.s @@ -15,9 +15,8 @@ main: # @main i32.store8 $0=, n($pop8), $pop7 block block - i32.const $push12=, 0 - i32.eq $push13=, $1, $pop12 - br_if 0, $pop13 # 0: down to label1 + i32.eqz $push12=, $1 + br_if 0, $pop12 # 0: down to label1 # BB#1: # %fn2.exit.thread.i i32.load $discard=, d($0) br 1 # 1: down to label0 diff --git a/test/torture-s/pr58365.c.s b/test/torture-s/pr58365.c.s index f74305f34..c7898f1d0 100644 --- a/test/torture-s/pr58365.c.s +++ b/test/torture-s/pr58365.c.s @@ -32,9 +32,8 @@ main: # @main block i32.const $push33=, 0 i32.load8_u $push1=, i($pop33) - i32.const $push46=, 0 - i32.eq $push47=, $pop1, $pop46 - br_if 0, $pop47 # 0: down to label1 + i32.eqz $push46=, $pop1 + br_if 0, $pop46 # 0: down to label1 # BB#1: # %if.then.i i32.const $push3=, 24 i32.add $push4=, $0, $pop3 diff --git a/test/torture-s/pr58431.c.s b/test/torture-s/pr58431.c.s index abb3b1247..3502de923 100644 --- a/test/torture-s/pr58431.c.s +++ b/test/torture-s/pr58431.c.s @@ -46,9 +46,8 @@ main: # @main i32.const $push20=, 0 i32.const $push10=, 1 i32.store8 $3=, h($pop20), $pop10 - i32.const $push35=, 0 - i32.eq $push36=, $0, $pop35 - br_if 2, $pop36 # 2: down to label1 + i32.eqz $push35=, $0 + br_if 2, $pop35 # 2: down to label1 # BB#4: # %for.inc17.preheader i32.const $push23=, 0 i32.const $push22=, 0 diff --git a/test/torture-s/pr58570.c.s b/test/torture-s/pr58570.c.s index 48f92a8a0..4f59be7d2 100644 --- a/test/torture-s/pr58570.c.s +++ b/test/torture-s/pr58570.c.s @@ -11,9 +11,8 @@ main: # @main block i32.const $push24=, 0 i32.load $push0=, e($pop24) - i32.const $push32=, 0 - i32.eq $push33=, $pop0, $pop32 - br_if 0, $pop33 # 0: down to label0 + i32.eqz $push32=, $pop0 + br_if 0, $pop32 # 0: down to label0 # BB#1: # %if.then i32.const $push29=, 0 i32.load $push1=, i($pop29) diff --git a/test/torture-s/pr58574.c.s b/test/torture-s/pr58574.c.s index 2ff48cfad..3335733b6 100644 --- a/test/torture-s/pr58574.c.s +++ b/test/torture-s/pr58574.c.s @@ -1772,9 +1772,8 @@ main: # @main f64.le $push4=, $0, $pop3 f64.ne $push5=, $0, $0 i32.or $push6=, $pop4, $pop5 - i32.const $push10=, 0 - i32.eq $push11=, $pop6, $pop10 - br_if 0, $pop11 # 0: down to label65 + i32.eqz $push10=, $pop6 + br_if 0, $pop10 # 0: down to label65 # BB#2: # %if.end i32.const $push7=, 0 return $pop7 diff --git a/test/torture-s/pr58831.c.s b/test/torture-s/pr58831.c.s index cd57f6fff..6293af8d0 100644 --- a/test/torture-s/pr58831.c.s +++ b/test/torture-s/pr58831.c.s @@ -44,9 +44,8 @@ fn1: # @fn1 block i32.const $push7=, 0 i32.load $push3=, p($pop7) - i32.const $push13=, 0 - i32.eq $push14=, $pop3, $pop13 - br_if 0, $pop14 # 0: down to label0 + i32.eqz $push13=, $pop3 + br_if 0, $pop13 # 0: down to label0 # BB#1: # %for.body.preheader .LBB2_2: # %for.body # =>This Inner Loop Header: Depth=1 diff --git a/test/torture-s/pr59014.c.s b/test/torture-s/pr59014.c.s index d836197dc..0a5679dad 100644 --- a/test/torture-s/pr59014.c.s +++ b/test/torture-s/pr59014.c.s @@ -19,9 +19,8 @@ foo: # @foo i32.const $push2=, 1 i32.and $push3=, $pop5, $pop2 i32.or $push4=, $pop1, $pop3 - i32.const $push12=, 0 - i32.eq $push13=, $pop4, $pop12 - br_if 0, $pop13 # 0: down to label0 + i32.eqz $push12=, $pop4 + br_if 0, $pop12 # 0: down to label0 .LBB0_1: # %for.inc # =>This Inner Loop Header: Depth=1 loop # label1: @@ -56,9 +55,8 @@ main: # @main i32.const $push3=, 1 i32.and $push4=, $pop9, $pop3 i32.or $push5=, $pop2, $pop4 - i32.const $push15=, 0 - i32.eq $push16=, $pop5, $pop15 - br_if 0, $pop16 # 0: down to label3 + i32.eqz $push15=, $pop5 + br_if 0, $pop15 # 0: down to label3 .LBB1_1: # %for.inc.i # =>This Inner Loop Header: Depth=1 loop # label4: diff --git a/test/torture-s/pr59221.c.s b/test/torture-s/pr59221.c.s index e987434bd..bdc28a4d2 100644 --- a/test/torture-s/pr59221.c.s +++ b/test/torture-s/pr59221.c.s @@ -11,9 +11,8 @@ main: # @main block i32.const $push14=, 0 i32.load $push2=, b($pop14) - i32.const $push24=, 0 - i32.eq $push25=, $pop2, $pop24 - br_if 0, $pop25 # 0: down to label0 + i32.eqz $push24=, $pop2 + br_if 0, $pop24 # 0: down to label0 # BB#1: # %for.inc.preheader i32.const $push16=, 0 i32.const $push15=, 0 diff --git a/test/torture-s/pr59387.c.s b/test/torture-s/pr59387.c.s index 737f7a625..6093a26c4 100644 --- a/test/torture-s/pr59387.c.s +++ b/test/torture-s/pr59387.c.s @@ -25,9 +25,8 @@ main: # @main i32.add $1=, $1, $pop9 i32.const $push8=, 0 i32.load $push2=, d($pop8) - i32.const $push16=, 0 - i32.eq $push17=, $pop2, $pop16 - br_if 1, $pop17 # 1: down to label1 + i32.eqz $push16=, $pop2 + br_if 1, $pop16 # 1: down to label1 # BB#2: # %for.inc4 # in Loop: Header=BB0_1 Depth=1 i32.const $push13=, 1 diff --git a/test/torture-s/pr59747.c.s b/test/torture-s/pr59747.c.s index 40e605c10..5ce90d6ba 100644 --- a/test/torture-s/pr59747.c.s +++ b/test/torture-s/pr59747.c.s @@ -32,9 +32,8 @@ main: # @main i32.const $push0=, 1 i32.store $discard=, a($pop13), $pop0 block - i32.const $push19=, 0 - i32.eq $push20=, $0, $pop19 - br_if 0, $pop20 # 0: down to label0 + i32.eqz $push19=, $0 + br_if 0, $pop19 # 0: down to label0 # BB#1: # %if.then i32.const $push1=, -1 i32.add $1=, $1, $pop1 diff --git a/test/torture-s/pr60960.c.s b/test/torture-s/pr60960.c.s index 0e139880a..e1d6d7f41 100644 --- a/test/torture-s/pr60960.c.s +++ b/test/torture-s/pr60960.c.s @@ -7,31 +7,31 @@ f1: # @f1 .param i32, i32, i32, i32, i32 # BB#0: # %entry + i32.const $push12=, 3 + i32.add $push13=, $0, $pop12 i32.const $push0=, 255 - i32.and $push3=, $2, $pop0 + i32.and $push1=, $4, $pop0 i32.const $push8=, 0 - i32.div_u $2=, $pop3, $pop8 + i32.div_u $push11=, $pop1, $pop8 + i32.store8 $discard=, 0($pop13), $pop11 + i32.const $push14=, 2 + i32.add $push15=, $0, $pop14 + i32.const $push21=, 255 + i32.and $push2=, $3, $pop21 + i32.const $push20=, 0 + i32.div_u $push10=, $pop2, $pop20 + i32.store8 $discard=, 0($pop15), $pop10 + i32.const $push6=, 1 + i32.add $push16=, $0, $pop6 i32.const $push19=, 255 - i32.and $push2=, $3, $pop19 + i32.and $push3=, $2, $pop19 i32.const $push18=, 0 - i32.div_u $3=, $pop2, $pop18 - i32.const $push10=, 3 - i32.add $push11=, $0, $pop10 - i32.const $push17=, 255 - i32.and $push1=, $4, $pop17 - i32.const $push16=, 0 - i32.div_u $push9=, $pop1, $pop16 - i32.store8 $discard=, 0($pop11), $pop9 - i32.const $push12=, 2 - i32.add $push13=, $0, $pop12 - i32.store8 $discard=, 0($pop13), $3 - i32.const $push6=, 1 - i32.add $push14=, $0, $pop6 - i32.store8 $discard=, 0($pop14), $2 + i32.div_u $push9=, $pop3, $pop18 + i32.store8 $discard=, 0($pop16), $pop9 i32.const $push4=, 254 i32.and $push5=, $1, $pop4 - i32.const $push15=, 1 - i32.shr_u $push7=, $pop5, $pop15 + i32.const $push17=, 1 + i32.shr_u $push7=, $pop5, $pop17 i32.store8 $discard=, 0($0), $pop7 return .endfunc @@ -83,36 +83,36 @@ f2: # @f2 f3: # @f3 .param i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry + i32.const $push13=, 3 + i32.add $push14=, $0, $pop13 i32.const $push0=, 255 - i32.and $push8=, $1, $pop0 + i32.and $push2=, $4, $pop0 + i32.const $push25=, 255 + i32.and $push1=, $8, $pop25 + i32.div_u $push12=, $pop2, $pop1 + i32.store8 $discard=, 0($pop14), $pop12 + i32.const $push15=, 2 + i32.add $push16=, $0, $pop15 + i32.const $push24=, 255 + i32.and $push4=, $3, $pop24 + i32.const $push23=, 255 + i32.and $push3=, $7, $pop23 + i32.div_u $push11=, $pop4, $pop3 + i32.store8 $discard=, 0($pop16), $pop11 + i32.const $push17=, 1 + i32.add $push18=, $0, $pop17 i32.const $push22=, 255 - i32.and $push7=, $5, $pop22 - i32.div_u $1=, $pop8, $pop7 + i32.and $push6=, $2, $pop22 i32.const $push21=, 255 - i32.and $push6=, $2, $pop21 + i32.and $push5=, $6, $pop21 + i32.div_u $push10=, $pop6, $pop5 + i32.store8 $discard=, 0($pop18), $pop10 i32.const $push20=, 255 - i32.and $push5=, $6, $pop20 - i32.div_u $5=, $pop6, $pop5 + i32.and $push8=, $1, $pop20 i32.const $push19=, 255 - i32.and $push4=, $3, $pop19 - i32.const $push18=, 255 - i32.and $push3=, $7, $pop18 - i32.div_u $2=, $pop4, $pop3 - i32.const $push10=, 3 - i32.add $push11=, $0, $pop10 - i32.const $push17=, 255 - i32.and $push2=, $4, $pop17 - i32.const $push16=, 255 - i32.and $push1=, $8, $pop16 - i32.div_u $push9=, $pop2, $pop1 - i32.store8 $discard=, 0($pop11), $pop9 - i32.const $push12=, 2 - i32.add $push13=, $0, $pop12 - i32.store8 $discard=, 0($pop13), $2 - i32.const $push14=, 1 - i32.add $push15=, $0, $pop14 - i32.store8 $discard=, 0($pop15), $5 - i32.store8 $discard=, 0($0), $1 + i32.and $push7=, $5, $pop19 + i32.div_u $push9=, $pop8, $pop7 + i32.store8 $discard=, 0($0), $pop9 return .endfunc .Lfunc_end2: diff --git a/test/torture-s/pr63659.c.s b/test/torture-s/pr63659.c.s index b7e09c9e0..29f3908e3 100644 --- a/test/torture-s/pr63659.c.s +++ b/test/torture-s/pr63659.c.s @@ -11,9 +11,8 @@ main: # @main block i32.const $push9=, 0 i32.load $push2=, a($pop9) - i32.const $push24=, 0 - i32.eq $push25=, $pop2, $pop24 - br_if 0, $pop25 # 0: down to label0 + i32.eqz $push24=, $pop2 + br_if 0, $pop24 # 0: down to label0 # BB#1: # %for.cond.preheader i32.const $push11=, 0 i32.const $push10=, 0 @@ -30,9 +29,8 @@ main: # @main i32.shr_s $push1=, $pop3, $pop4 i32.store $push13=, g($pop16), $pop1 tee_local $push12=, $0=, $pop13 - i32.const $push26=, 0 - i32.eq $push27=, $pop12, $pop26 - br_if 0, $pop27 # 0: down to label1 + i32.eqz $push25=, $pop12 + br_if 0, $pop25 # 0: down to label1 # BB#3: # %cond.false i32.const $push5=, -1 i32.rem_s $1=, $pop5, $0 diff --git a/test/torture-s/printf-chk-1.c.s b/test/torture-s/printf-chk-1.c.s index cb965d7dd..17f972cca 100644 --- a/test/torture-s/printf-chk-1.c.s +++ b/test/torture-s/printf-chk-1.c.s @@ -9,28 +9,26 @@ __printf_chk: # @__printf_chk .result i32 .local i32 # BB#0: # %entry - i32.const $push7=, __stack_pointer - i32.const $push4=, __stack_pointer - i32.load $push5=, 0($pop4) - i32.const $push6=, 16 - i32.sub $push11=, $pop5, $pop6 - i32.store $3=, 0($pop7), $pop11 + i32.const $push6=, __stack_pointer + i32.const $push3=, __stack_pointer + i32.load $push4=, 0($pop3) + i32.const $push5=, 16 + i32.sub $push10=, $pop4, $pop5 + i32.store $3=, 0($pop6), $pop10 block - i32.const $push12=, 0 - i32.load $push1=, should_optimize($pop12) + i32.const $push11=, 0 + i32.load $push1=, should_optimize($pop11) br_if 0, $pop1 # 0: down to label0 # BB#1: # %if.end - i32.const $push14=, 0 + i32.const $push12=, 0 i32.const $push2=, 1 - i32.store $discard=, should_optimize($pop14), $pop2 - i32.const $push13=, 0 - i32.load $push3=, stdout($pop13) + i32.store $discard=, should_optimize($pop12), $pop2 i32.store $push0=, 12($3), $2 - i32.call $1=, vfprintf@FUNCTION, $pop3, $1, $pop0 - i32.const $push10=, __stack_pointer - i32.const $push8=, 16 - i32.add $push9=, $3, $pop8 - i32.store $discard=, 0($pop10), $pop9 + i32.call $1=, vprintf@FUNCTION, $1, $pop0 + i32.const $push9=, __stack_pointer + i32.const $push7=, 16 + i32.add $push8=, $3, $pop7 + i32.store $discard=, 0($pop9), $pop8 return $1 .LBB0_2: # %if.then end_block # label0: @@ -62,9 +60,8 @@ main: # @main i32.call $discard=, __printf_chk@FUNCTION, $1, $pop111, $pop108 block i32.load $push5=, should_optimize($2) - i32.const $push176=, 0 - i32.eq $push177=, $pop5, $pop176 - br_if 0, $pop177 # 0: down to label1 + i32.eqz $push176=, $pop5 + br_if 0, $pop176 # 0: down to label1 # BB#1: # %if.end i32.const $push112=, .L.str i32.store $push0=, should_optimize($2), $2 @@ -75,9 +72,8 @@ main: # @main # BB#2: # %if.end3 i32.const $push113=, 0 i32.load $push9=, should_optimize($pop113) - i32.const $push178=, 0 - i32.eq $push179=, $pop9, $pop178 - br_if 0, $pop179 # 0: down to label1 + i32.eqz $push177=, $pop9 + br_if 0, $pop177 # 0: down to label1 # BB#3: # %if.end6 i32.const $push117=, 0 i32.const $push10=, 1 @@ -87,9 +83,8 @@ main: # @main i32.call $discard=, __printf_chk@FUNCTION, $1, $pop116, $pop115 i32.const $push114=, 0 i32.load $push11=, should_optimize($pop114) - i32.const $push180=, 0 - i32.eq $push181=, $pop11, $pop180 - br_if 0, $pop181 # 0: down to label1 + i32.eqz $push178=, $pop11 + br_if 0, $pop178 # 0: down to label1 # BB#4: # %if.end10 i32.const $push121=, .L.str.1 i32.const $push12=, 0 @@ -102,9 +97,8 @@ main: # @main br_if 0, $pop15 # 0: down to label1 # BB#5: # %if.end14 i32.load $push16=, should_optimize($2) - i32.const $push182=, 0 - i32.eq $push183=, $pop16, $pop182 - br_if 0, $pop183 # 0: down to label1 + i32.eqz $push179=, $pop16 + br_if 0, $pop179 # 0: down to label1 # BB#6: # %if.end17 i32.const $push125=, 0 i32.const $push17=, 1 @@ -114,9 +108,8 @@ main: # @main i32.call $discard=, __printf_chk@FUNCTION, $1, $pop124, $pop123 i32.const $push122=, 0 i32.load $push18=, should_optimize($pop122) - i32.const $push184=, 0 - i32.eq $push185=, $pop18, $pop184 - br_if 0, $pop185 # 0: down to label1 + i32.eqz $push180=, $pop18 + br_if 0, $pop180 # 0: down to label1 # BB#7: # %if.end21 i32.const $push128=, .L.str.2 i32.const $push127=, 0 @@ -128,9 +121,8 @@ main: # @main # BB#8: # %if.end25 i32.const $push129=, 0 i32.load $push21=, should_optimize($pop129) - i32.const $push186=, 0 - i32.eq $push187=, $pop21, $pop186 - br_if 0, $pop187 # 0: down to label1 + i32.eqz $push181=, $pop21 + br_if 0, $pop181 # 0: down to label1 # BB#9: # %if.end28 i32.const $push133=, 0 i32.const $push22=, 1 @@ -140,9 +132,8 @@ main: # @main i32.call $discard=, __printf_chk@FUNCTION, $1, $pop132, $pop131 i32.const $push130=, 0 i32.load $push23=, should_optimize($pop130) - i32.const $push188=, 0 - i32.eq $push189=, $pop23, $pop188 - br_if 0, $pop189 # 0: down to label1 + i32.eqz $push182=, $pop23 + br_if 0, $pop182 # 0: down to label1 # BB#10: # %if.end32 i32.const $push137=, .L.str.3 i32.const $push24=, 0 @@ -153,9 +144,8 @@ main: # @main br_if 0, $pop25 # 0: down to label1 # BB#11: # %if.end36 i32.load $push26=, should_optimize($2) - i32.const $push190=, 0 - i32.eq $push191=, $pop26, $pop190 - br_if 0, $pop191 # 0: down to label1 + i32.eqz $push183=, $pop26 + br_if 0, $pop183 # 0: down to label1 # BB#12: # %if.end39 i32.const $push27=, 0 i32.const $push139=, 0 @@ -167,9 +157,8 @@ main: # @main i32.add $push82=, $1, $pop81 i32.call $discard=, __printf_chk@FUNCTION, $1, $pop138, $pop82 i32.load $push29=, should_optimize($2) - i32.const $push192=, 0 - i32.eq $push193=, $pop29, $pop192 - br_if 0, $pop193 # 0: down to label1 + i32.eqz $push184=, $pop29 + br_if 0, $pop184 # 0: down to label1 # BB#13: # %if.end43 i32.store $discard=, should_optimize($2), $2 i32.store $discard=, 192($1), $0 @@ -183,9 +172,8 @@ main: # @main # BB#14: # %if.end47 i32.const $push141=, 0 i32.load $push33=, should_optimize($pop141) - i32.const $push194=, 0 - i32.eq $push195=, $pop33, $pop194 - br_if 0, $pop195 # 0: down to label1 + i32.eqz $push185=, $pop33 + br_if 0, $pop185 # 0: down to label1 # BB#15: # %if.end50 i32.const $push144=, 0 i32.const $push34=, 1 @@ -198,9 +186,8 @@ main: # @main i32.call $discard=, __printf_chk@FUNCTION, $1, $pop143, $pop86 i32.const $push142=, 0 i32.load $push36=, should_optimize($pop142) - i32.const $push196=, 0 - i32.eq $push197=, $pop36, $pop196 - br_if 0, $pop197 # 0: down to label1 + i32.eqz $push186=, $pop36 + br_if 0, $pop186 # 0: down to label1 # BB#16: # %if.end54 i32.const $push37=, 0 i32.const $push146=, 0 @@ -215,9 +202,8 @@ main: # @main br_if 0, $pop40 # 0: down to label1 # BB#17: # %if.end58 i32.load $push41=, should_optimize($0) - i32.const $push198=, 0 - i32.eq $push199=, $pop41, $pop198 - br_if 0, $pop199 # 0: down to label1 + i32.eqz $push187=, $pop41 + br_if 0, $pop187 # 0: down to label1 # BB#18: # %if.end61 i32.const $push149=, 0 i32.const $push42=, 1 @@ -230,9 +216,8 @@ main: # @main i32.call $discard=, __printf_chk@FUNCTION, $1, $pop148, $pop90 i32.const $push147=, 0 i32.load $push44=, should_optimize($pop147) - i32.const $push200=, 0 - i32.eq $push201=, $pop44, $pop200 - br_if 0, $pop201 # 0: down to label1 + i32.eqz $push188=, $pop44 + br_if 0, $pop188 # 0: down to label1 # BB#19: # %if.end65 i32.const $push152=, 0 i32.const $push151=, 0 @@ -247,9 +232,8 @@ main: # @main # BB#20: # %if.end69 i32.const $push153=, 0 i32.load $push47=, should_optimize($pop153) - i32.const $push202=, 0 - i32.eq $push203=, $pop47, $pop202 - br_if 0, $pop203 # 0: down to label1 + i32.eqz $push189=, $pop47 + br_if 0, $pop189 # 0: down to label1 # BB#21: # %if.end72 i32.const $push156=, 0 i32.const $push48=, 1 @@ -262,9 +246,8 @@ main: # @main i32.call $discard=, __printf_chk@FUNCTION, $1, $pop155, $pop94 i32.const $push154=, 0 i32.load $push50=, should_optimize($pop154) - i32.const $push204=, 0 - i32.eq $push205=, $pop50, $pop204 - br_if 0, $pop205 # 0: down to label1 + i32.eqz $push190=, $pop50 + br_if 0, $pop190 # 0: down to label1 # BB#22: # %if.end76 i32.const $push51=, 0 i32.const $push158=, 0 @@ -277,9 +260,8 @@ main: # @main br_if 0, $pop52 # 0: down to label1 # BB#23: # %if.end80 i32.load $push53=, should_optimize($0) - i32.const $push206=, 0 - i32.eq $push207=, $pop53, $pop206 - br_if 0, $pop207 # 0: down to label1 + i32.eqz $push191=, $pop53 + br_if 0, $pop191 # 0: down to label1 # BB#24: # %if.end83 i32.const $push161=, 0 i32.const $push54=, 1 @@ -292,9 +274,8 @@ main: # @main i32.call $discard=, __printf_chk@FUNCTION, $1, $pop160, $pop98 i32.const $push159=, 0 i32.load $push56=, should_optimize($pop159) - i32.const $push208=, 0 - i32.eq $push209=, $pop56, $pop208 - br_if 0, $pop209 # 0: down to label1 + i32.eqz $push192=, $pop56 + br_if 0, $pop192 # 0: down to label1 # BB#25: # %if.end87 i32.const $push164=, 0 i32.const $push163=, 0 @@ -309,9 +290,8 @@ main: # @main # BB#26: # %if.end91 i32.const $push165=, 0 i32.load $push59=, should_optimize($pop165) - i32.const $push210=, 0 - i32.eq $push211=, $pop59, $pop210 - br_if 0, $pop211 # 0: down to label1 + i32.eqz $push193=, $pop59 + br_if 0, $pop193 # 0: down to label1 # BB#27: # %if.end94 i32.const $push168=, 0 i32.const $push60=, 1 @@ -324,9 +304,8 @@ main: # @main i32.call $discard=, __printf_chk@FUNCTION, $1, $pop167, $pop102 i32.const $push166=, 0 i32.load $push62=, should_optimize($pop166) - i32.const $push212=, 0 - i32.eq $push213=, $pop62, $pop212 - br_if 0, $pop213 # 0: down to label1 + i32.eqz $push194=, $pop62 + br_if 0, $pop194 # 0: down to label1 # BB#28: # %if.end98 i32.const $push63=, 0 i32.const $push170=, 0 @@ -341,9 +320,8 @@ main: # @main br_if 0, $pop66 # 0: down to label1 # BB#29: # %if.end102 i32.load $push67=, should_optimize($0) - i32.const $push214=, 0 - i32.eq $push215=, $pop67, $pop214 - br_if 0, $pop215 # 0: down to label1 + i32.eqz $push195=, $pop67 + br_if 0, $pop195 # 0: down to label1 # BB#30: # %if.end105 i32.const $push68=, 0 i32.const $push172=, 0 @@ -354,9 +332,8 @@ main: # @main i32.add $push106=, $1, $pop105 i32.call $discard=, __printf_chk@FUNCTION, $1, $pop171, $pop106 i32.load $push69=, should_optimize($2) - i32.const $push216=, 0 - i32.eq $push217=, $pop69, $pop216 - br_if 0, $pop217 # 0: down to label1 + i32.eqz $push196=, $pop69 + br_if 0, $pop196 # 0: down to label1 # BB#31: # %if.end109 i32.store $push3=, should_optimize($2), $2 i32.store $discard=, 0($1), $pop3 @@ -368,9 +345,8 @@ main: # @main # BB#32: # %if.end113 i32.const $push174=, 0 i32.load $push73=, should_optimize($pop174) - i32.const $push218=, 0 - i32.eq $push219=, $pop73, $pop218 - br_if 0, $pop219 # 0: down to label1 + i32.eqz $push197=, $pop73 + br_if 0, $pop197 # 0: down to label1 # BB#33: # %if.end116 i32.const $push80=, __stack_pointer i32.const $push78=, 224 diff --git a/test/torture-s/simd-1.c.s b/test/torture-s/simd-1.c.s index 49ebaaf6b..e65557d70 100644 --- a/test/torture-s/simd-1.c.s +++ b/test/torture-s/simd-1.c.s @@ -39,326 +39,326 @@ main: # @main # BB#0: # %entry i32.const $push8=, 0 i32.load $1=, i+8($pop8) - i32.const $push217=, 0 - i32.load $2=, i+4($pop217) - i32.const $push216=, 0 - i32.load $3=, i($pop216) - i32.const $push215=, 0 - i32.load $6=, j($pop215) i32.const $push214=, 0 - i32.load $5=, j+4($pop214) + i32.load $2=, i+4($pop214) i32.const $push213=, 0 - i32.load $4=, j+8($pop213) + i32.load $3=, i($pop213) i32.const $push212=, 0 + i32.load $6=, j($pop212) i32.const $push211=, 0 - i32.load $push10=, j+12($pop211) + i32.load $5=, j+4($pop211) i32.const $push210=, 0 - i32.load $push9=, i+12($pop210) - i32.add $push14=, $pop10, $pop9 - i32.store $0=, k+12($pop212), $pop14 + i32.load $4=, j+8($pop210) i32.const $push209=, 0 - i32.add $push13=, $4, $1 - i32.store $1=, k+8($pop209), $pop13 i32.const $push208=, 0 - i32.add $push12=, $5, $2 - i32.store $2=, k+4($pop208), $pop12 + i32.load $push10=, j+12($pop208) i32.const $push207=, 0 - i32.add $push11=, $6, $3 - i32.store $3=, k($pop207), $pop11 + i32.load $push9=, i+12($pop207) + i32.add $push14=, $pop10, $pop9 + i32.store $0=, k+12($pop209), $pop14 i32.const $push206=, 0 - i32.store $6=, res+12($pop206), $0 + i32.add $push13=, $4, $1 + i32.store $1=, k+8($pop206), $pop13 i32.const $push205=, 0 - i32.store $discard=, res+8($pop205), $1 + i32.add $push12=, $5, $2 + i32.store $2=, k+4($pop205), $pop12 i32.const $push204=, 0 - i32.store $discard=, res+4($pop204), $2 + i32.add $push11=, $6, $3 + i32.store $3=, k($pop204), $pop11 i32.const $push203=, 0 - i32.store $push0=, res($pop203), $3 + i32.store $6=, res+12($pop203), $0 + i32.const $push202=, 0 + i32.store $discard=, res+8($pop202), $1 + i32.const $push201=, 0 + i32.store $discard=, res+4($pop201), $2 + i32.const $push200=, 0 + i32.store $push0=, res($pop200), $3 i32.const $push18=, 160 i32.const $push17=, 113 i32.const $push16=, 170 i32.const $push15=, 230 call verify@FUNCTION, $pop0, $2, $1, $6, $pop18, $pop17, $pop16, $pop15 - i32.const $push202=, 0 - i32.load $1=, i+8($pop202) - i32.const $push201=, 0 - i32.load $2=, i+4($pop201) - i32.const $push200=, 0 - i32.load $3=, i($pop200) i32.const $push199=, 0 - i32.load $6=, j($pop199) + i32.load $1=, i+8($pop199) i32.const $push198=, 0 - i32.load $5=, j+4($pop198) + i32.load $2=, i+4($pop198) i32.const $push197=, 0 - i32.load $4=, j+8($pop197) + i32.load $3=, i($pop197) i32.const $push196=, 0 + i32.load $6=, j($pop196) i32.const $push195=, 0 - i32.load $push20=, j+12($pop195) + i32.load $5=, j+4($pop195) i32.const $push194=, 0 - i32.load $push19=, i+12($pop194) - i32.mul $push24=, $pop20, $pop19 - i32.store $0=, k+12($pop196), $pop24 + i32.load $4=, j+8($pop194) i32.const $push193=, 0 - i32.mul $push23=, $4, $1 - i32.store $1=, k+8($pop193), $pop23 i32.const $push192=, 0 - i32.mul $push22=, $5, $2 - i32.store $2=, k+4($pop192), $pop22 + i32.load $push20=, j+12($pop192) i32.const $push191=, 0 - i32.mul $push21=, $6, $3 - i32.store $3=, k($pop191), $pop21 + i32.load $push19=, i+12($pop191) + i32.mul $push24=, $pop20, $pop19 + i32.store $0=, k+12($pop193), $pop24 i32.const $push190=, 0 - i32.store $6=, res+12($pop190), $0 + i32.mul $push23=, $4, $1 + i32.store $1=, k+8($pop190), $pop23 i32.const $push189=, 0 - i32.store $discard=, res+8($pop189), $1 + i32.mul $push22=, $5, $2 + i32.store $2=, k+4($pop189), $pop22 i32.const $push188=, 0 - i32.store $discard=, res+4($pop188), $2 + i32.mul $push21=, $6, $3 + i32.store $3=, k($pop188), $pop21 i32.const $push187=, 0 - i32.store $push1=, res($pop187), $3 + i32.store $6=, res+12($pop187), $0 + i32.const $push186=, 0 + i32.store $discard=, res+8($pop186), $1 + i32.const $push185=, 0 + i32.store $discard=, res+4($pop185), $2 + i32.const $push184=, 0 + i32.store $push1=, res($pop184), $3 i32.const $push28=, 1500 i32.const $push27=, 1300 i32.const $push26=, 3000 i32.const $push25=, 6000 call verify@FUNCTION, $pop1, $2, $1, $6, $pop28, $pop27, $pop26, $pop25 - i32.const $push186=, 0 - i32.load $push32=, i($pop186) - i32.const $push185=, 0 - i32.load $push36=, j($pop185) - i32.div_s $1=, $pop32, $pop36 - i32.const $push184=, 0 - i32.load $push31=, i+4($pop184) i32.const $push183=, 0 - i32.load $push35=, j+4($pop183) - i32.div_s $2=, $pop31, $pop35 + i32.load $1=, i+8($pop183) i32.const $push182=, 0 - i32.load $push30=, i+8($pop182) + i32.load $2=, i+4($pop182) i32.const $push181=, 0 - i32.load $push34=, j+8($pop181) - i32.div_s $3=, $pop30, $pop34 + i32.load $3=, i($pop181) i32.const $push180=, 0 + i32.load $6=, j($pop180) i32.const $push179=, 0 - i32.load $push29=, i+12($pop179) + i32.load $5=, j+4($pop179) i32.const $push178=, 0 - i32.load $push33=, j+12($pop178) - i32.div_s $push37=, $pop29, $pop33 - i32.store $6=, k+12($pop180), $pop37 + i32.load $4=, j+8($pop178) i32.const $push177=, 0 - i32.store $discard=, k+8($pop177), $3 i32.const $push176=, 0 - i32.store $discard=, k+4($pop176), $2 + i32.load $push29=, i+12($pop176) i32.const $push175=, 0 - i32.store $discard=, k($pop175), $1 + i32.load $push30=, j+12($pop175) + i32.div_s $push34=, $pop29, $pop30 + i32.store $0=, k+12($pop177), $pop34 i32.const $push174=, 0 - i32.store $discard=, res+12($pop174), $6 + i32.div_s $push33=, $1, $4 + i32.store $1=, k+8($pop174), $pop33 i32.const $push173=, 0 - i32.store $discard=, res+8($pop173), $3 + i32.div_s $push32=, $2, $5 + i32.store $2=, k+4($pop173), $pop32 i32.const $push172=, 0 - i32.store $discard=, res+4($pop172), $2 + i32.div_s $push31=, $3, $6 + i32.store $3=, k($pop172), $pop31 i32.const $push171=, 0 - i32.store $push2=, res($pop171), $1 - i32.const $push40=, 15 - i32.const $push39=, 7 - i32.const $push170=, 7 - i32.const $push38=, 6 - call verify@FUNCTION, $pop2, $2, $3, $6, $pop40, $pop39, $pop170, $pop38 + i32.store $6=, res+12($pop171), $0 + i32.const $push170=, 0 + i32.store $discard=, res+8($pop170), $1 i32.const $push169=, 0 - i32.load $1=, i+8($pop169) + i32.store $discard=, res+4($pop169), $2 i32.const $push168=, 0 - i32.load $2=, i+4($pop168) - i32.const $push167=, 0 - i32.load $3=, i($pop167) + i32.store $push2=, res($pop168), $3 + i32.const $push37=, 15 + i32.const $push36=, 7 + i32.const $push167=, 7 + i32.const $push35=, 6 + call verify@FUNCTION, $pop2, $2, $1, $6, $pop37, $pop36, $pop167, $pop35 i32.const $push166=, 0 - i32.load $6=, j($pop166) + i32.load $1=, i+8($pop166) i32.const $push165=, 0 - i32.load $5=, j+4($pop165) + i32.load $2=, i+4($pop165) i32.const $push164=, 0 - i32.load $4=, j+8($pop164) + i32.load $3=, i($pop164) i32.const $push163=, 0 + i32.load $6=, j($pop163) i32.const $push162=, 0 - i32.load $push42=, j+12($pop162) + i32.load $5=, j+4($pop162) i32.const $push161=, 0 - i32.load $push41=, i+12($pop161) - i32.and $push46=, $pop42, $pop41 - i32.store $0=, k+12($pop163), $pop46 + i32.load $4=, j+8($pop161) i32.const $push160=, 0 - i32.and $push45=, $4, $1 - i32.store $1=, k+8($pop160), $pop45 i32.const $push159=, 0 - i32.and $push44=, $5, $2 - i32.store $2=, k+4($pop159), $pop44 + i32.load $push39=, j+12($pop159) i32.const $push158=, 0 - i32.and $push43=, $6, $3 - i32.store $3=, k($pop158), $pop43 + i32.load $push38=, i+12($pop158) + i32.and $push43=, $pop39, $pop38 + i32.store $0=, k+12($pop160), $pop43 i32.const $push157=, 0 - i32.store $6=, res+12($pop157), $0 + i32.and $push42=, $4, $1 + i32.store $1=, k+8($pop157), $pop42 i32.const $push156=, 0 - i32.store $discard=, res+8($pop156), $1 + i32.and $push41=, $5, $2 + i32.store $2=, k+4($pop156), $pop41 i32.const $push155=, 0 - i32.store $discard=, res+4($pop155), $2 + i32.and $push40=, $6, $3 + i32.store $3=, k($pop155), $pop40 i32.const $push154=, 0 - i32.store $push3=, res($pop154), $3 - i32.const $push50=, 2 - i32.const $push49=, 4 - i32.const $push48=, 20 - i32.const $push47=, 8 - call verify@FUNCTION, $pop3, $2, $1, $6, $pop50, $pop49, $pop48, $pop47 + i32.store $6=, res+12($pop154), $0 i32.const $push153=, 0 - i32.load $1=, i+8($pop153) + i32.store $discard=, res+8($pop153), $1 i32.const $push152=, 0 - i32.load $2=, i+4($pop152) + i32.store $discard=, res+4($pop152), $2 i32.const $push151=, 0 - i32.load $3=, i($pop151) + i32.store $push3=, res($pop151), $3 + i32.const $push47=, 2 + i32.const $push46=, 4 + i32.const $push45=, 20 + i32.const $push44=, 8 + call verify@FUNCTION, $pop3, $2, $1, $6, $pop47, $pop46, $pop45, $pop44 i32.const $push150=, 0 - i32.load $6=, j($pop150) + i32.load $1=, i+8($pop150) i32.const $push149=, 0 - i32.load $5=, j+4($pop149) + i32.load $2=, i+4($pop149) i32.const $push148=, 0 - i32.load $4=, j+8($pop148) + i32.load $3=, i($pop148) i32.const $push147=, 0 + i32.load $6=, j($pop147) i32.const $push146=, 0 - i32.load $push52=, j+12($pop146) + i32.load $5=, j+4($pop146) i32.const $push145=, 0 - i32.load $push51=, i+12($pop145) - i32.or $push56=, $pop52, $pop51 - i32.store $0=, k+12($pop147), $pop56 + i32.load $4=, j+8($pop145) i32.const $push144=, 0 - i32.or $push55=, $4, $1 - i32.store $1=, k+8($pop144), $pop55 i32.const $push143=, 0 - i32.or $push54=, $5, $2 - i32.store $2=, k+4($pop143), $pop54 + i32.load $push49=, j+12($pop143) i32.const $push142=, 0 - i32.or $push53=, $6, $3 - i32.store $3=, k($pop142), $pop53 + i32.load $push48=, i+12($pop142) + i32.or $push53=, $pop49, $pop48 + i32.store $0=, k+12($pop144), $pop53 i32.const $push141=, 0 - i32.store $6=, res+12($pop141), $0 + i32.or $push52=, $4, $1 + i32.store $1=, k+8($pop141), $pop52 i32.const $push140=, 0 - i32.store $discard=, res+8($pop140), $1 + i32.or $push51=, $5, $2 + i32.store $2=, k+4($pop140), $pop51 i32.const $push139=, 0 - i32.store $discard=, res+4($pop139), $2 + i32.or $push50=, $6, $3 + i32.store $3=, k($pop139), $pop50 i32.const $push138=, 0 - i32.store $push4=, res($pop138), $3 - i32.const $push60=, 158 - i32.const $push59=, 109 - i32.const $push58=, 150 - i32.const $push57=, 222 - call verify@FUNCTION, $pop4, $2, $1, $6, $pop60, $pop59, $pop58, $pop57 + i32.store $6=, res+12($pop138), $0 i32.const $push137=, 0 - i32.load $1=, i+8($pop137) + i32.store $discard=, res+8($pop137), $1 i32.const $push136=, 0 - i32.load $2=, i+4($pop136) + i32.store $discard=, res+4($pop136), $2 i32.const $push135=, 0 - i32.load $3=, i($pop135) + i32.store $push4=, res($pop135), $3 + i32.const $push57=, 158 + i32.const $push56=, 109 + i32.const $push55=, 150 + i32.const $push54=, 222 + call verify@FUNCTION, $pop4, $2, $1, $6, $pop57, $pop56, $pop55, $pop54 i32.const $push134=, 0 - i32.load $6=, j($pop134) + i32.load $1=, i+8($pop134) i32.const $push133=, 0 - i32.load $5=, j+4($pop133) + i32.load $2=, i+4($pop133) i32.const $push132=, 0 - i32.load $4=, j+8($pop132) + i32.load $3=, i($pop132) i32.const $push131=, 0 + i32.load $6=, j($pop131) i32.const $push130=, 0 - i32.load $push61=, i+12($pop130) + i32.load $5=, j+4($pop130) i32.const $push129=, 0 - i32.load $push62=, j+12($pop129) - i32.xor $push66=, $pop61, $pop62 - i32.store $0=, k+12($pop131), $pop66 + i32.load $4=, j+8($pop129) i32.const $push128=, 0 - i32.xor $push65=, $1, $4 - i32.store $1=, k+8($pop128), $pop65 i32.const $push127=, 0 - i32.xor $push64=, $2, $5 - i32.store $2=, k+4($pop127), $pop64 + i32.load $push58=, i+12($pop127) i32.const $push126=, 0 - i32.xor $push63=, $3, $6 - i32.store $3=, k($pop126), $pop63 + i32.load $push59=, j+12($pop126) + i32.xor $push63=, $pop58, $pop59 + i32.store $0=, k+12($pop128), $pop63 i32.const $push125=, 0 - i32.store $6=, res+12($pop125), $0 + i32.xor $push62=, $1, $4 + i32.store $1=, k+8($pop125), $pop62 i32.const $push124=, 0 - i32.store $discard=, res+8($pop124), $1 + i32.xor $push61=, $2, $5 + i32.store $2=, k+4($pop124), $pop61 i32.const $push123=, 0 - i32.store $discard=, res+4($pop123), $2 + i32.xor $push60=, $3, $6 + i32.store $3=, k($pop123), $pop60 i32.const $push122=, 0 - i32.store $push5=, res($pop122), $3 - i32.const $push70=, 156 - i32.const $push69=, 105 - i32.const $push68=, 130 - i32.const $push67=, 214 - call verify@FUNCTION, $pop5, $2, $1, $6, $pop70, $pop69, $pop68, $pop67 + i32.store $6=, res+12($pop122), $0 i32.const $push121=, 0 - i32.load $1=, i($pop121) + i32.store $discard=, res+8($pop121), $1 i32.const $push120=, 0 - i32.load $2=, i+4($pop120) + i32.store $discard=, res+4($pop120), $2 i32.const $push119=, 0 - i32.load $3=, i+8($pop119) + i32.store $push5=, res($pop119), $3 + i32.const $push67=, 156 + i32.const $push66=, 105 + i32.const $push65=, 130 + i32.const $push64=, 214 + call verify@FUNCTION, $pop5, $2, $1, $6, $pop67, $pop66, $pop65, $pop64 i32.const $push118=, 0 + i32.load $1=, i($pop118) i32.const $push117=, 0 + i32.load $2=, i+4($pop117) i32.const $push116=, 0 - i32.load $push71=, i+12($pop116) - i32.sub $push75=, $pop117, $pop71 - i32.store $6=, k+12($pop118), $pop75 + i32.load $3=, i+8($pop116) i32.const $push115=, 0 i32.const $push114=, 0 - i32.sub $push74=, $pop114, $3 - i32.store $3=, k+8($pop115), $pop74 i32.const $push113=, 0 + i32.load $push68=, i+12($pop113) + i32.sub $push72=, $pop114, $pop68 + i32.store $6=, k+12($pop115), $pop72 i32.const $push112=, 0 - i32.sub $push73=, $pop112, $2 - i32.store $2=, k+4($pop113), $pop73 i32.const $push111=, 0 + i32.sub $push71=, $pop111, $3 + i32.store $3=, k+8($pop112), $pop71 i32.const $push110=, 0 - i32.sub $push72=, $pop110, $1 - i32.store $1=, k($pop111), $pop72 i32.const $push109=, 0 - i32.store $discard=, res+12($pop109), $6 + i32.sub $push70=, $pop109, $2 + i32.store $2=, k+4($pop110), $pop70 i32.const $push108=, 0 - i32.store $discard=, res+8($pop108), $3 i32.const $push107=, 0 - i32.store $discard=, res+4($pop107), $2 + i32.sub $push69=, $pop107, $1 + i32.store $1=, k($pop108), $pop69 i32.const $push106=, 0 - i32.store $push6=, res($pop106), $1 - i32.const $push78=, -150 - i32.const $push77=, -100 - i32.const $push105=, -150 - i32.const $push76=, -200 - call verify@FUNCTION, $pop6, $2, $3, $6, $pop78, $pop77, $pop105, $pop76 + i32.store $discard=, res+12($pop106), $6 + i32.const $push105=, 0 + i32.store $discard=, res+8($pop105), $3 i32.const $push104=, 0 - i32.load $1=, i($pop104) + i32.store $discard=, res+4($pop104), $2 i32.const $push103=, 0 - i32.load $2=, i+4($pop103) - i32.const $push102=, 0 - i32.load $3=, i+8($pop102) + i32.store $push6=, res($pop103), $1 + i32.const $push75=, -150 + i32.const $push74=, -100 + i32.const $push102=, -150 + i32.const $push73=, -200 + call verify@FUNCTION, $pop6, $2, $3, $6, $pop75, $pop74, $pop102, $pop73 i32.const $push101=, 0 + i32.load $1=, i($pop101) i32.const $push100=, 0 - i32.load $push79=, i+12($pop100) - i32.const $push80=, -1 - i32.xor $push84=, $pop79, $pop80 - i32.store $6=, k+12($pop101), $pop84 + i32.load $2=, i+4($pop100) i32.const $push99=, 0 - i32.const $push98=, -1 - i32.xor $push83=, $3, $pop98 - i32.store $3=, k+8($pop99), $pop83 + i32.load $3=, i+8($pop99) + i32.const $push98=, 0 i32.const $push97=, 0 - i32.const $push96=, -1 - i32.xor $push82=, $2, $pop96 - i32.store $2=, k+4($pop97), $pop82 - i32.const $push95=, 0 - i32.const $push94=, -1 - i32.xor $push81=, $1, $pop94 - i32.store $1=, k($pop95), $pop81 - i32.const $push93=, 0 - i32.store $discard=, res+12($pop93), $6 + i32.load $push76=, i+12($pop97) + i32.const $push77=, -1 + i32.xor $push81=, $pop76, $pop77 + i32.store $6=, k+12($pop98), $pop81 + i32.const $push96=, 0 + i32.const $push95=, -1 + i32.xor $push80=, $3, $pop95 + i32.store $3=, k+8($pop96), $pop80 + i32.const $push94=, 0 + i32.const $push93=, -1 + i32.xor $push79=, $2, $pop93 + i32.store $2=, k+4($pop94), $pop79 i32.const $push92=, 0 - i32.store $discard=, res+8($pop92), $3 - i32.const $push91=, 0 - i32.store $discard=, res+4($pop91), $2 + i32.const $push91=, -1 + i32.xor $push78=, $1, $pop91 + i32.store $1=, k($pop92), $pop78 i32.const $push90=, 0 - i32.store $push7=, res($pop90), $1 - i32.const $push87=, -151 - i32.const $push86=, -101 - i32.const $push89=, -151 - i32.const $push85=, -201 - call verify@FUNCTION, $pop7, $2, $3, $6, $pop87, $pop86, $pop89, $pop85 + i32.store $discard=, res+12($pop90), $6 + i32.const $push89=, 0 + i32.store $discard=, res+8($pop89), $3 i32.const $push88=, 0 - call exit@FUNCTION, $pop88 + i32.store $discard=, res+4($pop88), $2 + i32.const $push87=, 0 + i32.store $push7=, res($pop87), $1 + i32.const $push84=, -151 + i32.const $push83=, -101 + i32.const $push86=, -151 + i32.const $push82=, -201 + call verify@FUNCTION, $pop7, $2, $3, $6, $pop84, $pop83, $pop86, $pop82 + i32.const $push85=, 0 + call exit@FUNCTION, $pop85 unreachable .endfunc .Lfunc_end1: diff --git a/test/torture-s/simd-2.c.s b/test/torture-s/simd-2.c.s index 058e981df..042420f4e 100644 --- a/test/torture-s/simd-2.c.s +++ b/test/torture-s/simd-2.c.s @@ -39,735 +39,735 @@ main: # @main # BB#0: # %entry i32.const $push33=, 0 i32.load16_u $0=, i+6($pop33) - i32.const $push536=, 0 - i32.load16_u $4=, i+4($pop536) - i32.const $push535=, 0 - i32.load16_u $5=, i+2($pop535) - i32.const $push534=, 0 - i32.load16_u $6=, i($pop534) - i32.const $push533=, 0 - i32.load16_u $13=, j($pop533) - i32.const $push532=, 0 - i32.load16_u $12=, j+2($pop532) - i32.const $push531=, 0 - i32.load16_u $11=, j+4($pop531) - i32.const $push530=, 0 - i32.load16_u $10=, j+6($pop530) i32.const $push529=, 0 - i32.load16_u $1=, i+12($pop529) + i32.load16_u $4=, i+4($pop529) i32.const $push528=, 0 - i32.load16_u $2=, i+10($pop528) + i32.load16_u $5=, i+2($pop528) i32.const $push527=, 0 - i32.load16_u $3=, i+8($pop527) + i32.load16_u $6=, i($pop527) i32.const $push526=, 0 - i32.load16_u $9=, j+8($pop526) + i32.load16_u $13=, j($pop526) i32.const $push525=, 0 - i32.load16_u $8=, j+10($pop525) + i32.load16_u $12=, j+2($pop525) i32.const $push524=, 0 - i32.load16_u $7=, j+12($pop524) + i32.load16_u $11=, j+4($pop524) i32.const $push523=, 0 + i32.load16_u $10=, j+6($pop523) i32.const $push522=, 0 + i32.load16_u $1=, i+12($pop522) i32.const $push521=, 0 - i32.load16_u $push35=, j+14($pop521) + i32.load16_u $2=, i+10($pop521) i32.const $push520=, 0 - i32.load16_u $push34=, i+14($pop520) - i32.add $push43=, $pop35, $pop34 - i32.store16 $push0=, k+14($pop522), $pop43 - i32.store16 $discard=, res+14($pop523), $pop0 + i32.load16_u $3=, i+8($pop520) i32.const $push519=, 0 + i32.load16_u $9=, j+8($pop519) i32.const $push518=, 0 - i32.add $push42=, $7, $1 - i32.store16 $push1=, k+12($pop518), $pop42 - i32.store16 $discard=, res+12($pop519), $pop1 + i32.load16_u $8=, j+10($pop518) i32.const $push517=, 0 + i32.load16_u $7=, j+12($pop517) i32.const $push516=, 0 - i32.add $push41=, $8, $2 - i32.store16 $push2=, k+10($pop516), $pop41 - i32.store16 $discard=, res+10($pop517), $pop2 i32.const $push515=, 0 i32.const $push514=, 0 - i32.add $push40=, $9, $3 - i32.store16 $push3=, k+8($pop514), $pop40 - i32.store16 $discard=, res+8($pop515), $pop3 + i32.load16_u $push35=, j+14($pop514) i32.const $push513=, 0 - i32.add $push39=, $10, $0 - i32.store16 $10=, k+6($pop513), $pop39 + i32.load16_u $push34=, i+14($pop513) + i32.add $push43=, $pop35, $pop34 + i32.store16 $push0=, k+14($pop515), $pop43 + i32.store16 $discard=, res+14($pop516), $pop0 i32.const $push512=, 0 - i32.add $push38=, $11, $4 - i32.store16 $4=, k+4($pop512), $pop38 i32.const $push511=, 0 - i32.add $push37=, $12, $5 - i32.store16 $5=, k+2($pop511), $pop37 + i32.add $push42=, $7, $1 + i32.store16 $push1=, k+12($pop511), $pop42 + i32.store16 $discard=, res+12($pop512), $pop1 i32.const $push510=, 0 - i32.add $push36=, $13, $6 - i32.store16 $0=, k($pop510), $pop36 i32.const $push509=, 0 - i32.store16 $6=, res+6($pop509), $10 + i32.add $push41=, $8, $2 + i32.store16 $push2=, k+10($pop509), $pop41 + i32.store16 $discard=, res+10($pop510), $pop2 i32.const $push508=, 0 - i32.store16 $discard=, res+4($pop508), $4 i32.const $push507=, 0 - i32.store16 $discard=, res+2($pop507), $5 + i32.add $push40=, $9, $3 + i32.store16 $push3=, k+8($pop507), $pop40 + i32.store16 $discard=, res+8($pop508), $pop3 i32.const $push506=, 0 - i32.store16 $discard=, res($pop506), $0 + i32.add $push39=, $10, $0 + i32.store16 $10=, k+6($pop506), $pop39 + i32.const $push505=, 0 + i32.add $push38=, $11, $4 + i32.store16 $4=, k+4($pop505), $pop38 + i32.const $push504=, 0 + i32.add $push37=, $12, $5 + i32.store16 $5=, k+2($pop504), $pop37 + i32.const $push503=, 0 + i32.add $push36=, $13, $6 + i32.store16 $0=, k($pop503), $pop36 + i32.const $push502=, 0 + i32.store16 $6=, res+6($pop502), $10 + i32.const $push501=, 0 + i32.store16 $discard=, res+4($pop501), $4 + i32.const $push500=, 0 + i32.store16 $discard=, res+2($pop500), $5 + i32.const $push499=, 0 + i32.store16 $discard=, res($pop499), $0 i32.const $push44=, 16 i32.shl $push45=, $0, $pop44 - i32.const $push505=, 16 - i32.shr_s $push46=, $pop45, $pop505 - i32.const $push504=, 16 - i32.shl $push47=, $5, $pop504 - i32.const $push503=, 16 - i32.shr_s $push48=, $pop47, $pop503 - i32.const $push502=, 16 - i32.shl $push49=, $4, $pop502 - i32.const $push501=, 16 - i32.shr_s $push50=, $pop49, $pop501 - i32.const $push500=, 16 - i32.shl $push51=, $6, $pop500 - i32.const $push499=, 16 - i32.shr_s $push52=, $pop51, $pop499 + i32.const $push498=, 16 + i32.shr_s $push46=, $pop45, $pop498 + i32.const $push497=, 16 + i32.shl $push47=, $5, $pop497 + i32.const $push496=, 16 + i32.shr_s $push48=, $pop47, $pop496 + i32.const $push495=, 16 + i32.shl $push49=, $4, $pop495 + i32.const $push494=, 16 + i32.shr_s $push50=, $pop49, $pop494 + i32.const $push493=, 16 + i32.shl $push51=, $6, $pop493 + i32.const $push492=, 16 + i32.shr_s $push52=, $pop51, $pop492 i32.const $push56=, 160 i32.const $push55=, 113 i32.const $push54=, 170 i32.const $push53=, 230 call verify@FUNCTION, $pop46, $pop48, $pop50, $pop52, $pop56, $pop55, $pop54, $pop53 - i32.const $push498=, 0 - i32.load16_u $0=, i+6($pop498) - i32.const $push497=, 0 - i32.load16_u $4=, i+4($pop497) - i32.const $push496=, 0 - i32.load16_u $5=, i+2($pop496) - i32.const $push495=, 0 - i32.load16_u $6=, i($pop495) - i32.const $push494=, 0 - i32.load16_u $13=, j($pop494) - i32.const $push493=, 0 - i32.load16_u $12=, j+2($pop493) - i32.const $push492=, 0 - i32.load16_u $11=, j+4($pop492) i32.const $push491=, 0 - i32.load16_u $10=, j+6($pop491) + i32.load16_u $0=, i+6($pop491) i32.const $push490=, 0 - i32.load16_u $1=, i+12($pop490) + i32.load16_u $4=, i+4($pop490) i32.const $push489=, 0 - i32.load16_u $2=, i+10($pop489) + i32.load16_u $5=, i+2($pop489) i32.const $push488=, 0 - i32.load16_u $3=, i+8($pop488) + i32.load16_u $6=, i($pop488) i32.const $push487=, 0 - i32.load16_u $9=, j+8($pop487) + i32.load16_u $13=, j($pop487) i32.const $push486=, 0 - i32.load16_u $8=, j+10($pop486) + i32.load16_u $12=, j+2($pop486) i32.const $push485=, 0 - i32.load16_u $7=, j+12($pop485) + i32.load16_u $11=, j+4($pop485) i32.const $push484=, 0 + i32.load16_u $10=, j+6($pop484) i32.const $push483=, 0 + i32.load16_u $1=, i+12($pop483) i32.const $push482=, 0 - i32.load16_u $push58=, j+14($pop482) + i32.load16_u $2=, i+10($pop482) i32.const $push481=, 0 - i32.load16_u $push57=, i+14($pop481) - i32.mul $push66=, $pop58, $pop57 - i32.store16 $push4=, k+14($pop483), $pop66 - i32.store16 $discard=, res+14($pop484), $pop4 + i32.load16_u $3=, i+8($pop481) i32.const $push480=, 0 + i32.load16_u $9=, j+8($pop480) i32.const $push479=, 0 - i32.mul $push65=, $7, $1 - i32.store16 $push5=, k+12($pop479), $pop65 - i32.store16 $discard=, res+12($pop480), $pop5 + i32.load16_u $8=, j+10($pop479) i32.const $push478=, 0 + i32.load16_u $7=, j+12($pop478) i32.const $push477=, 0 - i32.mul $push64=, $8, $2 - i32.store16 $push6=, k+10($pop477), $pop64 - i32.store16 $discard=, res+10($pop478), $pop6 i32.const $push476=, 0 i32.const $push475=, 0 - i32.mul $push63=, $9, $3 - i32.store16 $push7=, k+8($pop475), $pop63 - i32.store16 $discard=, res+8($pop476), $pop7 + i32.load16_u $push58=, j+14($pop475) i32.const $push474=, 0 - i32.mul $push62=, $10, $0 - i32.store16 $10=, k+6($pop474), $pop62 + i32.load16_u $push57=, i+14($pop474) + i32.mul $push66=, $pop58, $pop57 + i32.store16 $push4=, k+14($pop476), $pop66 + i32.store16 $discard=, res+14($pop477), $pop4 i32.const $push473=, 0 - i32.mul $push61=, $11, $4 - i32.store16 $4=, k+4($pop473), $pop61 i32.const $push472=, 0 - i32.mul $push60=, $12, $5 - i32.store16 $5=, k+2($pop472), $pop60 + i32.mul $push65=, $7, $1 + i32.store16 $push5=, k+12($pop472), $pop65 + i32.store16 $discard=, res+12($pop473), $pop5 i32.const $push471=, 0 - i32.mul $push59=, $13, $6 - i32.store16 $0=, k($pop471), $pop59 i32.const $push470=, 0 - i32.store16 $6=, res+6($pop470), $10 + i32.mul $push64=, $8, $2 + i32.store16 $push6=, k+10($pop470), $pop64 + i32.store16 $discard=, res+10($pop471), $pop6 i32.const $push469=, 0 - i32.store16 $discard=, res+4($pop469), $4 i32.const $push468=, 0 - i32.store16 $discard=, res+2($pop468), $5 + i32.mul $push63=, $9, $3 + i32.store16 $push7=, k+8($pop468), $pop63 + i32.store16 $discard=, res+8($pop469), $pop7 i32.const $push467=, 0 - i32.store16 $discard=, res($pop467), $0 - i32.const $push466=, 16 - i32.shl $push67=, $0, $pop466 - i32.const $push465=, 16 - i32.shr_s $push68=, $pop67, $pop465 - i32.const $push464=, 16 - i32.shl $push69=, $5, $pop464 - i32.const $push463=, 16 - i32.shr_s $push70=, $pop69, $pop463 - i32.const $push462=, 16 - i32.shl $push71=, $4, $pop462 - i32.const $push461=, 16 - i32.shr_s $push72=, $pop71, $pop461 - i32.const $push460=, 16 - i32.shl $push73=, $6, $pop460 + i32.mul $push62=, $10, $0 + i32.store16 $10=, k+6($pop467), $pop62 + i32.const $push466=, 0 + i32.mul $push61=, $11, $4 + i32.store16 $4=, k+4($pop466), $pop61 + i32.const $push465=, 0 + i32.mul $push60=, $12, $5 + i32.store16 $5=, k+2($pop465), $pop60 + i32.const $push464=, 0 + i32.mul $push59=, $13, $6 + i32.store16 $0=, k($pop464), $pop59 + i32.const $push463=, 0 + i32.store16 $6=, res+6($pop463), $10 + i32.const $push462=, 0 + i32.store16 $discard=, res+4($pop462), $4 + i32.const $push461=, 0 + i32.store16 $discard=, res+2($pop461), $5 + i32.const $push460=, 0 + i32.store16 $discard=, res($pop460), $0 i32.const $push459=, 16 - i32.shr_s $push74=, $pop73, $pop459 + i32.shl $push67=, $0, $pop459 + i32.const $push458=, 16 + i32.shr_s $push68=, $pop67, $pop458 + i32.const $push457=, 16 + i32.shl $push69=, $5, $pop457 + i32.const $push456=, 16 + i32.shr_s $push70=, $pop69, $pop456 + i32.const $push455=, 16 + i32.shl $push71=, $4, $pop455 + i32.const $push454=, 16 + i32.shr_s $push72=, $pop71, $pop454 + i32.const $push453=, 16 + i32.shl $push73=, $6, $pop453 + i32.const $push452=, 16 + i32.shr_s $push74=, $pop73, $pop452 i32.const $push78=, 1500 i32.const $push77=, 1300 i32.const $push76=, 3000 i32.const $push75=, 6000 call verify@FUNCTION, $pop68, $pop70, $pop72, $pop74, $pop78, $pop77, $pop76, $pop75 - i32.const $push458=, 0 - i32.load16_s $push86=, i($pop458) - i32.const $push457=, 0 - i32.load16_s $push94=, j($pop457) - i32.div_s $0=, $pop86, $pop94 - i32.const $push456=, 0 - i32.load16_s $push85=, i+2($pop456) - i32.const $push455=, 0 - i32.load16_s $push93=, j+2($pop455) - i32.div_s $4=, $pop85, $pop93 - i32.const $push454=, 0 - i32.load16_s $push84=, i+4($pop454) - i32.const $push453=, 0 - i32.load16_s $push92=, j+4($pop453) - i32.div_s $5=, $pop84, $pop92 - i32.const $push452=, 0 - i32.load16_s $push83=, i+6($pop452) i32.const $push451=, 0 - i32.load16_s $push91=, j+6($pop451) - i32.div_s $6=, $pop83, $pop91 + i32.load16_s $0=, i+12($pop451) i32.const $push450=, 0 - i32.load16_s $push82=, i+8($pop450) + i32.load16_s $4=, i+10($pop450) i32.const $push449=, 0 - i32.load16_s $push90=, j+8($pop449) - i32.div_s $13=, $pop82, $pop90 + i32.load16_s $5=, i+8($pop449) i32.const $push448=, 0 - i32.load16_s $push81=, i+10($pop448) + i32.load16_s $6=, i+6($pop448) i32.const $push447=, 0 - i32.load16_s $push89=, j+10($pop447) - i32.div_s $12=, $pop81, $pop89 + i32.load16_s $13=, i+4($pop447) i32.const $push446=, 0 - i32.load16_s $push80=, i+12($pop446) + i32.load16_s $12=, i+2($pop446) i32.const $push445=, 0 - i32.load16_s $push88=, j+12($pop445) - i32.div_s $11=, $pop80, $pop88 + i32.load16_s $11=, i($pop445) i32.const $push444=, 0 + i32.load16_s $10=, j+12($pop444) i32.const $push443=, 0 + i32.load16_s $1=, j+10($pop443) i32.const $push442=, 0 - i32.load16_s $push79=, i+14($pop442) + i32.load16_s $2=, j+8($pop442) i32.const $push441=, 0 - i32.load16_s $push87=, j+14($pop441) - i32.div_s $push95=, $pop79, $pop87 - i32.store16 $push8=, k+14($pop443), $pop95 - i32.store16 $discard=, res+14($pop444), $pop8 + i32.load16_s $3=, j($pop441) i32.const $push440=, 0 + i32.load16_s $9=, j+2($pop440) i32.const $push439=, 0 - i32.store16 $push9=, k+12($pop439), $11 - i32.store16 $discard=, res+12($pop440), $pop9 + i32.load16_s $8=, j+4($pop439) i32.const $push438=, 0 + i32.load16_s $7=, j+6($pop438) i32.const $push437=, 0 - i32.store16 $push10=, k+10($pop437), $12 - i32.store16 $discard=, res+10($pop438), $pop10 i32.const $push436=, 0 i32.const $push435=, 0 - i32.store16 $push11=, k+8($pop435), $13 - i32.store16 $discard=, res+8($pop436), $pop11 + i32.load16_s $push79=, i+14($pop435) i32.const $push434=, 0 - i32.store16 $discard=, k+6($pop434), $6 + i32.load16_s $push80=, j+14($pop434) + i32.div_s $push88=, $pop79, $pop80 + i32.store16 $push8=, k+14($pop436), $pop88 + i32.store16 $discard=, res+14($pop437), $pop8 i32.const $push433=, 0 - i32.store16 $discard=, k+4($pop433), $5 i32.const $push432=, 0 - i32.store16 $discard=, k+2($pop432), $4 + i32.div_s $push87=, $0, $10 + i32.store16 $push9=, k+12($pop432), $pop87 + i32.store16 $discard=, res+12($pop433), $pop9 i32.const $push431=, 0 - i32.store16 $discard=, k($pop431), $0 i32.const $push430=, 0 - i32.store16 $discard=, res+6($pop430), $6 + i32.div_s $push86=, $4, $1 + i32.store16 $push10=, k+10($pop430), $pop86 + i32.store16 $discard=, res+10($pop431), $pop10 i32.const $push429=, 0 - i32.store16 $discard=, res+4($pop429), $5 i32.const $push428=, 0 - i32.store16 $discard=, res+2($pop428), $4 + i32.div_s $push85=, $5, $2 + i32.store16 $push11=, k+8($pop428), $pop85 + i32.store16 $discard=, res+8($pop429), $pop11 i32.const $push427=, 0 - i32.store16 $discard=, res($pop427), $0 - i32.const $push426=, 16 - i32.shl $push96=, $0, $pop426 - i32.const $push425=, 16 - i32.shr_s $push97=, $pop96, $pop425 - i32.const $push424=, 16 - i32.shl $push98=, $4, $pop424 - i32.const $push423=, 16 - i32.shr_s $push99=, $pop98, $pop423 - i32.const $push422=, 16 - i32.shl $push100=, $5, $pop422 - i32.const $push421=, 16 - i32.shr_s $push101=, $pop100, $pop421 - i32.const $push420=, 16 - i32.shl $push102=, $6, $pop420 + i32.div_s $push84=, $6, $7 + i32.store16 $4=, k+6($pop427), $pop84 + i32.const $push426=, 0 + i32.div_s $push83=, $13, $8 + i32.store16 $5=, k+4($pop426), $pop83 + i32.const $push425=, 0 + i32.div_s $push82=, $12, $9 + i32.store16 $6=, k+2($pop425), $pop82 + i32.const $push424=, 0 + i32.div_s $push81=, $11, $3 + i32.store16 $0=, k($pop424), $pop81 + i32.const $push423=, 0 + i32.store16 $discard=, res+6($pop423), $4 + i32.const $push422=, 0 + i32.store16 $discard=, res+4($pop422), $5 + i32.const $push421=, 0 + i32.store16 $discard=, res+2($pop421), $6 + i32.const $push420=, 0 + i32.store16 $discard=, res($pop420), $0 i32.const $push419=, 16 - i32.shr_s $push103=, $pop102, $pop419 - i32.const $push106=, 15 - i32.const $push105=, 7 - i32.const $push418=, 7 - i32.const $push104=, 6 - call verify@FUNCTION, $pop97, $pop99, $pop101, $pop103, $pop106, $pop105, $pop418, $pop104 - i32.const $push417=, 0 - i32.load16_u $0=, i+6($pop417) - i32.const $push416=, 0 - i32.load16_u $4=, i+4($pop416) - i32.const $push415=, 0 - i32.load16_u $5=, i+2($pop415) - i32.const $push414=, 0 - i32.load16_u $6=, i($pop414) - i32.const $push413=, 0 - i32.load16_u $13=, j($pop413) - i32.const $push412=, 0 - i32.load16_u $12=, j+2($pop412) - i32.const $push411=, 0 - i32.load16_u $11=, j+4($pop411) + i32.shl $push89=, $0, $pop419 + i32.const $push418=, 16 + i32.shr_s $push90=, $pop89, $pop418 + i32.const $push417=, 16 + i32.shl $push91=, $6, $pop417 + i32.const $push416=, 16 + i32.shr_s $push92=, $pop91, $pop416 + i32.const $push415=, 16 + i32.shl $push93=, $5, $pop415 + i32.const $push414=, 16 + i32.shr_s $push94=, $pop93, $pop414 + i32.const $push413=, 16 + i32.shl $push95=, $4, $pop413 + i32.const $push412=, 16 + i32.shr_s $push96=, $pop95, $pop412 + i32.const $push99=, 15 + i32.const $push98=, 7 + i32.const $push411=, 7 + i32.const $push97=, 6 + call verify@FUNCTION, $pop90, $pop92, $pop94, $pop96, $pop99, $pop98, $pop411, $pop97 i32.const $push410=, 0 - i32.load16_u $10=, j+6($pop410) + i32.load16_u $0=, i+6($pop410) i32.const $push409=, 0 - i32.load16_u $1=, i+12($pop409) + i32.load16_u $4=, i+4($pop409) i32.const $push408=, 0 - i32.load16_u $2=, i+10($pop408) + i32.load16_u $5=, i+2($pop408) i32.const $push407=, 0 - i32.load16_u $3=, i+8($pop407) + i32.load16_u $6=, i($pop407) i32.const $push406=, 0 - i32.load16_u $9=, j+8($pop406) + i32.load16_u $13=, j($pop406) i32.const $push405=, 0 - i32.load16_u $8=, j+10($pop405) + i32.load16_u $12=, j+2($pop405) i32.const $push404=, 0 - i32.load16_u $7=, j+12($pop404) + i32.load16_u $11=, j+4($pop404) i32.const $push403=, 0 + i32.load16_u $10=, j+6($pop403) i32.const $push402=, 0 + i32.load16_u $1=, i+12($pop402) i32.const $push401=, 0 - i32.load16_u $push108=, j+14($pop401) + i32.load16_u $2=, i+10($pop401) i32.const $push400=, 0 - i32.load16_u $push107=, i+14($pop400) - i32.and $push116=, $pop108, $pop107 - i32.store16 $push12=, k+14($pop402), $pop116 - i32.store16 $discard=, res+14($pop403), $pop12 + i32.load16_u $3=, i+8($pop400) i32.const $push399=, 0 + i32.load16_u $9=, j+8($pop399) i32.const $push398=, 0 - i32.and $push115=, $7, $1 - i32.store16 $push13=, k+12($pop398), $pop115 - i32.store16 $discard=, res+12($pop399), $pop13 + i32.load16_u $8=, j+10($pop398) i32.const $push397=, 0 + i32.load16_u $7=, j+12($pop397) i32.const $push396=, 0 - i32.and $push114=, $8, $2 - i32.store16 $push14=, k+10($pop396), $pop114 - i32.store16 $discard=, res+10($pop397), $pop14 i32.const $push395=, 0 i32.const $push394=, 0 - i32.and $push113=, $9, $3 - i32.store16 $push15=, k+8($pop394), $pop113 - i32.store16 $discard=, res+8($pop395), $pop15 + i32.load16_u $push101=, j+14($pop394) i32.const $push393=, 0 - i32.and $push112=, $10, $0 - i32.store16 $10=, k+6($pop393), $pop112 + i32.load16_u $push100=, i+14($pop393) + i32.and $push109=, $pop101, $pop100 + i32.store16 $push12=, k+14($pop395), $pop109 + i32.store16 $discard=, res+14($pop396), $pop12 i32.const $push392=, 0 - i32.and $push111=, $11, $4 - i32.store16 $4=, k+4($pop392), $pop111 i32.const $push391=, 0 - i32.and $push110=, $12, $5 - i32.store16 $5=, k+2($pop391), $pop110 + i32.and $push108=, $7, $1 + i32.store16 $push13=, k+12($pop391), $pop108 + i32.store16 $discard=, res+12($pop392), $pop13 i32.const $push390=, 0 - i32.and $push109=, $13, $6 - i32.store16 $0=, k($pop390), $pop109 i32.const $push389=, 0 - i32.store16 $6=, res+6($pop389), $10 + i32.and $push107=, $8, $2 + i32.store16 $push14=, k+10($pop389), $pop107 + i32.store16 $discard=, res+10($pop390), $pop14 i32.const $push388=, 0 - i32.store16 $discard=, res+4($pop388), $4 i32.const $push387=, 0 - i32.store16 $discard=, res+2($pop387), $5 + i32.and $push106=, $9, $3 + i32.store16 $push15=, k+8($pop387), $pop106 + i32.store16 $discard=, res+8($pop388), $pop15 i32.const $push386=, 0 - i32.store16 $discard=, res($pop386), $0 - i32.const $push385=, 16 - i32.shl $push117=, $0, $pop385 - i32.const $push384=, 16 - i32.shr_s $push118=, $pop117, $pop384 - i32.const $push383=, 16 - i32.shl $push119=, $5, $pop383 - i32.const $push382=, 16 - i32.shr_s $push120=, $pop119, $pop382 - i32.const $push381=, 16 - i32.shl $push121=, $4, $pop381 - i32.const $push380=, 16 - i32.shr_s $push122=, $pop121, $pop380 - i32.const $push379=, 16 - i32.shl $push123=, $6, $pop379 + i32.and $push105=, $10, $0 + i32.store16 $10=, k+6($pop386), $pop105 + i32.const $push385=, 0 + i32.and $push104=, $11, $4 + i32.store16 $4=, k+4($pop385), $pop104 + i32.const $push384=, 0 + i32.and $push103=, $12, $5 + i32.store16 $5=, k+2($pop384), $pop103 + i32.const $push383=, 0 + i32.and $push102=, $13, $6 + i32.store16 $0=, k($pop383), $pop102 + i32.const $push382=, 0 + i32.store16 $6=, res+6($pop382), $10 + i32.const $push381=, 0 + i32.store16 $discard=, res+4($pop381), $4 + i32.const $push380=, 0 + i32.store16 $discard=, res+2($pop380), $5 + i32.const $push379=, 0 + i32.store16 $discard=, res($pop379), $0 i32.const $push378=, 16 - i32.shr_s $push124=, $pop123, $pop378 - i32.const $push128=, 2 - i32.const $push127=, 4 - i32.const $push126=, 20 - i32.const $push125=, 8 - call verify@FUNCTION, $pop118, $pop120, $pop122, $pop124, $pop128, $pop127, $pop126, $pop125 - i32.const $push377=, 0 - i32.load16_u $0=, i+6($pop377) - i32.const $push376=, 0 - i32.load16_u $4=, i+4($pop376) - i32.const $push375=, 0 - i32.load16_u $5=, i+2($pop375) - i32.const $push374=, 0 - i32.load16_u $6=, i($pop374) - i32.const $push373=, 0 - i32.load16_u $13=, j($pop373) - i32.const $push372=, 0 - i32.load16_u $12=, j+2($pop372) - i32.const $push371=, 0 - i32.load16_u $11=, j+4($pop371) + i32.shl $push110=, $0, $pop378 + i32.const $push377=, 16 + i32.shr_s $push111=, $pop110, $pop377 + i32.const $push376=, 16 + i32.shl $push112=, $5, $pop376 + i32.const $push375=, 16 + i32.shr_s $push113=, $pop112, $pop375 + i32.const $push374=, 16 + i32.shl $push114=, $4, $pop374 + i32.const $push373=, 16 + i32.shr_s $push115=, $pop114, $pop373 + i32.const $push372=, 16 + i32.shl $push116=, $6, $pop372 + i32.const $push371=, 16 + i32.shr_s $push117=, $pop116, $pop371 + i32.const $push121=, 2 + i32.const $push120=, 4 + i32.const $push119=, 20 + i32.const $push118=, 8 + call verify@FUNCTION, $pop111, $pop113, $pop115, $pop117, $pop121, $pop120, $pop119, $pop118 i32.const $push370=, 0 - i32.load16_u $10=, j+6($pop370) + i32.load16_u $0=, i+6($pop370) i32.const $push369=, 0 - i32.load16_u $1=, i+12($pop369) + i32.load16_u $4=, i+4($pop369) i32.const $push368=, 0 - i32.load16_u $2=, i+10($pop368) + i32.load16_u $5=, i+2($pop368) i32.const $push367=, 0 - i32.load16_u $3=, i+8($pop367) + i32.load16_u $6=, i($pop367) i32.const $push366=, 0 - i32.load16_u $9=, j+8($pop366) + i32.load16_u $13=, j($pop366) i32.const $push365=, 0 - i32.load16_u $8=, j+10($pop365) + i32.load16_u $12=, j+2($pop365) i32.const $push364=, 0 - i32.load16_u $7=, j+12($pop364) + i32.load16_u $11=, j+4($pop364) i32.const $push363=, 0 + i32.load16_u $10=, j+6($pop363) i32.const $push362=, 0 + i32.load16_u $1=, i+12($pop362) i32.const $push361=, 0 - i32.load16_u $push130=, j+14($pop361) + i32.load16_u $2=, i+10($pop361) i32.const $push360=, 0 - i32.load16_u $push129=, i+14($pop360) - i32.or $push138=, $pop130, $pop129 - i32.store16 $push16=, k+14($pop362), $pop138 - i32.store16 $discard=, res+14($pop363), $pop16 + i32.load16_u $3=, i+8($pop360) i32.const $push359=, 0 + i32.load16_u $9=, j+8($pop359) i32.const $push358=, 0 - i32.or $push137=, $7, $1 - i32.store16 $push17=, k+12($pop358), $pop137 - i32.store16 $discard=, res+12($pop359), $pop17 + i32.load16_u $8=, j+10($pop358) i32.const $push357=, 0 + i32.load16_u $7=, j+12($pop357) i32.const $push356=, 0 - i32.or $push136=, $8, $2 - i32.store16 $push18=, k+10($pop356), $pop136 - i32.store16 $discard=, res+10($pop357), $pop18 i32.const $push355=, 0 i32.const $push354=, 0 - i32.or $push135=, $9, $3 - i32.store16 $push19=, k+8($pop354), $pop135 - i32.store16 $discard=, res+8($pop355), $pop19 + i32.load16_u $push123=, j+14($pop354) i32.const $push353=, 0 - i32.or $push134=, $10, $0 - i32.store16 $10=, k+6($pop353), $pop134 + i32.load16_u $push122=, i+14($pop353) + i32.or $push131=, $pop123, $pop122 + i32.store16 $push16=, k+14($pop355), $pop131 + i32.store16 $discard=, res+14($pop356), $pop16 i32.const $push352=, 0 - i32.or $push133=, $11, $4 - i32.store16 $4=, k+4($pop352), $pop133 i32.const $push351=, 0 - i32.or $push132=, $12, $5 - i32.store16 $5=, k+2($pop351), $pop132 + i32.or $push130=, $7, $1 + i32.store16 $push17=, k+12($pop351), $pop130 + i32.store16 $discard=, res+12($pop352), $pop17 i32.const $push350=, 0 - i32.or $push131=, $13, $6 - i32.store16 $0=, k($pop350), $pop131 i32.const $push349=, 0 - i32.store16 $6=, res+6($pop349), $10 + i32.or $push129=, $8, $2 + i32.store16 $push18=, k+10($pop349), $pop129 + i32.store16 $discard=, res+10($pop350), $pop18 i32.const $push348=, 0 - i32.store16 $discard=, res+4($pop348), $4 i32.const $push347=, 0 - i32.store16 $discard=, res+2($pop347), $5 + i32.or $push128=, $9, $3 + i32.store16 $push19=, k+8($pop347), $pop128 + i32.store16 $discard=, res+8($pop348), $pop19 i32.const $push346=, 0 - i32.store16 $discard=, res($pop346), $0 - i32.const $push345=, 16 - i32.shl $push139=, $0, $pop345 - i32.const $push344=, 16 - i32.shr_s $push140=, $pop139, $pop344 - i32.const $push343=, 16 - i32.shl $push141=, $5, $pop343 - i32.const $push342=, 16 - i32.shr_s $push142=, $pop141, $pop342 - i32.const $push341=, 16 - i32.shl $push143=, $4, $pop341 - i32.const $push340=, 16 - i32.shr_s $push144=, $pop143, $pop340 - i32.const $push339=, 16 - i32.shl $push145=, $6, $pop339 + i32.or $push127=, $10, $0 + i32.store16 $10=, k+6($pop346), $pop127 + i32.const $push345=, 0 + i32.or $push126=, $11, $4 + i32.store16 $4=, k+4($pop345), $pop126 + i32.const $push344=, 0 + i32.or $push125=, $12, $5 + i32.store16 $5=, k+2($pop344), $pop125 + i32.const $push343=, 0 + i32.or $push124=, $13, $6 + i32.store16 $0=, k($pop343), $pop124 + i32.const $push342=, 0 + i32.store16 $6=, res+6($pop342), $10 + i32.const $push341=, 0 + i32.store16 $discard=, res+4($pop341), $4 + i32.const $push340=, 0 + i32.store16 $discard=, res+2($pop340), $5 + i32.const $push339=, 0 + i32.store16 $discard=, res($pop339), $0 i32.const $push338=, 16 - i32.shr_s $push146=, $pop145, $pop338 - i32.const $push150=, 158 - i32.const $push149=, 109 - i32.const $push148=, 150 - i32.const $push147=, 222 - call verify@FUNCTION, $pop140, $pop142, $pop144, $pop146, $pop150, $pop149, $pop148, $pop147 - i32.const $push337=, 0 - i32.load16_u $0=, i+6($pop337) - i32.const $push336=, 0 - i32.load16_u $4=, i+4($pop336) - i32.const $push335=, 0 - i32.load16_u $5=, i+2($pop335) - i32.const $push334=, 0 - i32.load16_u $6=, i($pop334) - i32.const $push333=, 0 - i32.load16_u $13=, j($pop333) - i32.const $push332=, 0 - i32.load16_u $12=, j+2($pop332) - i32.const $push331=, 0 - i32.load16_u $11=, j+4($pop331) + i32.shl $push132=, $0, $pop338 + i32.const $push337=, 16 + i32.shr_s $push133=, $pop132, $pop337 + i32.const $push336=, 16 + i32.shl $push134=, $5, $pop336 + i32.const $push335=, 16 + i32.shr_s $push135=, $pop134, $pop335 + i32.const $push334=, 16 + i32.shl $push136=, $4, $pop334 + i32.const $push333=, 16 + i32.shr_s $push137=, $pop136, $pop333 + i32.const $push332=, 16 + i32.shl $push138=, $6, $pop332 + i32.const $push331=, 16 + i32.shr_s $push139=, $pop138, $pop331 + i32.const $push143=, 158 + i32.const $push142=, 109 + i32.const $push141=, 150 + i32.const $push140=, 222 + call verify@FUNCTION, $pop133, $pop135, $pop137, $pop139, $pop143, $pop142, $pop141, $pop140 i32.const $push330=, 0 - i32.load16_u $10=, j+6($pop330) + i32.load16_u $0=, i+6($pop330) i32.const $push329=, 0 - i32.load16_u $1=, i+12($pop329) + i32.load16_u $4=, i+4($pop329) i32.const $push328=, 0 - i32.load16_u $2=, i+10($pop328) + i32.load16_u $5=, i+2($pop328) i32.const $push327=, 0 - i32.load16_u $3=, i+8($pop327) + i32.load16_u $6=, i($pop327) i32.const $push326=, 0 - i32.load16_u $9=, j+8($pop326) + i32.load16_u $13=, j($pop326) i32.const $push325=, 0 - i32.load16_u $8=, j+10($pop325) + i32.load16_u $12=, j+2($pop325) i32.const $push324=, 0 - i32.load16_u $7=, j+12($pop324) + i32.load16_u $11=, j+4($pop324) i32.const $push323=, 0 + i32.load16_u $10=, j+6($pop323) i32.const $push322=, 0 + i32.load16_u $1=, i+12($pop322) i32.const $push321=, 0 - i32.load16_u $push151=, i+14($pop321) + i32.load16_u $2=, i+10($pop321) i32.const $push320=, 0 - i32.load16_u $push152=, j+14($pop320) - i32.xor $push160=, $pop151, $pop152 - i32.store16 $push20=, k+14($pop322), $pop160 - i32.store16 $discard=, res+14($pop323), $pop20 + i32.load16_u $3=, i+8($pop320) i32.const $push319=, 0 + i32.load16_u $9=, j+8($pop319) i32.const $push318=, 0 - i32.xor $push159=, $1, $7 - i32.store16 $push21=, k+12($pop318), $pop159 - i32.store16 $discard=, res+12($pop319), $pop21 + i32.load16_u $8=, j+10($pop318) i32.const $push317=, 0 + i32.load16_u $7=, j+12($pop317) i32.const $push316=, 0 - i32.xor $push158=, $2, $8 - i32.store16 $push22=, k+10($pop316), $pop158 - i32.store16 $discard=, res+10($pop317), $pop22 i32.const $push315=, 0 i32.const $push314=, 0 - i32.xor $push157=, $3, $9 - i32.store16 $push23=, k+8($pop314), $pop157 - i32.store16 $discard=, res+8($pop315), $pop23 + i32.load16_u $push144=, i+14($pop314) i32.const $push313=, 0 - i32.xor $push156=, $0, $10 - i32.store16 $10=, k+6($pop313), $pop156 + i32.load16_u $push145=, j+14($pop313) + i32.xor $push153=, $pop144, $pop145 + i32.store16 $push20=, k+14($pop315), $pop153 + i32.store16 $discard=, res+14($pop316), $pop20 i32.const $push312=, 0 - i32.xor $push155=, $4, $11 - i32.store16 $4=, k+4($pop312), $pop155 i32.const $push311=, 0 - i32.xor $push154=, $5, $12 - i32.store16 $5=, k+2($pop311), $pop154 + i32.xor $push152=, $1, $7 + i32.store16 $push21=, k+12($pop311), $pop152 + i32.store16 $discard=, res+12($pop312), $pop21 i32.const $push310=, 0 - i32.xor $push153=, $6, $13 - i32.store16 $0=, k($pop310), $pop153 i32.const $push309=, 0 - i32.store16 $6=, res+6($pop309), $10 + i32.xor $push151=, $2, $8 + i32.store16 $push22=, k+10($pop309), $pop151 + i32.store16 $discard=, res+10($pop310), $pop22 i32.const $push308=, 0 - i32.store16 $discard=, res+4($pop308), $4 i32.const $push307=, 0 - i32.store16 $discard=, res+2($pop307), $5 + i32.xor $push150=, $3, $9 + i32.store16 $push23=, k+8($pop307), $pop150 + i32.store16 $discard=, res+8($pop308), $pop23 i32.const $push306=, 0 - i32.store16 $discard=, res($pop306), $0 - i32.const $push305=, 16 - i32.shl $push161=, $0, $pop305 - i32.const $push304=, 16 - i32.shr_s $push162=, $pop161, $pop304 - i32.const $push303=, 16 - i32.shl $push163=, $5, $pop303 - i32.const $push302=, 16 - i32.shr_s $push164=, $pop163, $pop302 - i32.const $push301=, 16 - i32.shl $push165=, $4, $pop301 - i32.const $push300=, 16 - i32.shr_s $push166=, $pop165, $pop300 - i32.const $push299=, 16 - i32.shl $push167=, $6, $pop299 + i32.xor $push149=, $0, $10 + i32.store16 $10=, k+6($pop306), $pop149 + i32.const $push305=, 0 + i32.xor $push148=, $4, $11 + i32.store16 $4=, k+4($pop305), $pop148 + i32.const $push304=, 0 + i32.xor $push147=, $5, $12 + i32.store16 $5=, k+2($pop304), $pop147 + i32.const $push303=, 0 + i32.xor $push146=, $6, $13 + i32.store16 $0=, k($pop303), $pop146 + i32.const $push302=, 0 + i32.store16 $6=, res+6($pop302), $10 + i32.const $push301=, 0 + i32.store16 $discard=, res+4($pop301), $4 + i32.const $push300=, 0 + i32.store16 $discard=, res+2($pop300), $5 + i32.const $push299=, 0 + i32.store16 $discard=, res($pop299), $0 i32.const $push298=, 16 - i32.shr_s $push168=, $pop167, $pop298 - i32.const $push172=, 156 - i32.const $push171=, 105 - i32.const $push170=, 130 - i32.const $push169=, 214 - call verify@FUNCTION, $pop162, $pop164, $pop166, $pop168, $pop172, $pop171, $pop170, $pop169 - i32.const $push297=, 0 - i32.load16_u $0=, i+12($pop297) - i32.const $push296=, 0 - i32.const $push295=, 0 - i32.const $push294=, 0 - i32.const $push293=, 0 - i32.load16_u $push173=, i+14($pop293) - i32.sub $push182=, $pop294, $pop173 - i32.store16 $push24=, k+14($pop295), $pop182 - i32.store16 $discard=, res+14($pop296), $pop24 - i32.const $push292=, 0 - i32.load16_u $4=, i+10($pop292) - i32.const $push291=, 0 + i32.shl $push154=, $0, $pop298 + i32.const $push297=, 16 + i32.shr_s $push155=, $pop154, $pop297 + i32.const $push296=, 16 + i32.shl $push156=, $5, $pop296 + i32.const $push295=, 16 + i32.shr_s $push157=, $pop156, $pop295 + i32.const $push294=, 16 + i32.shl $push158=, $4, $pop294 + i32.const $push293=, 16 + i32.shr_s $push159=, $pop158, $pop293 + i32.const $push292=, 16 + i32.shl $push160=, $6, $pop292 + i32.const $push291=, 16 + i32.shr_s $push161=, $pop160, $pop291 + i32.const $push165=, 156 + i32.const $push164=, 105 + i32.const $push163=, 130 + i32.const $push162=, 214 + call verify@FUNCTION, $pop155, $pop157, $pop159, $pop161, $pop165, $pop164, $pop163, $pop162 i32.const $push290=, 0 + i32.load16_u $0=, i+12($pop290) i32.const $push289=, 0 - i32.sub $push181=, $pop289, $0 - i32.store16 $push25=, k+12($pop290), $pop181 - i32.store16 $discard=, res+12($pop291), $pop25 i32.const $push288=, 0 - i32.load16_u $0=, i+8($pop288) i32.const $push287=, 0 i32.const $push286=, 0 + i32.load16_u $push166=, i+14($pop286) + i32.sub $push175=, $pop287, $pop166 + i32.store16 $push24=, k+14($pop288), $pop175 + i32.store16 $discard=, res+14($pop289), $pop24 i32.const $push285=, 0 - i32.sub $push180=, $pop285, $4 - i32.store16 $push26=, k+10($pop286), $pop180 - i32.store16 $discard=, res+10($pop287), $pop26 + i32.load16_u $4=, i+10($pop285) i32.const $push284=, 0 i32.const $push283=, 0 i32.const $push282=, 0 - i32.sub $push179=, $pop282, $0 - i32.store16 $push27=, k+8($pop283), $pop179 - i32.store16 $discard=, res+8($pop284), $pop27 + i32.sub $push174=, $pop282, $0 + i32.store16 $push25=, k+12($pop283), $pop174 + i32.store16 $discard=, res+12($pop284), $pop25 i32.const $push281=, 0 - i32.load16_u $0=, i($pop281) + i32.load16_u $0=, i+8($pop281) i32.const $push280=, 0 - i32.load16_u $4=, i+2($pop280) i32.const $push279=, 0 - i32.load16_u $5=, i+4($pop279) i32.const $push278=, 0 + i32.sub $push173=, $pop278, $4 + i32.store16 $push26=, k+10($pop279), $pop173 + i32.store16 $discard=, res+10($pop280), $pop26 i32.const $push277=, 0 i32.const $push276=, 0 - i32.load16_u $push174=, i+6($pop276) - i32.sub $push178=, $pop277, $pop174 - i32.store16 $6=, k+6($pop278), $pop178 i32.const $push275=, 0 + i32.sub $push172=, $pop275, $0 + i32.store16 $push27=, k+8($pop276), $pop172 + i32.store16 $discard=, res+8($pop277), $pop27 i32.const $push274=, 0 - i32.sub $push177=, $pop274, $5 - i32.store16 $5=, k+4($pop275), $pop177 + i32.load16_u $0=, i($pop274) i32.const $push273=, 0 + i32.load16_u $4=, i+2($pop273) i32.const $push272=, 0 - i32.sub $push176=, $pop272, $4 - i32.store16 $4=, k+2($pop273), $pop176 + i32.load16_u $5=, i+4($pop272) i32.const $push271=, 0 i32.const $push270=, 0 - i32.sub $push175=, $pop270, $0 - i32.store16 $0=, k($pop271), $pop175 i32.const $push269=, 0 - i32.store16 $discard=, res+6($pop269), $6 + i32.load16_u $push167=, i+6($pop269) + i32.sub $push171=, $pop270, $pop167 + i32.store16 $6=, k+6($pop271), $pop171 i32.const $push268=, 0 - i32.store16 $discard=, res+4($pop268), $5 i32.const $push267=, 0 - i32.store16 $discard=, res+2($pop267), $4 + i32.sub $push170=, $pop267, $5 + i32.store16 $5=, k+4($pop268), $pop170 i32.const $push266=, 0 - i32.store16 $discard=, res($pop266), $0 - i32.const $push265=, 16 - i32.shl $push183=, $0, $pop265 - i32.const $push264=, 16 - i32.shr_s $push184=, $pop183, $pop264 - i32.const $push263=, 16 - i32.shl $push185=, $4, $pop263 - i32.const $push262=, 16 - i32.shr_s $push186=, $pop185, $pop262 - i32.const $push261=, 16 - i32.shl $push187=, $5, $pop261 - i32.const $push260=, 16 - i32.shr_s $push188=, $pop187, $pop260 - i32.const $push259=, 16 - i32.shl $push189=, $6, $pop259 + i32.const $push265=, 0 + i32.sub $push169=, $pop265, $4 + i32.store16 $4=, k+2($pop266), $pop169 + i32.const $push264=, 0 + i32.const $push263=, 0 + i32.sub $push168=, $pop263, $0 + i32.store16 $0=, k($pop264), $pop168 + i32.const $push262=, 0 + i32.store16 $discard=, res+6($pop262), $6 + i32.const $push261=, 0 + i32.store16 $discard=, res+4($pop261), $5 + i32.const $push260=, 0 + i32.store16 $discard=, res+2($pop260), $4 + i32.const $push259=, 0 + i32.store16 $discard=, res($pop259), $0 i32.const $push258=, 16 - i32.shr_s $push190=, $pop189, $pop258 - i32.const $push193=, -150 - i32.const $push192=, -100 - i32.const $push257=, -150 - i32.const $push191=, -200 - call verify@FUNCTION, $pop184, $pop186, $pop188, $pop190, $pop193, $pop192, $pop257, $pop191 - i32.const $push256=, 0 - i32.load16_u $0=, i+6($pop256) - i32.const $push255=, 0 - i32.load16_u $4=, i($pop255) - i32.const $push254=, 0 - i32.load16_u $5=, i+2($pop254) - i32.const $push253=, 0 - i32.load16_u $6=, i+4($pop253) - i32.const $push252=, 0 - i32.load16_u $13=, i+8($pop252) - i32.const $push251=, 0 - i32.load16_u $12=, i+10($pop251) - i32.const $push250=, 0 - i32.load16_u $11=, i+12($pop250) + i32.shl $push176=, $0, $pop258 + i32.const $push257=, 16 + i32.shr_s $push177=, $pop176, $pop257 + i32.const $push256=, 16 + i32.shl $push178=, $4, $pop256 + i32.const $push255=, 16 + i32.shr_s $push179=, $pop178, $pop255 + i32.const $push254=, 16 + i32.shl $push180=, $5, $pop254 + i32.const $push253=, 16 + i32.shr_s $push181=, $pop180, $pop253 + i32.const $push252=, 16 + i32.shl $push182=, $6, $pop252 + i32.const $push251=, 16 + i32.shr_s $push183=, $pop182, $pop251 + i32.const $push186=, -150 + i32.const $push185=, -100 + i32.const $push250=, -150 + i32.const $push184=, -200 + call verify@FUNCTION, $pop177, $pop179, $pop181, $pop183, $pop186, $pop185, $pop250, $pop184 i32.const $push249=, 0 + i32.load16_u $0=, i+6($pop249) i32.const $push248=, 0 + i32.load16_u $4=, i($pop248) i32.const $push247=, 0 - i32.load16_u $push194=, i+14($pop247) - i32.const $push195=, -1 - i32.xor $push202=, $pop194, $pop195 - i32.store16 $push28=, k+14($pop248), $pop202 - i32.store16 $discard=, res+14($pop249), $pop28 + i32.load16_u $5=, i+2($pop247) i32.const $push246=, 0 + i32.load16_u $6=, i+4($pop246) i32.const $push245=, 0 - i32.const $push244=, -1 - i32.xor $push201=, $11, $pop244 - i32.store16 $push29=, k+12($pop245), $pop201 - i32.store16 $discard=, res+12($pop246), $pop29 + i32.load16_u $13=, i+8($pop245) + i32.const $push244=, 0 + i32.load16_u $12=, i+10($pop244) i32.const $push243=, 0 + i32.load16_u $11=, i+12($pop243) i32.const $push242=, 0 - i32.const $push241=, -1 - i32.xor $push200=, $12, $pop241 - i32.store16 $push30=, k+10($pop242), $pop200 - i32.store16 $discard=, res+10($pop243), $pop30 + i32.const $push241=, 0 i32.const $push240=, 0 + i32.load16_u $push187=, i+14($pop240) + i32.const $push188=, -1 + i32.xor $push195=, $pop187, $pop188 + i32.store16 $push28=, k+14($pop241), $pop195 + i32.store16 $discard=, res+14($pop242), $pop28 i32.const $push239=, 0 - i32.const $push238=, -1 - i32.xor $push199=, $13, $pop238 - i32.store16 $push31=, k+8($pop239), $pop199 - i32.store16 $discard=, res+8($pop240), $pop31 - i32.const $push237=, 0 - i32.const $push236=, -1 - i32.xor $push198=, $0, $pop236 - i32.store16 $0=, k+6($pop237), $pop198 + i32.const $push238=, 0 + i32.const $push237=, -1 + i32.xor $push194=, $11, $pop237 + i32.store16 $push29=, k+12($pop238), $pop194 + i32.store16 $discard=, res+12($pop239), $pop29 + i32.const $push236=, 0 i32.const $push235=, 0 i32.const $push234=, -1 - i32.xor $push197=, $6, $pop234 - i32.store16 $6=, k+4($pop235), $pop197 + i32.xor $push193=, $12, $pop234 + i32.store16 $push30=, k+10($pop235), $pop193 + i32.store16 $discard=, res+10($pop236), $pop30 i32.const $push233=, 0 - i32.const $push232=, -1 - i32.xor $push196=, $5, $pop232 - i32.store16 $5=, k+2($pop233), $pop196 - i32.const $push231=, 0 - i32.store16 $discard=, res+6($pop231), $0 + i32.const $push232=, 0 + i32.const $push231=, -1 + i32.xor $push192=, $13, $pop231 + i32.store16 $push31=, k+8($pop232), $pop192 + i32.store16 $discard=, res+8($pop233), $pop31 i32.const $push230=, 0 - i32.store16 $discard=, res+4($pop230), $6 - i32.const $push229=, 0 - i32.store16 $discard=, res+2($pop229), $5 + i32.const $push229=, -1 + i32.xor $push191=, $0, $pop229 + i32.store16 $0=, k+6($pop230), $pop191 i32.const $push228=, 0 - i32.const $push227=, 0 - i32.const $push226=, -1 - i32.xor $push225=, $4, $pop226 - tee_local $push224=, $4=, $pop225 - i32.store16 $push32=, k($pop227), $pop224 - i32.store16 $discard=, res($pop228), $pop32 - i32.const $push223=, 16 - i32.shl $push203=, $4, $pop223 - i32.const $push222=, 16 - i32.shr_s $push204=, $pop203, $pop222 - i32.const $push221=, 16 - i32.shl $push205=, $5, $pop221 - i32.const $push220=, 16 - i32.shr_s $push206=, $pop205, $pop220 - i32.const $push219=, 16 - i32.shl $push207=, $6, $pop219 - i32.const $push218=, 16 - i32.shr_s $push208=, $pop207, $pop218 - i32.const $push217=, 16 - i32.shl $push209=, $0, $pop217 + i32.const $push227=, -1 + i32.xor $push190=, $6, $pop227 + i32.store16 $6=, k+4($pop228), $pop190 + i32.const $push226=, 0 + i32.const $push225=, -1 + i32.xor $push189=, $5, $pop225 + i32.store16 $5=, k+2($pop226), $pop189 + i32.const $push224=, 0 + i32.store16 $discard=, res+6($pop224), $0 + i32.const $push223=, 0 + i32.store16 $discard=, res+4($pop223), $6 + i32.const $push222=, 0 + i32.store16 $discard=, res+2($pop222), $5 + i32.const $push221=, 0 + i32.const $push220=, 0 + i32.const $push219=, -1 + i32.xor $push218=, $4, $pop219 + tee_local $push217=, $4=, $pop218 + i32.store16 $push32=, k($pop220), $pop217 + i32.store16 $discard=, res($pop221), $pop32 i32.const $push216=, 16 - i32.shr_s $push210=, $pop209, $pop216 - i32.const $push213=, -151 - i32.const $push212=, -101 - i32.const $push215=, -151 - i32.const $push211=, -201 - call verify@FUNCTION, $pop204, $pop206, $pop208, $pop210, $pop213, $pop212, $pop215, $pop211 - i32.const $push214=, 0 - call exit@FUNCTION, $pop214 + i32.shl $push196=, $4, $pop216 + i32.const $push215=, 16 + i32.shr_s $push197=, $pop196, $pop215 + i32.const $push214=, 16 + i32.shl $push198=, $5, $pop214 + i32.const $push213=, 16 + i32.shr_s $push199=, $pop198, $pop213 + i32.const $push212=, 16 + i32.shl $push200=, $6, $pop212 + i32.const $push211=, 16 + i32.shr_s $push201=, $pop200, $pop211 + i32.const $push210=, 16 + i32.shl $push202=, $0, $pop210 + i32.const $push209=, 16 + i32.shr_s $push203=, $pop202, $pop209 + i32.const $push206=, -151 + i32.const $push205=, -101 + i32.const $push208=, -151 + i32.const $push204=, -201 + call verify@FUNCTION, $pop197, $pop199, $pop201, $pop203, $pop206, $pop205, $pop208, $pop204 + i32.const $push207=, 0 + call exit@FUNCTION, $pop207 unreachable .endfunc .Lfunc_end1: diff --git a/test/torture-s/strcmp-1.c.s b/test/torture-s/strcmp-1.c.s index 4db2699cd..0f3e402b5 100644 --- a/test/torture-s/strcmp-1.c.s +++ b/test/torture-s/strcmp-1.c.s @@ -76,9 +76,8 @@ main: # @main loop # label10: i32.const $9=, u1 block - i32.const $push51=, 0 - i32.eq $push52=, $4, $pop51 - br_if 0, $pop52 # 0: down to label12 + i32.eqz $push51=, $4 + br_if 0, $pop51 # 0: down to label12 # BB#4: # %for.body9.preheader # in Loop: Header=BB1_3 Depth=3 i32.const $push27=, u1 @@ -90,9 +89,8 @@ main: # @main end_block # label12: copy_local $10=, $9 block - i32.const $push53=, 0 - i32.eq $push54=, $8, $pop53 - br_if 0, $pop54 # 0: down to label13 + i32.eqz $push52=, $8 + br_if 0, $pop52 # 0: down to label13 # BB#6: # %for.body12.preheader # in Loop: Header=BB1_3 Depth=3 i32.const $push28=, 97 @@ -109,9 +107,8 @@ main: # @main i32.store16 $discard=, 0($pop3):p2align=0, $pop29 i32.const $11=, u2 block - i32.const $push55=, 0 - i32.eq $push56=, $6, $pop55 - br_if 0, $pop56 # 0: down to label14 + i32.eqz $push53=, $6 + br_if 0, $pop53 # 0: down to label14 # BB#8: # %for.body26.preheader # in Loop: Header=BB1_3 Depth=3 i32.const $push33=, u2 @@ -123,9 +120,8 @@ main: # @main end_block # label14: copy_local $12=, $11 block - i32.const $push57=, 0 - i32.eq $push58=, $8, $pop57 - br_if 0, $pop58 # 0: down to label15 + i32.eqz $push54=, $8 + br_if 0, $pop54 # 0: down to label15 # BB#10: # %for.body33.preheader # in Loop: Header=BB1_3 Depth=3 i32.const $push34=, 97 diff --git a/test/torture-s/string-opt-17.c.s b/test/torture-s/string-opt-17.c.s index fcd3ccde2..763634a95 100644 --- a/test/torture-s/string-opt-17.c.s +++ b/test/torture-s/string-opt-17.c.s @@ -113,9 +113,8 @@ main: # @main i32.const $push9=, 8020322 i32.store $discard=, 4($0), $pop9 i32.const $push10=, 1 - i32.const $push25=, 0 - i32.eq $push26=, $pop10, $pop25 - br_if 0, $pop26 # 0: down to label2 + i32.eqz $push25=, $pop10 + br_if 0, $pop25 # 0: down to label2 # BB#3: # %if.end8 i32.const $push24=, 0 call exit@FUNCTION, $pop24 diff --git a/test/torture-s/strlen-1.c.s b/test/torture-s/strlen-1.c.s index cd196c66a..4272d3a01 100644 --- a/test/torture-s/strlen-1.c.s +++ b/test/torture-s/strlen-1.c.s @@ -24,9 +24,8 @@ main: # @main loop # label3: i32.const $4=, u block - i32.const $push19=, 0 - i32.eq $push20=, $1, $pop19 - br_if 0, $pop20 # 0: down to label5 + i32.eqz $push19=, $1 + br_if 0, $pop19 # 0: down to label5 # BB#3: # %for.body6.preheader # in Loop: Header=BB0_2 Depth=2 i32.const $push9=, u @@ -37,9 +36,8 @@ main: # @main # in Loop: Header=BB0_2 Depth=2 end_block # label5: block - i32.const $push21=, 0 - i32.eq $push22=, $3, $pop21 - br_if 0, $pop22 # 0: down to label6 + i32.eqz $push20=, $3 + br_if 0, $pop20 # 0: down to label6 # BB#5: # %for.body9.preheader # in Loop: Header=BB0_2 Depth=2 i32.const $push10=, 97 diff --git a/test/torture-s/strncmp-1.c.s b/test/torture-s/strncmp-1.c.s index d58911454..37b694277 100644 --- a/test/torture-s/strncmp-1.c.s +++ b/test/torture-s/strncmp-1.c.s @@ -76,9 +76,8 @@ main: # @main loop # label10: i32.const $9=, u1 block - i32.const $push63=, 0 - i32.eq $push64=, $4, $pop63 - br_if 0, $pop64 # 0: down to label12 + i32.eqz $push63=, $4 + br_if 0, $pop63 # 0: down to label12 # BB#4: # %for.body9.preheader # in Loop: Header=BB1_3 Depth=3 i32.const $push34=, u1 @@ -90,9 +89,8 @@ main: # @main end_block # label12: copy_local $10=, $9 block - i32.const $push65=, 0 - i32.eq $push66=, $8, $pop65 - br_if 0, $pop66 # 0: down to label13 + i32.eqz $push64=, $8 + br_if 0, $pop64 # 0: down to label13 # BB#6: # %for.body12.preheader # in Loop: Header=BB1_3 Depth=3 i32.const $push35=, 97 @@ -105,9 +103,8 @@ main: # @main i64.store $0=, 0($10):p2align=0, $pop36 i32.const $11=, u2 block - i32.const $push67=, 0 - i32.eq $push68=, $6, $pop67 - br_if 0, $pop68 # 0: down to label14 + i32.eqz $push65=, $6 + br_if 0, $pop65 # 0: down to label14 # BB#8: # %for.body26.preheader # in Loop: Header=BB1_3 Depth=3 i32.const $push38=, u2 @@ -119,9 +116,8 @@ main: # @main end_block # label14: copy_local $12=, $11 block - i32.const $push69=, 0 - i32.eq $push70=, $8, $pop69 - br_if 0, $pop70 # 0: down to label15 + i32.eqz $push66=, $8 + br_if 0, $pop66 # 0: down to label15 # BB#10: # %for.body33.preheader # in Loop: Header=BB1_3 Depth=3 i32.const $push39=, 97 diff --git a/test/torture-s/va-arg-10.c.s b/test/torture-s/va-arg-10.c.s index 5699a556a..77825a1a2 100644 --- a/test/torture-s/va-arg-10.c.s +++ b/test/torture-s/va-arg-10.c.s @@ -55,9 +55,8 @@ fap: # @fap loop # label3: i32.load8_u $push24=, 0($2) tee_local $push23=, $0=, $pop24 - i32.const $push41=, 0 - i32.eq $push42=, $pop23, $pop41 - br_if 2, $pop42 # 2: down to label2 + i32.eqz $push41=, $pop23 + br_if 2, $pop41 # 2: down to label2 # BB#3: # %while.body # in Loop: Header=BB1_2 Depth=1 i32.load $push30=, 12($3) @@ -89,9 +88,8 @@ fap: # @fap loop # label6: i32.load8_u $push33=, 0($1) tee_local $push32=, $2=, $pop33 - i32.const $push43=, 0 - i32.eq $push44=, $pop32, $pop43 - br_if 2, $pop44 # 2: down to label5 + i32.eqz $push42=, $pop32 + br_if 2, $pop42 # 2: down to label5 # BB#8: # %while.body8 # in Loop: Header=BB1_7 Depth=1 i32.load $push39=, 8($3) diff --git a/test/torture-s/va-arg-2.c.s b/test/torture-s/va-arg-2.c.s index e76afa895..daba6cb0f 100644 --- a/test/torture-s/va-arg-2.c.s +++ b/test/torture-s/va-arg-2.c.s @@ -51,9 +51,8 @@ f0: # @f0 loop # label3: i32.load8_u $push18=, 0($0) tee_local $push17=, $1=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label2 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label2 # BB#3: # %while.body # in Loop: Header=BB1_2 Depth=1 i32.load $push24=, 12($2) @@ -120,9 +119,8 @@ f1: # @f1 loop # label7: i32.load8_u $push18=, 0($1) tee_local $push17=, $2=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label6 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label6 # BB#3: # %while.body # in Loop: Header=BB2_2 Depth=1 i32.load $push24=, 12($3) @@ -189,9 +187,8 @@ f2: # @f2 loop # label11: i32.load8_u $push18=, 0($2) tee_local $push17=, $3=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label10 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label10 # BB#3: # %while.body # in Loop: Header=BB3_2 Depth=1 i32.load $push24=, 12($4) @@ -258,9 +255,8 @@ f3: # @f3 loop # label15: i32.load8_u $push18=, 0($3) tee_local $push17=, $4=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label14 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label14 # BB#3: # %while.body # in Loop: Header=BB4_2 Depth=1 i32.load $push24=, 12($5) @@ -327,9 +323,8 @@ f4: # @f4 loop # label19: i32.load8_u $push18=, 0($4) tee_local $push17=, $5=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label18 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label18 # BB#3: # %while.body # in Loop: Header=BB5_2 Depth=1 i32.load $push24=, 12($6) @@ -396,9 +391,8 @@ f5: # @f5 loop # label23: i32.load8_u $push18=, 0($5) tee_local $push17=, $6=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label22 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label22 # BB#3: # %while.body # in Loop: Header=BB6_2 Depth=1 i32.load $push24=, 12($7) @@ -465,9 +459,8 @@ f6: # @f6 loop # label27: i32.load8_u $push18=, 0($6) tee_local $push17=, $7=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label26 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label26 # BB#3: # %while.body # in Loop: Header=BB7_2 Depth=1 i32.load $push24=, 12($8) @@ -534,9 +527,8 @@ f7: # @f7 loop # label31: i32.load8_u $push18=, 0($7) tee_local $push17=, $8=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label30 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label30 # BB#3: # %while.body # in Loop: Header=BB8_2 Depth=1 i32.load $push24=, 12($9) @@ -603,9 +595,8 @@ f8: # @f8 loop # label35: i32.load8_u $push18=, 0($8) tee_local $push17=, $9=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label34 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label34 # BB#3: # %while.body # in Loop: Header=BB9_2 Depth=1 i32.load $push24=, 12($10) @@ -672,9 +663,8 @@ f9: # @f9 loop # label39: i32.load8_u $push18=, 0($9) tee_local $push17=, $10=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label38 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label38 # BB#3: # %while.body # in Loop: Header=BB10_2 Depth=1 i32.load $push24=, 12($11) @@ -741,9 +731,8 @@ f10: # @f10 loop # label43: i32.load8_u $push18=, 0($10) tee_local $push17=, $11=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label42 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label42 # BB#3: # %while.body # in Loop: Header=BB11_2 Depth=1 i32.load $push24=, 12($12) @@ -810,9 +799,8 @@ f11: # @f11 loop # label47: i32.load8_u $push18=, 0($11) tee_local $push17=, $12=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label46 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label46 # BB#3: # %while.body # in Loop: Header=BB12_2 Depth=1 i32.load $push24=, 12($13) @@ -879,9 +867,8 @@ f12: # @f12 loop # label51: i32.load8_u $push18=, 0($12) tee_local $push17=, $13=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label50 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label50 # BB#3: # %while.body # in Loop: Header=BB13_2 Depth=1 i32.load $push24=, 12($14) @@ -948,9 +935,8 @@ f13: # @f13 loop # label55: i32.load8_u $push18=, 0($13) tee_local $push17=, $14=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label54 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label54 # BB#3: # %while.body # in Loop: Header=BB14_2 Depth=1 i32.load $push24=, 12($15) @@ -1017,9 +1003,8 @@ f14: # @f14 loop # label59: i32.load8_u $push18=, 0($14) tee_local $push17=, $15=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label58 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label58 # BB#3: # %while.body # in Loop: Header=BB15_2 Depth=1 i32.load $push24=, 12($16) @@ -1086,9 +1071,8 @@ f15: # @f15 loop # label63: i32.load8_u $push18=, 0($15) tee_local $push17=, $16=, $pop18 - i32.const $push26=, 0 - i32.eq $push27=, $pop17, $pop26 - br_if 2, $pop27 # 2: down to label62 + i32.eqz $push26=, $pop17 + br_if 2, $pop26 # 2: down to label62 # BB#3: # %while.body # in Loop: Header=BB16_2 Depth=1 i32.load $push24=, 12($17) diff --git a/test/torture-s/va-arg-21.c.s b/test/torture-s/va-arg-21.c.s index ab1901e67..05d484de1 100644 --- a/test/torture-s/va-arg-21.c.s +++ b/test/torture-s/va-arg-21.c.s @@ -33,23 +33,18 @@ doit: # @doit # BB#0: # %entry i32.const $push1=, 4 i32.call $2=, malloc@FUNCTION, $pop1 - i32.const $push10=, 4 - i32.call $3=, malloc@FUNCTION, $pop10 - i32.const $push2=, 0 - i32.load $push3=, stdout($pop2) - i32.const $push4=, .L.str - i32.store $push9=, 0($2), $1 - tee_local $push8=, $1=, $pop9 - i32.call $discard=, vfprintf@FUNCTION, $pop3, $pop4, $pop8 - i32.const $push7=, 0 - i32.load $push5=, stdout($pop7) - i32.const $push6=, .L.str + i32.const $push6=, 4 + i32.call $3=, malloc@FUNCTION, $pop6 + i32.const $push2=, .L.str + i32.store $push5=, 0($2), $1 + tee_local $push4=, $1=, $pop5 + i32.call $discard=, vprintf@FUNCTION, $pop2, $pop4 + i32.const $push3=, .L.str i32.store $push0=, 0($3), $1 - i32.call $discard=, vfprintf@FUNCTION, $pop5, $pop6, $pop0 + i32.call $discard=, vprintf@FUNCTION, $pop3, $pop0 block - i32.const $push11=, 0 - i32.eq $push12=, $3, $pop11 - br_if 0, $pop12 # 0: down to label0 + i32.eqz $push7=, $3 + br_if 0, $pop7 # 0: down to label0 # BB#1: # %if.end return .LBB1_2: # %if.then diff --git a/test/torture-s/va-arg-9.c.s b/test/torture-s/va-arg-9.c.s index d15dcc068..0ef71c8fb 100644 --- a/test/torture-s/va-arg-9.c.s +++ b/test/torture-s/va-arg-9.c.s @@ -44,9 +44,8 @@ fap: # @fap loop # label3: i32.load8_u $push8=, 0($1) tee_local $push7=, $0=, $pop8 - i32.const $push14=, 0 - i32.eq $push15=, $pop7, $pop14 - br_if 2, $pop15 # 2: down to label2 + i32.eqz $push14=, $pop7 + br_if 2, $pop14 # 2: down to label2 # BB#3: # %while.body # in Loop: Header=BB1_2 Depth=1 i32.load $push11=, 0($2) @@ -107,9 +106,8 @@ f0: # @f0 loop # label7: i32.load8_u $push17=, 0($0) tee_local $push16=, $3=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label6 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label6 # BB#3: # %while.body.i # in Loop: Header=BB2_2 Depth=1 i32.load $push20=, 0($1) @@ -174,9 +172,8 @@ f1: # @f1 loop # label11: i32.load8_u $push17=, 0($1) tee_local $push16=, $4=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label10 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label10 # BB#3: # %while.body.i # in Loop: Header=BB3_2 Depth=1 i32.load $push20=, 0($2) @@ -241,9 +238,8 @@ f2: # @f2 loop # label15: i32.load8_u $push17=, 0($2) tee_local $push16=, $5=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label14 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label14 # BB#3: # %while.body.i # in Loop: Header=BB4_2 Depth=1 i32.load $push20=, 0($3) @@ -308,9 +304,8 @@ f3: # @f3 loop # label19: i32.load8_u $push17=, 0($3) tee_local $push16=, $6=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label18 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label18 # BB#3: # %while.body.i # in Loop: Header=BB5_2 Depth=1 i32.load $push20=, 0($4) @@ -375,9 +370,8 @@ f4: # @f4 loop # label23: i32.load8_u $push17=, 0($4) tee_local $push16=, $7=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label22 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label22 # BB#3: # %while.body.i # in Loop: Header=BB6_2 Depth=1 i32.load $push20=, 0($5) @@ -442,9 +436,8 @@ f5: # @f5 loop # label27: i32.load8_u $push17=, 0($5) tee_local $push16=, $8=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label26 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label26 # BB#3: # %while.body.i # in Loop: Header=BB7_2 Depth=1 i32.load $push20=, 0($6) @@ -509,9 +502,8 @@ f6: # @f6 loop # label31: i32.load8_u $push17=, 0($6) tee_local $push16=, $9=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label30 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label30 # BB#3: # %while.body.i # in Loop: Header=BB8_2 Depth=1 i32.load $push20=, 0($7) @@ -576,9 +568,8 @@ f7: # @f7 loop # label35: i32.load8_u $push17=, 0($7) tee_local $push16=, $10=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label34 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label34 # BB#3: # %while.body.i # in Loop: Header=BB9_2 Depth=1 i32.load $push20=, 0($8) @@ -643,9 +634,8 @@ f8: # @f8 loop # label39: i32.load8_u $push17=, 0($8) tee_local $push16=, $11=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label38 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label38 # BB#3: # %while.body.i # in Loop: Header=BB10_2 Depth=1 i32.load $push20=, 0($9) @@ -710,9 +700,8 @@ f9: # @f9 loop # label43: i32.load8_u $push17=, 0($9) tee_local $push16=, $12=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label42 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label42 # BB#3: # %while.body.i # in Loop: Header=BB11_2 Depth=1 i32.load $push20=, 0($10) @@ -777,9 +766,8 @@ f10: # @f10 loop # label47: i32.load8_u $push17=, 0($10) tee_local $push16=, $13=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label46 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label46 # BB#3: # %while.body.i # in Loop: Header=BB12_2 Depth=1 i32.load $push20=, 0($11) @@ -844,9 +832,8 @@ f11: # @f11 loop # label51: i32.load8_u $push17=, 0($11) tee_local $push16=, $14=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label50 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label50 # BB#3: # %while.body.i # in Loop: Header=BB13_2 Depth=1 i32.load $push20=, 0($12) @@ -911,9 +898,8 @@ f12: # @f12 loop # label55: i32.load8_u $push17=, 0($12) tee_local $push16=, $15=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label54 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label54 # BB#3: # %while.body.i # in Loop: Header=BB14_2 Depth=1 i32.load $push20=, 0($13) @@ -978,9 +964,8 @@ f13: # @f13 loop # label59: i32.load8_u $push17=, 0($13) tee_local $push16=, $16=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label58 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label58 # BB#3: # %while.body.i # in Loop: Header=BB15_2 Depth=1 i32.load $push20=, 0($14) @@ -1045,9 +1030,8 @@ f14: # @f14 loop # label63: i32.load8_u $push17=, 0($14) tee_local $push16=, $17=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label62 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label62 # BB#3: # %while.body.i # in Loop: Header=BB16_2 Depth=1 i32.load $push20=, 0($15) @@ -1112,9 +1096,8 @@ f15: # @f15 loop # label67: i32.load8_u $push17=, 0($15) tee_local $push16=, $18=, $pop17 - i32.const $push23=, 0 - i32.eq $push24=, $pop16, $pop23 - br_if 2, $pop24 # 2: down to label66 + i32.eqz $push23=, $pop16 + br_if 2, $pop23 # 2: down to label66 # BB#3: # %while.body.i # in Loop: Header=BB17_2 Depth=1 i32.load $push20=, 0($16) diff --git a/test/torture-s/vfprintf-1.c.s b/test/torture-s/vfprintf-1.c.s index 5afda588d..e0d7ec322 100644 --- a/test/torture-s/vfprintf-1.c.s +++ b/test/torture-s/vfprintf-1.c.s @@ -8,12 +8,12 @@ inner: # @inner .param i32, i32 .local i32 # BB#0: # %entry - i32.const $push101=, __stack_pointer - i32.const $push98=, __stack_pointer - i32.load $push99=, 0($pop98) - i32.const $push100=, 16 - i32.sub $push105=, $pop99, $pop100 - i32.store $2=, 0($pop101), $pop105 + i32.const $push79=, __stack_pointer + i32.const $push76=, __stack_pointer + i32.load $push77=, 0($pop76) + i32.const $push78=, 16 + i32.sub $push83=, $pop77, $pop78 + i32.store $2=, 0($pop79), $pop83 i32.store $push0=, 12($2), $1 i32.store $discard=, 8($2), $pop0 block @@ -47,206 +47,193 @@ inner: # @inner # 9: down to label4 .LBB0_2: # %sw.bb end_block # label13: - i32.const $push89=, 0 - i32.load $push90=, stdout($pop89) - i32.const $push92=, .L.str - i32.load $push91=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop90, $pop92, $pop91 - i32.const $push107=, 0 - i32.load $push93=, stdout($pop107) - i32.const $push106=, .L.str - i32.load $push94=, 8($2) - i32.call $push95=, vfprintf@FUNCTION, $pop93, $pop106, $pop94 - i32.const $push96=, 5 - i32.eq $push97=, $pop95, $pop96 - br_if 11, $pop97 # 11: down to label1 + i32.const $push69=, 0 + i32.load $push86=, stdout($pop69) + tee_local $push85=, $0=, $pop86 + i32.const $push71=, .L.str + i32.load $push70=, 12($2) + i32.call $discard=, vfprintf@FUNCTION, $pop85, $pop71, $pop70 + i32.const $push84=, .L.str + i32.load $push72=, 8($2) + i32.call $push73=, vfprintf@FUNCTION, $0, $pop84, $pop72 + i32.const $push74=, 5 + i32.eq $push75=, $pop73, $pop74 + br_if 11, $pop75 # 11: down to label1 # BB#3: # %if.then call abort@FUNCTION unreachable .LBB0_4: # %sw.bb4 end_block # label12: - i32.const $push80=, 0 - i32.load $push81=, stdout($pop80) - i32.const $push83=, .L.str.1 - i32.load $push82=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop81, $pop83, $pop82 - i32.const $push109=, 0 - i32.load $push84=, stdout($pop109) - i32.const $push108=, .L.str.1 - i32.load $push85=, 8($2) - i32.call $push86=, vfprintf@FUNCTION, $pop84, $pop108, $pop85 - i32.const $push87=, 6 - i32.eq $push88=, $pop86, $pop87 - br_if 10, $pop88 # 10: down to label1 + i32.const $push62=, 0 + i32.load $push89=, stdout($pop62) + tee_local $push88=, $0=, $pop89 + i32.const $push64=, .L.str.1 + i32.load $push63=, 12($2) + i32.call $discard=, vfprintf@FUNCTION, $pop88, $pop64, $pop63 + i32.const $push87=, .L.str.1 + i32.load $push65=, 8($2) + i32.call $push66=, vfprintf@FUNCTION, $0, $pop87, $pop65 + i32.const $push67=, 6 + i32.eq $push68=, $pop66, $pop67 + br_if 10, $pop68 # 10: down to label1 # BB#5: # %if.then8 call abort@FUNCTION unreachable .LBB0_6: # %sw.bb10 end_block # label11: - i32.const $push71=, 0 - i32.load $push72=, stdout($pop71) - i32.const $push74=, .L.str.2 - i32.load $push73=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop72, $pop74, $pop73 - i32.const $push111=, 0 - i32.load $push75=, stdout($pop111) - i32.const $push110=, .L.str.2 - i32.load $push76=, 8($2) - i32.call $push77=, vfprintf@FUNCTION, $pop75, $pop110, $pop76 - i32.const $push78=, 1 - i32.eq $push79=, $pop77, $pop78 - br_if 9, $pop79 # 9: down to label1 + i32.const $push55=, 0 + i32.load $push92=, stdout($pop55) + tee_local $push91=, $0=, $pop92 + i32.const $push57=, .L.str.2 + i32.load $push56=, 12($2) + i32.call $discard=, vfprintf@FUNCTION, $pop91, $pop57, $pop56 + i32.const $push90=, .L.str.2 + i32.load $push58=, 8($2) + i32.call $push59=, vfprintf@FUNCTION, $0, $pop90, $pop58 + i32.const $push60=, 1 + i32.eq $push61=, $pop59, $pop60 + br_if 9, $pop61 # 9: down to label1 # BB#7: # %if.then14 call abort@FUNCTION unreachable .LBB0_8: # %sw.bb16 end_block # label10: - i32.const $push64=, 0 - i32.load $push65=, stdout($pop64) - i32.const $push67=, .L.str.3 - i32.load $push66=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop65, $pop67, $pop66 - i32.const $push113=, 0 - i32.load $push68=, stdout($pop113) - i32.const $push112=, .L.str.3 - i32.load $push69=, 8($2) - i32.call $push70=, vfprintf@FUNCTION, $pop68, $pop112, $pop69 - i32.const $push128=, 0 - i32.eq $push129=, $pop70, $pop128 - br_if 8, $pop129 # 8: down to label1 + i32.const $push50=, 0 + i32.load $push95=, stdout($pop50) + tee_local $push94=, $0=, $pop95 + i32.const $push52=, .L.str.3 + i32.load $push51=, 12($2) + i32.call $discard=, vfprintf@FUNCTION, $pop94, $pop52, $pop51 + i32.const $push93=, .L.str.3 + i32.load $push53=, 8($2) + i32.call $push54=, vfprintf@FUNCTION, $0, $pop93, $pop53 + i32.eqz $push117=, $pop54 + br_if 8, $pop117 # 8: down to label1 # BB#9: # %if.then20 call abort@FUNCTION unreachable .LBB0_10: # %sw.bb22 end_block # label9: - i32.const $push55=, 0 - i32.load $push56=, stdout($pop55) - i32.const $push58=, .L.str.4 - i32.load $push57=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop56, $pop58, $pop57 - i32.const $push115=, 0 - i32.load $push59=, stdout($pop115) - i32.const $push114=, .L.str.4 - i32.load $push60=, 8($2) - i32.call $push61=, vfprintf@FUNCTION, $pop59, $pop114, $pop60 - i32.const $push62=, 5 - i32.eq $push63=, $pop61, $pop62 - br_if 7, $pop63 # 7: down to label1 + i32.const $push43=, 0 + i32.load $push98=, stdout($pop43) + tee_local $push97=, $0=, $pop98 + i32.const $push45=, .L.str.4 + i32.load $push44=, 12($2) + i32.call $discard=, vfprintf@FUNCTION, $pop97, $pop45, $pop44 + i32.const $push96=, .L.str.4 + i32.load $push46=, 8($2) + i32.call $push47=, vfprintf@FUNCTION, $0, $pop96, $pop46 + i32.const $push48=, 5 + i32.eq $push49=, $pop47, $pop48 + br_if 7, $pop49 # 7: down to label1 # BB#11: # %if.then26 call abort@FUNCTION unreachable .LBB0_12: # %sw.bb28 end_block # label8: - i32.const $push46=, 0 - i32.load $push47=, stdout($pop46) - i32.const $push49=, .L.str.4 - i32.load $push48=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop47, $pop49, $pop48 - i32.const $push117=, 0 - i32.load $push50=, stdout($pop117) - i32.const $push116=, .L.str.4 - i32.load $push51=, 8($2) - i32.call $push52=, vfprintf@FUNCTION, $pop50, $pop116, $pop51 - i32.const $push53=, 6 - i32.eq $push54=, $pop52, $pop53 - br_if 6, $pop54 # 6: down to label1 + i32.const $push36=, 0 + i32.load $push101=, stdout($pop36) + tee_local $push100=, $0=, $pop101 + i32.const $push38=, .L.str.4 + i32.load $push37=, 12($2) + i32.call $discard=, vfprintf@FUNCTION, $pop100, $pop38, $pop37 + i32.const $push99=, .L.str.4 + i32.load $push39=, 8($2) + i32.call $push40=, vfprintf@FUNCTION, $0, $pop99, $pop39 + i32.const $push41=, 6 + i32.eq $push42=, $pop40, $pop41 + br_if 6, $pop42 # 6: down to label1 # BB#13: # %if.then32 call abort@FUNCTION unreachable .LBB0_14: # %sw.bb34 end_block # label7: - i32.const $push37=, 0 - i32.load $push38=, stdout($pop37) - i32.const $push40=, .L.str.4 - i32.load $push39=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop38, $pop40, $pop39 - i32.const $push119=, 0 - i32.load $push41=, stdout($pop119) - i32.const $push118=, .L.str.4 - i32.load $push42=, 8($2) - i32.call $push43=, vfprintf@FUNCTION, $pop41, $pop118, $pop42 - i32.const $push44=, 1 - i32.eq $push45=, $pop43, $pop44 - br_if 5, $pop45 # 5: down to label1 + i32.const $push29=, 0 + i32.load $push104=, stdout($pop29) + tee_local $push103=, $0=, $pop104 + i32.const $push31=, .L.str.4 + i32.load $push30=, 12($2) + i32.call $discard=, vfprintf@FUNCTION, $pop103, $pop31, $pop30 + i32.const $push102=, .L.str.4 + i32.load $push32=, 8($2) + i32.call $push33=, vfprintf@FUNCTION, $0, $pop102, $pop32 + i32.const $push34=, 1 + i32.eq $push35=, $pop33, $pop34 + br_if 5, $pop35 # 5: down to label1 # BB#15: # %if.then38 call abort@FUNCTION unreachable .LBB0_16: # %sw.bb40 end_block # label6: - i32.const $push30=, 0 - i32.load $push31=, stdout($pop30) - i32.const $push33=, .L.str.4 - i32.load $push32=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop31, $pop33, $pop32 - i32.const $push121=, 0 - i32.load $push34=, stdout($pop121) - i32.const $push120=, .L.str.4 - i32.load $push35=, 8($2) - i32.call $push36=, vfprintf@FUNCTION, $pop34, $pop120, $pop35 - i32.const $push130=, 0 - i32.eq $push131=, $pop36, $pop130 - br_if 4, $pop131 # 4: down to label1 + i32.const $push24=, 0 + i32.load $push107=, stdout($pop24) + tee_local $push106=, $0=, $pop107 + i32.const $push26=, .L.str.4 + i32.load $push25=, 12($2) + i32.call $discard=, vfprintf@FUNCTION, $pop106, $pop26, $pop25 + i32.const $push105=, .L.str.4 + i32.load $push27=, 8($2) + i32.call $push28=, vfprintf@FUNCTION, $0, $pop105, $pop27 + i32.eqz $push118=, $pop28 + br_if 4, $pop118 # 4: down to label1 # BB#17: # %if.then44 call abort@FUNCTION unreachable .LBB0_18: # %sw.bb52 end_block # label5: - i32.const $push12=, 0 - i32.load $push13=, stdout($pop12) - i32.const $push15=, .L.str.6 - i32.load $push14=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop13, $pop15, $pop14 - i32.const $push123=, 0 - i32.load $push16=, stdout($pop123) - i32.const $push122=, .L.str.6 - i32.load $push17=, 8($2) - i32.call $push18=, vfprintf@FUNCTION, $pop16, $pop122, $pop17 - i32.const $push19=, 7 - i32.eq $push20=, $pop18, $pop19 - br_if 3, $pop20 # 3: down to label1 + i32.const $push10=, 0 + i32.load $push110=, stdout($pop10) + tee_local $push109=, $0=, $pop110 + i32.const $push12=, .L.str.6 + i32.load $push11=, 12($2) + i32.call $discard=, vfprintf@FUNCTION, $pop109, $pop12, $pop11 + i32.const $push108=, .L.str.6 + i32.load $push13=, 8($2) + i32.call $push14=, vfprintf@FUNCTION, $0, $pop108, $pop13 + i32.const $push15=, 7 + i32.eq $push16=, $pop14, $pop15 + br_if 3, $pop16 # 3: down to label1 # BB#19: # %if.then56 call abort@FUNCTION unreachable .LBB0_20: # %sw.bb58 end_block # label4: i32.const $push3=, 0 - i32.load $push4=, stdout($pop3) - i32.const $push6=, .L.str.7 - i32.load $push5=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop4, $pop6, $pop5 - i32.const $push125=, 0 - i32.load $push7=, stdout($pop125) - i32.const $push124=, .L.str.7 - i32.load $push8=, 8($2) - i32.call $push9=, vfprintf@FUNCTION, $pop7, $pop124, $pop8 - i32.const $push10=, 2 - i32.eq $push11=, $pop9, $pop10 - br_if 2, $pop11 # 2: down to label1 + i32.load $push113=, stdout($pop3) + tee_local $push112=, $0=, $pop113 + i32.const $push5=, .L.str.7 + i32.load $push4=, 12($2) + i32.call $discard=, vfprintf@FUNCTION, $pop112, $pop5, $pop4 + i32.const $push111=, .L.str.7 + i32.load $push6=, 8($2) + i32.call $push7=, vfprintf@FUNCTION, $0, $pop111, $pop6 + i32.const $push8=, 2 + i32.eq $push9=, $pop7, $pop8 + br_if 2, $pop9 # 2: down to label1 .LBB0_21: # %sw.default end_block # label3: call abort@FUNCTION unreachable .LBB0_22: # %sw.bb46 end_block # label2: - i32.const $push21=, 0 - i32.load $push22=, stdout($pop21) - i32.const $push24=, .L.str.5 - i32.load $push23=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop22, $pop24, $pop23 - i32.const $push127=, 0 - i32.load $push25=, stdout($pop127) - i32.const $push126=, .L.str.5 - i32.load $push26=, 8($2) - i32.call $push27=, vfprintf@FUNCTION, $pop25, $pop126, $pop26 - i32.const $push28=, 1 - i32.ne $push29=, $pop27, $pop28 - br_if 1, $pop29 # 1: down to label0 + i32.const $push17=, 0 + i32.load $push116=, stdout($pop17) + tee_local $push115=, $0=, $pop116 + i32.const $push19=, .L.str.5 + i32.load $push18=, 12($2) + i32.call $discard=, vfprintf@FUNCTION, $pop115, $pop19, $pop18 + i32.const $push114=, .L.str.5 + i32.load $push20=, 8($2) + i32.call $push21=, vfprintf@FUNCTION, $0, $pop114, $pop20 + i32.const $push22=, 1 + i32.ne $push23=, $pop21, $pop22 + br_if 1, $pop23 # 1: down to label0 .LBB0_23: # %sw.epilog end_block # label1: - i32.const $push104=, __stack_pointer - i32.const $push102=, 16 - i32.add $push103=, $2, $pop102 - i32.store $discard=, 0($pop104), $pop103 + i32.const $push82=, __stack_pointer + i32.const $push80=, 16 + i32.add $push81=, $2, $pop80 + i32.store $discard=, 0($pop82), $pop81 return .LBB0_24: # %if.then50 end_block # label0: diff --git a/test/torture-s/vfprintf-chk-1.c.s b/test/torture-s/vfprintf-chk-1.c.s index d37880306..abcd6bdd8 100644 --- a/test/torture-s/vfprintf-chk-1.c.s +++ b/test/torture-s/vfprintf-chk-1.c.s @@ -34,18 +34,18 @@ inner: # @inner .param i32, i32 .local i32 # BB#0: # %entry - i32.const $push133=, __stack_pointer - i32.const $push130=, __stack_pointer - i32.load $push131=, 0($pop130) - i32.const $push132=, 16 - i32.sub $push137=, $pop131, $pop132 - i32.store $2=, 0($pop133), $pop137 + i32.const $push100=, __stack_pointer + i32.const $push97=, __stack_pointer + i32.load $push98=, 0($pop97) + i32.const $push99=, 16 + i32.sub $push104=, $pop98, $pop99 + i32.store $2=, 0($pop100), $pop104 i32.store $push0=, 12($2), $1 i32.store $discard=, 8($2), $pop0 block - i32.const $push12=, 10 - i32.gt_u $push13=, $0, $pop12 - br_if 0, $pop13 # 0: down to label1 + i32.const $push1=, 10 + i32.gt_u $push2=, $0, $pop1 + br_if 0, $pop2 # 0: down to label1 # BB#1: # %entry block block @@ -72,346 +72,334 @@ inner: # @inner # 10: down to label3 .LBB1_2: # %sw.bb end_block # label13: - i32.const $push141=, 0 - i32.const $push119=, 1 - i32.store $discard=, should_optimize($pop141), $pop119 - i32.const $push140=, 0 - i32.load $push120=, stdout($pop140) - i32.const $push139=, .L.str - i32.load $push121=, 12($2) - i32.call $discard=, __vfprintf_chk@FUNCTION, $pop120, $2, $pop139, $pop121 - i32.const $push138=, 0 - i32.load $push122=, should_optimize($pop138) - i32.const $push201=, 0 - i32.eq $push202=, $pop122, $pop201 - br_if 11, $pop202 # 11: down to label1 + i32.const $push110=, 0 + i32.const $push88=, 1 + i32.store $discard=, should_optimize($pop110), $pop88 + i32.const $push109=, 0 + i32.load $push108=, stdout($pop109) + tee_local $push107=, $0=, $pop108 + i32.const $push106=, .L.str + i32.load $push89=, 12($2) + i32.call $discard=, __vfprintf_chk@FUNCTION, $pop107, $2, $pop106, $pop89 + i32.const $push105=, 0 + i32.load $push90=, should_optimize($pop105) + i32.eqz $push190=, $pop90 + br_if 11, $pop190 # 11: down to label1 # BB#3: # %if.end - i32.const $push144=, 0 - i32.const $push143=, 0 - i32.store $push11=, should_optimize($pop144), $pop143 - i32.load $push123=, stdout($pop11) - i32.const $push142=, .L.str - i32.load $push124=, 8($2) - i32.call $push125=, __vfprintf_chk@FUNCTION, $pop123, $2, $pop142, $pop124 - i32.const $push126=, 5 - i32.ne $push127=, $pop125, $pop126 - br_if 11, $pop127 # 11: down to label1 + i32.const $push113=, 0 + i32.const $push112=, 0 + i32.store $discard=, should_optimize($pop113), $pop112 + i32.const $push111=, .L.str + i32.load $push91=, 8($2) + i32.call $push92=, __vfprintf_chk@FUNCTION, $0, $2, $pop111, $pop91 + i32.const $push93=, 5 + i32.ne $push94=, $pop92, $pop93 + br_if 11, $pop94 # 11: down to label1 # BB#4: # %if.end5 - i32.const $push128=, 0 - i32.load $push129=, should_optimize($pop128) - br_if 10, $pop129 # 10: down to label2 + i32.const $push95=, 0 + i32.load $push96=, should_optimize($pop95) + br_if 10, $pop96 # 10: down to label2 # BB#5: # %if.then7 call abort@FUNCTION unreachable .LBB1_6: # %sw.bb9 end_block # label12: - i32.const $push148=, 0 - i32.const $push108=, 1 - i32.store $discard=, should_optimize($pop148), $pop108 - i32.const $push147=, 0 - i32.load $push109=, stdout($pop147) - i32.const $push146=, .L.str.1 - i32.load $push110=, 12($2) - i32.call $discard=, __vfprintf_chk@FUNCTION, $pop109, $2, $pop146, $pop110 - i32.const $push145=, 0 - i32.load $push111=, should_optimize($pop145) - i32.const $push203=, 0 - i32.eq $push204=, $pop111, $pop203 - br_if 10, $pop204 # 10: down to label1 + i32.const $push119=, 0 + i32.const $push79=, 1 + i32.store $discard=, should_optimize($pop119), $pop79 + i32.const $push118=, 0 + i32.load $push117=, stdout($pop118) + tee_local $push116=, $0=, $pop117 + i32.const $push115=, .L.str.1 + i32.load $push80=, 12($2) + i32.call $discard=, __vfprintf_chk@FUNCTION, $pop116, $2, $pop115, $pop80 + i32.const $push114=, 0 + i32.load $push81=, should_optimize($pop114) + i32.eqz $push191=, $pop81 + br_if 10, $pop191 # 10: down to label1 # BB#7: # %if.end13 - i32.const $push151=, 0 - i32.const $push150=, 0 - i32.store $push10=, should_optimize($pop151), $pop150 - i32.load $push112=, stdout($pop10) - i32.const $push149=, .L.str.1 - i32.load $push113=, 8($2) - i32.call $push114=, __vfprintf_chk@FUNCTION, $pop112, $2, $pop149, $pop113 - i32.const $push115=, 6 - i32.ne $push116=, $pop114, $pop115 - br_if 10, $pop116 # 10: down to label1 + i32.const $push122=, 0 + i32.const $push121=, 0 + i32.store $discard=, should_optimize($pop122), $pop121 + i32.const $push120=, .L.str.1 + i32.load $push82=, 8($2) + i32.call $push83=, __vfprintf_chk@FUNCTION, $0, $2, $pop120, $pop82 + i32.const $push84=, 6 + i32.ne $push85=, $pop83, $pop84 + br_if 10, $pop85 # 10: down to label1 # BB#8: # %if.end17 - i32.const $push117=, 0 - i32.load $push118=, should_optimize($pop117) - br_if 9, $pop118 # 9: down to label2 + i32.const $push86=, 0 + i32.load $push87=, should_optimize($pop86) + br_if 9, $pop87 # 9: down to label2 # BB#9: # %if.then19 call abort@FUNCTION unreachable .LBB1_10: # %sw.bb21 end_block # label11: - i32.const $push155=, 0 - i32.const $push98=, 1 - i32.store $0=, should_optimize($pop155), $pop98 - i32.const $push154=, 0 - i32.load $push99=, stdout($pop154) - i32.const $push153=, .L.str.2 - i32.load $push100=, 12($2) - i32.call $discard=, __vfprintf_chk@FUNCTION, $pop99, $2, $pop153, $pop100 - i32.const $push152=, 0 - i32.load $push101=, should_optimize($pop152) - i32.const $push205=, 0 - i32.eq $push206=, $pop101, $pop205 - br_if 9, $pop206 # 9: down to label1 + i32.const $push128=, 0 + i32.const $push71=, 1 + i32.store $0=, should_optimize($pop128), $pop71 + i32.const $push127=, 0 + i32.load $push126=, stdout($pop127) + tee_local $push125=, $1=, $pop126 + i32.const $push124=, .L.str.2 + i32.load $push72=, 12($2) + i32.call $discard=, __vfprintf_chk@FUNCTION, $pop125, $2, $pop124, $pop72 + i32.const $push123=, 0 + i32.load $push73=, should_optimize($pop123) + i32.eqz $push192=, $pop73 + br_if 9, $pop192 # 9: down to label1 # BB#11: # %if.end25 - i32.const $push158=, 0 - i32.const $push157=, 0 - i32.store $push9=, should_optimize($pop158), $pop157 - i32.load $push102=, stdout($pop9) - i32.const $push156=, .L.str.2 - i32.load $push103=, 8($2) - i32.call $push104=, __vfprintf_chk@FUNCTION, $pop102, $2, $pop156, $pop103 - i32.ne $push105=, $pop104, $0 - br_if 9, $pop105 # 9: down to label1 + i32.const $push131=, 0 + i32.const $push130=, 0 + i32.store $discard=, should_optimize($pop131), $pop130 + i32.const $push129=, .L.str.2 + i32.load $push74=, 8($2) + i32.call $push75=, __vfprintf_chk@FUNCTION, $1, $2, $pop129, $pop74 + i32.ne $push76=, $pop75, $0 + br_if 9, $pop76 # 9: down to label1 # BB#12: # %if.end29 - i32.const $push106=, 0 - i32.load $push107=, should_optimize($pop106) - br_if 8, $pop107 # 8: down to label2 + i32.const $push77=, 0 + i32.load $push78=, should_optimize($pop77) + br_if 8, $pop78 # 8: down to label2 # BB#13: # %if.then31 call abort@FUNCTION unreachable .LBB1_14: # %sw.bb33 end_block # label10: - i32.const $push162=, 0 - i32.const $push89=, 1 - i32.store $discard=, should_optimize($pop162), $pop89 - i32.const $push161=, 0 - i32.load $push90=, stdout($pop161) - i32.const $push160=, .L.str.3 - i32.load $push91=, 12($2) - i32.call $discard=, __vfprintf_chk@FUNCTION, $pop90, $2, $pop160, $pop91 - i32.const $push159=, 0 - i32.load $push92=, should_optimize($pop159) - i32.const $push207=, 0 - i32.eq $push208=, $pop92, $pop207 - br_if 8, $pop208 # 8: down to label1 + i32.const $push137=, 0 + i32.const $push64=, 1 + i32.store $discard=, should_optimize($pop137), $pop64 + i32.const $push136=, 0 + i32.load $push135=, stdout($pop136) + tee_local $push134=, $0=, $pop135 + i32.const $push133=, .L.str.3 + i32.load $push65=, 12($2) + i32.call $discard=, __vfprintf_chk@FUNCTION, $pop134, $2, $pop133, $pop65 + i32.const $push132=, 0 + i32.load $push66=, should_optimize($pop132) + i32.eqz $push193=, $pop66 + br_if 8, $pop193 # 8: down to label1 # BB#15: # %if.end37 - i32.const $push165=, 0 - i32.const $push164=, 0 - i32.store $push8=, should_optimize($pop165), $pop164 - i32.load $push93=, stdout($pop8) - i32.const $push163=, .L.str.3 - i32.load $push94=, 8($2) - i32.call $push95=, __vfprintf_chk@FUNCTION, $pop93, $2, $pop163, $pop94 - br_if 8, $pop95 # 8: down to label1 + i32.const $push140=, 0 + i32.const $push139=, 0 + i32.store $discard=, should_optimize($pop140), $pop139 + i32.const $push138=, .L.str.3 + i32.load $push67=, 8($2) + i32.call $push68=, __vfprintf_chk@FUNCTION, $0, $2, $pop138, $pop67 + br_if 8, $pop68 # 8: down to label1 # BB#16: # %if.end41 - i32.const $push96=, 0 - i32.load $push97=, should_optimize($pop96) - br_if 7, $pop97 # 7: down to label2 + i32.const $push69=, 0 + i32.load $push70=, should_optimize($pop69) + br_if 7, $pop70 # 7: down to label2 # BB#17: # %if.then43 call abort@FUNCTION unreachable .LBB1_18: # %sw.bb45 end_block # label9: - i32.const $push78=, 0 - i32.const $push169=, 0 - i32.store $push168=, should_optimize($pop78), $pop169 - tee_local $push167=, $0=, $pop168 - i32.load $push79=, stdout($pop167) - i32.const $push166=, .L.str.4 - i32.load $push80=, 12($2) - i32.call $discard=, __vfprintf_chk@FUNCTION, $pop79, $2, $pop166, $pop80 - i32.load $push81=, should_optimize($0) - i32.const $push209=, 0 - i32.eq $push210=, $pop81, $pop209 - br_if 7, $pop210 # 7: down to label1 + i32.const $push55=, 0 + i32.const $push146=, 0 + i32.store $push145=, should_optimize($pop55), $pop146 + tee_local $push144=, $0=, $pop145 + i32.load $push143=, stdout($pop144) + tee_local $push142=, $1=, $pop143 + i32.const $push141=, .L.str.4 + i32.load $push56=, 12($2) + i32.call $discard=, __vfprintf_chk@FUNCTION, $pop142, $2, $pop141, $pop56 + i32.load $push57=, should_optimize($0) + i32.eqz $push194=, $pop57 + br_if 7, $pop194 # 7: down to label1 # BB#19: # %if.end49 - i32.store $push7=, should_optimize($0), $0 - i32.load $push82=, stdout($pop7) - i32.const $push170=, .L.str.4 - i32.load $push83=, 8($2) - i32.call $push84=, __vfprintf_chk@FUNCTION, $pop82, $2, $pop170, $pop83 - i32.const $push85=, 5 - i32.ne $push86=, $pop84, $pop85 - br_if 7, $pop86 # 7: down to label1 + i32.store $discard=, should_optimize($0), $0 + i32.const $push147=, .L.str.4 + i32.load $push58=, 8($2) + i32.call $push59=, __vfprintf_chk@FUNCTION, $1, $2, $pop147, $pop58 + i32.const $push60=, 5 + i32.ne $push61=, $pop59, $pop60 + br_if 7, $pop61 # 7: down to label1 # BB#20: # %if.end53 - i32.const $push87=, 0 - i32.load $push88=, should_optimize($pop87) - br_if 6, $pop88 # 6: down to label2 + i32.const $push62=, 0 + i32.load $push63=, should_optimize($pop62) + br_if 6, $pop63 # 6: down to label2 # BB#21: # %if.then55 call abort@FUNCTION unreachable .LBB1_22: # %sw.bb57 end_block # label8: - i32.const $push67=, 0 - i32.const $push174=, 0 - i32.store $push173=, should_optimize($pop67), $pop174 - tee_local $push172=, $0=, $pop173 - i32.load $push68=, stdout($pop172) - i32.const $push171=, .L.str.4 - i32.load $push69=, 12($2) - i32.call $discard=, __vfprintf_chk@FUNCTION, $pop68, $2, $pop171, $pop69 - i32.load $push70=, should_optimize($0) - i32.const $push211=, 0 - i32.eq $push212=, $pop70, $pop211 - br_if 6, $pop212 # 6: down to label1 + i32.const $push46=, 0 + i32.const $push153=, 0 + i32.store $push152=, should_optimize($pop46), $pop153 + tee_local $push151=, $0=, $pop152 + i32.load $push150=, stdout($pop151) + tee_local $push149=, $1=, $pop150 + i32.const $push148=, .L.str.4 + i32.load $push47=, 12($2) + i32.call $discard=, __vfprintf_chk@FUNCTION, $pop149, $2, $pop148, $pop47 + i32.load $push48=, should_optimize($0) + i32.eqz $push195=, $pop48 + br_if 6, $pop195 # 6: down to label1 # BB#23: # %if.end61 - i32.store $push6=, should_optimize($0), $0 - i32.load $push71=, stdout($pop6) - i32.const $push175=, .L.str.4 - i32.load $push72=, 8($2) - i32.call $push73=, __vfprintf_chk@FUNCTION, $pop71, $2, $pop175, $pop72 - i32.const $push74=, 6 - i32.ne $push75=, $pop73, $pop74 - br_if 6, $pop75 # 6: down to label1 + i32.store $discard=, should_optimize($0), $0 + i32.const $push154=, .L.str.4 + i32.load $push49=, 8($2) + i32.call $push50=, __vfprintf_chk@FUNCTION, $1, $2, $pop154, $pop49 + i32.const $push51=, 6 + i32.ne $push52=, $pop50, $pop51 + br_if 6, $pop52 # 6: down to label1 # BB#24: # %if.end65 - i32.const $push76=, 0 - i32.load $push77=, should_optimize($pop76) - br_if 5, $pop77 # 5: down to label2 + i32.const $push53=, 0 + i32.load $push54=, should_optimize($pop53) + br_if 5, $pop54 # 5: down to label2 # BB#25: # %if.then67 call abort@FUNCTION unreachable .LBB1_26: # %sw.bb69 end_block # label7: - i32.const $push56=, 0 - i32.const $push179=, 0 - i32.store $push178=, should_optimize($pop56), $pop179 - tee_local $push177=, $0=, $pop178 - i32.load $push57=, stdout($pop177) - i32.const $push176=, .L.str.4 - i32.load $push58=, 12($2) - i32.call $discard=, __vfprintf_chk@FUNCTION, $pop57, $2, $pop176, $pop58 - i32.load $push59=, should_optimize($0) - i32.const $push213=, 0 - i32.eq $push214=, $pop59, $pop213 - br_if 5, $pop214 # 5: down to label1 + i32.const $push37=, 0 + i32.const $push160=, 0 + i32.store $push159=, should_optimize($pop37), $pop160 + tee_local $push158=, $0=, $pop159 + i32.load $push157=, stdout($pop158) + tee_local $push156=, $1=, $pop157 + i32.const $push155=, .L.str.4 + i32.load $push38=, 12($2) + i32.call $discard=, __vfprintf_chk@FUNCTION, $pop156, $2, $pop155, $pop38 + i32.load $push39=, should_optimize($0) + i32.eqz $push196=, $pop39 + br_if 5, $pop196 # 5: down to label1 # BB#27: # %if.end73 - i32.store $push5=, should_optimize($0), $0 - i32.load $push60=, stdout($pop5) - i32.const $push180=, .L.str.4 - i32.load $push61=, 8($2) - i32.call $push62=, __vfprintf_chk@FUNCTION, $pop60, $2, $pop180, $pop61 - i32.const $push63=, 1 - i32.ne $push64=, $pop62, $pop63 - br_if 5, $pop64 # 5: down to label1 + i32.store $discard=, should_optimize($0), $0 + i32.const $push161=, .L.str.4 + i32.load $push40=, 8($2) + i32.call $push41=, __vfprintf_chk@FUNCTION, $1, $2, $pop161, $pop40 + i32.const $push42=, 1 + i32.ne $push43=, $pop41, $pop42 + br_if 5, $pop43 # 5: down to label1 # BB#28: # %if.end77 - i32.const $push65=, 0 - i32.load $push66=, should_optimize($pop65) - br_if 4, $pop66 # 4: down to label2 + i32.const $push44=, 0 + i32.load $push45=, should_optimize($pop44) + br_if 4, $pop45 # 4: down to label2 # BB#29: # %if.then79 call abort@FUNCTION unreachable .LBB1_30: # %sw.bb81 end_block # label6: - i32.const $push47=, 0 - i32.const $push184=, 0 - i32.store $push183=, should_optimize($pop47), $pop184 - tee_local $push182=, $0=, $pop183 - i32.load $push48=, stdout($pop182) - i32.const $push181=, .L.str.4 - i32.load $push49=, 12($2) - i32.call $discard=, __vfprintf_chk@FUNCTION, $pop48, $2, $pop181, $pop49 - i32.load $push50=, should_optimize($0) - i32.const $push215=, 0 - i32.eq $push216=, $pop50, $pop215 - br_if 4, $pop216 # 4: down to label1 + i32.const $push30=, 0 + i32.const $push167=, 0 + i32.store $push166=, should_optimize($pop30), $pop167 + tee_local $push165=, $0=, $pop166 + i32.load $push164=, stdout($pop165) + tee_local $push163=, $1=, $pop164 + i32.const $push162=, .L.str.4 + i32.load $push31=, 12($2) + i32.call $discard=, __vfprintf_chk@FUNCTION, $pop163, $2, $pop162, $pop31 + i32.load $push32=, should_optimize($0) + i32.eqz $push197=, $pop32 + br_if 4, $pop197 # 4: down to label1 # BB#31: # %if.end85 - i32.store $push4=, should_optimize($0), $0 - i32.load $push51=, stdout($pop4) - i32.const $push185=, .L.str.4 - i32.load $push52=, 8($2) - i32.call $push53=, __vfprintf_chk@FUNCTION, $pop51, $2, $pop185, $pop52 - br_if 4, $pop53 # 4: down to label1 + i32.store $discard=, should_optimize($0), $0 + i32.const $push168=, .L.str.4 + i32.load $push33=, 8($2) + i32.call $push34=, __vfprintf_chk@FUNCTION, $1, $2, $pop168, $pop33 + br_if 4, $pop34 # 4: down to label1 # BB#32: # %if.end89 - i32.const $push54=, 0 - i32.load $push55=, should_optimize($pop54) - br_if 3, $pop55 # 3: down to label2 + i32.const $push35=, 0 + i32.load $push36=, should_optimize($pop35) + br_if 3, $pop36 # 3: down to label2 # BB#33: # %if.then91 call abort@FUNCTION unreachable .LBB1_34: # %sw.bb93 end_block # label5: - i32.const $push36=, 0 - i32.const $push189=, 0 - i32.store $push188=, should_optimize($pop36), $pop189 - tee_local $push187=, $0=, $pop188 - i32.load $push37=, stdout($pop187) - i32.const $push186=, .L.str.5 - i32.load $push38=, 12($2) - i32.call $discard=, __vfprintf_chk@FUNCTION, $pop37, $2, $pop186, $pop38 - i32.load $push39=, should_optimize($0) - i32.const $push217=, 0 - i32.eq $push218=, $pop39, $pop217 - br_if 3, $pop218 # 3: down to label1 + i32.const $push21=, 0 + i32.const $push174=, 0 + i32.store $push173=, should_optimize($pop21), $pop174 + tee_local $push172=, $0=, $pop173 + i32.load $push171=, stdout($pop172) + tee_local $push170=, $1=, $pop171 + i32.const $push169=, .L.str.5 + i32.load $push22=, 12($2) + i32.call $discard=, __vfprintf_chk@FUNCTION, $pop170, $2, $pop169, $pop22 + i32.load $push23=, should_optimize($0) + i32.eqz $push198=, $pop23 + br_if 3, $pop198 # 3: down to label1 # BB#35: # %if.end97 - i32.store $push3=, should_optimize($0), $0 - i32.load $push40=, stdout($pop3) - i32.const $push190=, .L.str.5 - i32.load $push41=, 8($2) - i32.call $push42=, __vfprintf_chk@FUNCTION, $pop40, $2, $pop190, $pop41 - i32.const $push43=, 1 - i32.ne $push44=, $pop42, $pop43 - br_if 3, $pop44 # 3: down to label1 + i32.store $discard=, should_optimize($0), $0 + i32.const $push175=, .L.str.5 + i32.load $push24=, 8($2) + i32.call $push25=, __vfprintf_chk@FUNCTION, $1, $2, $pop175, $pop24 + i32.const $push26=, 1 + i32.ne $push27=, $pop25, $pop26 + br_if 3, $pop27 # 3: down to label1 # BB#36: # %if.end101 - i32.const $push45=, 0 - i32.load $push46=, should_optimize($pop45) - br_if 2, $pop46 # 2: down to label2 + i32.const $push28=, 0 + i32.load $push29=, should_optimize($pop28) + br_if 2, $pop29 # 2: down to label2 # BB#37: # %if.then103 call abort@FUNCTION unreachable .LBB1_38: # %sw.bb105 end_block # label4: - i32.const $push25=, 0 - i32.const $push194=, 0 - i32.store $push193=, should_optimize($pop25), $pop194 - tee_local $push192=, $0=, $pop193 - i32.load $push26=, stdout($pop192) - i32.const $push191=, .L.str.6 - i32.load $push27=, 12($2) - i32.call $discard=, __vfprintf_chk@FUNCTION, $pop26, $2, $pop191, $pop27 - i32.load $push28=, should_optimize($0) - i32.const $push219=, 0 - i32.eq $push220=, $pop28, $pop219 - br_if 2, $pop220 # 2: down to label1 + i32.const $push12=, 0 + i32.const $push181=, 0 + i32.store $push180=, should_optimize($pop12), $pop181 + tee_local $push179=, $0=, $pop180 + i32.load $push178=, stdout($pop179) + tee_local $push177=, $1=, $pop178 + i32.const $push176=, .L.str.6 + i32.load $push13=, 12($2) + i32.call $discard=, __vfprintf_chk@FUNCTION, $pop177, $2, $pop176, $pop13 + i32.load $push14=, should_optimize($0) + i32.eqz $push199=, $pop14 + br_if 2, $pop199 # 2: down to label1 # BB#39: # %if.end109 - i32.store $push2=, should_optimize($0), $0 - i32.load $push29=, stdout($pop2) - i32.const $push195=, .L.str.6 - i32.load $push30=, 8($2) - i32.call $push31=, __vfprintf_chk@FUNCTION, $pop29, $2, $pop195, $pop30 - i32.const $push32=, 7 - i32.ne $push33=, $pop31, $pop32 - br_if 2, $pop33 # 2: down to label1 + i32.store $discard=, should_optimize($0), $0 + i32.const $push182=, .L.str.6 + i32.load $push15=, 8($2) + i32.call $push16=, __vfprintf_chk@FUNCTION, $1, $2, $pop182, $pop15 + i32.const $push17=, 7 + i32.ne $push18=, $pop16, $pop17 + br_if 2, $pop18 # 2: down to label1 # BB#40: # %if.end113 - i32.const $push34=, 0 - i32.load $push35=, should_optimize($pop34) - br_if 1, $pop35 # 1: down to label2 + i32.const $push19=, 0 + i32.load $push20=, should_optimize($pop19) + br_if 1, $pop20 # 1: down to label2 # BB#41: # %if.then115 call abort@FUNCTION unreachable .LBB1_42: # %sw.bb117 end_block # label3: - i32.const $push14=, 0 - i32.const $push199=, 0 - i32.store $push198=, should_optimize($pop14), $pop199 - tee_local $push197=, $0=, $pop198 - i32.load $push15=, stdout($pop197) - i32.const $push196=, .L.str.7 - i32.load $push16=, 12($2) - i32.call $discard=, __vfprintf_chk@FUNCTION, $pop15, $2, $pop196, $pop16 - i32.load $push17=, should_optimize($0) - i32.const $push221=, 0 - i32.eq $push222=, $pop17, $pop221 - br_if 1, $pop222 # 1: down to label1 + i32.const $push3=, 0 + i32.const $push188=, 0 + i32.store $push187=, should_optimize($pop3), $pop188 + tee_local $push186=, $0=, $pop187 + i32.load $push185=, stdout($pop186) + tee_local $push184=, $1=, $pop185 + i32.const $push183=, .L.str.7 + i32.load $push4=, 12($2) + i32.call $discard=, __vfprintf_chk@FUNCTION, $pop184, $2, $pop183, $pop4 + i32.load $push5=, should_optimize($0) + i32.eqz $push200=, $pop5 + br_if 1, $pop200 # 1: down to label1 # BB#43: # %if.end121 - i32.store $push1=, should_optimize($0), $0 - i32.load $push18=, stdout($pop1) - i32.const $push200=, .L.str.7 - i32.load $push19=, 8($2) - i32.call $push20=, __vfprintf_chk@FUNCTION, $pop18, $2, $pop200, $pop19 - i32.const $push21=, 2 - i32.ne $push22=, $pop20, $pop21 - br_if 1, $pop22 # 1: down to label1 + i32.store $discard=, should_optimize($0), $0 + i32.const $push189=, .L.str.7 + i32.load $push6=, 8($2) + i32.call $push7=, __vfprintf_chk@FUNCTION, $1, $2, $pop189, $pop6 + i32.const $push8=, 2 + i32.ne $push9=, $pop7, $pop8 + br_if 1, $pop9 # 1: down to label1 # BB#44: # %if.end125 - i32.const $push23=, 0 - i32.load $push24=, should_optimize($pop23) - i32.const $push223=, 0 - i32.eq $push224=, $pop24, $pop223 - br_if 1, $pop224 # 1: down to label1 + i32.const $push10=, 0 + i32.load $push11=, should_optimize($pop10) + i32.eqz $push201=, $pop11 + br_if 1, $pop201 # 1: down to label1 .LBB1_45: # %sw.epilog end_block # label2: - i32.const $push136=, __stack_pointer - i32.const $push134=, 16 - i32.add $push135=, $2, $pop134 - i32.store $discard=, 0($pop136), $pop135 + i32.const $push103=, __stack_pointer + i32.const $push101=, 16 + i32.add $push102=, $2, $pop101 + i32.store $discard=, 0($pop103), $pop102 return .LBB1_46: # %sw.default end_block # label1: diff --git a/test/torture-s/vla-dealloc-1.c.s b/test/torture-s/vla-dealloc-1.c.s index 332cd0160..6f70512f9 100644 --- a/test/torture-s/vla-dealloc-1.c.s +++ b/test/torture-s/vla-dealloc-1.c.s @@ -8,43 +8,43 @@ main: # @main .result i32 .local i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push6=, __stack_pointer - i32.load $push8=, 0($pop6) - tee_local $push7=, $3=, $pop8 - copy_local $discard=, $pop7 - i32.const $2=, 0 + i32.const $push7=, __stack_pointer + i32.load $push9=, 0($pop7) + tee_local $push8=, $2=, $pop9 + copy_local $discard=, $pop8 + i32.const $1=, 0 .LBB0_1: # %if.end # =>This Inner Loop Header: Depth=1 loop # label0: - copy_local $1=, $3 - i32.const $push20=, 1000 - i32.rem_s $push0=, $2, $pop20 - i32.const $push19=, 2 - i32.shl $push18=, $pop0, $pop19 - tee_local $push17=, $4=, $pop18 - i32.const $push16=, 19 - i32.add $push1=, $pop17, $pop16 - i32.const $push15=, -16 - i32.and $push2=, $pop1, $pop15 - i32.sub $push14=, $3, $pop2 - tee_local $push13=, $3=, $pop14 - copy_local $discard=, $pop13 - i32.const $push12=, 1 - i32.store $0=, 0($3), $pop12 - i32.add $push3=, $3, $4 - i32.const $push11=, 2 - i32.store $discard=, 0($pop3), $pop11 - i32.const $push10=, 0 - i32.store $discard=, p($pop10), $3 - i32.add $2=, $2, $0 - copy_local $3=, $1 - i32.const $push9=, 1000000 - i32.ne $push4=, $2, $pop9 - br_if 0, $pop4 # 0: up to label0 + i32.const $push21=, 1000 + i32.rem_s $push0=, $1, $pop21 + i32.const $push20=, 2 + i32.shl $push19=, $pop0, $pop20 + tee_local $push18=, $4=, $pop19 + i32.const $push17=, 19 + i32.add $push2=, $pop18, $pop17 + i32.const $push16=, -16 + i32.and $push3=, $pop2, $pop16 + i32.sub $push15=, $2, $pop3 + tee_local $push14=, $3=, $pop15 + copy_local $discard=, $pop14 + i32.const $push13=, 1 + i32.store $0=, 0($3), $pop13 + i32.add $push4=, $3, $4 + i32.const $push12=, 2 + i32.store $discard=, 0($pop4), $pop12 + i32.const $push11=, 0 + i32.store $discard=, p($pop11), $3 + i32.add $1=, $1, $0 + copy_local $push1=, $2 + copy_local $2=, $pop1 + i32.const $push10=, 1000000 + i32.ne $push5=, $1, $pop10 + br_if 0, $pop5 # 0: up to label0 # BB#2: # %cleanup5 end_loop # label1: - i32.const $push5=, 0 - return $pop5 + i32.const $push6=, 0 + return $pop6 .endfunc .Lfunc_end0: .size main, .Lfunc_end0-main diff --git a/test/torture-s/vprintf-1.c.s b/test/torture-s/vprintf-1.c.s index cc3ecf1b6..08b919feb 100644 --- a/test/torture-s/vprintf-1.c.s +++ b/test/torture-s/vprintf-1.c.s @@ -8,12 +8,12 @@ inner: # @inner .param i32, i32 .local i32 # BB#0: # %entry - i32.const $push101=, __stack_pointer - i32.const $push98=, __stack_pointer - i32.load $push99=, 0($pop98) - i32.const $push100=, 16 - i32.sub $push105=, $pop99, $pop100 - i32.store $2=, 0($pop101), $pop105 + i32.const $push68=, __stack_pointer + i32.const $push65=, __stack_pointer + i32.load $push66=, 0($pop65) + i32.const $push67=, 16 + i32.sub $push72=, $pop66, $pop67 + i32.store $2=, 0($pop68), $pop72 i32.store $push0=, 12($2), $1 i32.store $discard=, 8($2), $pop0 block @@ -47,206 +47,160 @@ inner: # @inner # 9: down to label4 .LBB0_2: # %sw.bb end_block # label13: - i32.const $push90=, 0 - i32.load $push91=, stdout($pop90) - i32.const $push92=, .L.str - i32.load $push89=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop91, $pop92, $pop89 - i32.const $push107=, 0 - i32.load $push94=, stdout($pop107) - i32.const $push106=, .L.str - i32.load $push93=, 8($2) - i32.call $push95=, vfprintf@FUNCTION, $pop94, $pop106, $pop93 - i32.const $push96=, 5 - i32.eq $push97=, $pop95, $pop96 - br_if 11, $pop97 # 11: down to label1 + i32.const $push60=, .L.str + i32.load $push59=, 12($2) + i32.call $discard=, vprintf@FUNCTION, $pop60, $pop59 + i32.const $push73=, .L.str + i32.load $push61=, 8($2) + i32.call $push62=, vprintf@FUNCTION, $pop73, $pop61 + i32.const $push63=, 5 + i32.eq $push64=, $pop62, $pop63 + br_if 11, $pop64 # 11: down to label1 # BB#3: # %if.then call abort@FUNCTION unreachable .LBB0_4: # %sw.bb4 end_block # label12: - i32.const $push81=, 0 - i32.load $push82=, stdout($pop81) - i32.const $push83=, .L.str.1 - i32.load $push80=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop82, $pop83, $pop80 - i32.const $push109=, 0 - i32.load $push85=, stdout($pop109) - i32.const $push108=, .L.str.1 - i32.load $push84=, 8($2) - i32.call $push86=, vfprintf@FUNCTION, $pop85, $pop108, $pop84 - i32.const $push87=, 6 - i32.eq $push88=, $pop86, $pop87 - br_if 10, $pop88 # 10: down to label1 + i32.const $push54=, .L.str.1 + i32.load $push53=, 12($2) + i32.call $discard=, vprintf@FUNCTION, $pop54, $pop53 + i32.const $push74=, .L.str.1 + i32.load $push55=, 8($2) + i32.call $push56=, vprintf@FUNCTION, $pop74, $pop55 + i32.const $push57=, 6 + i32.eq $push58=, $pop56, $pop57 + br_if 10, $pop58 # 10: down to label1 # BB#5: # %if.then8 call abort@FUNCTION unreachable .LBB0_6: # %sw.bb10 end_block # label11: - i32.const $push72=, 0 - i32.load $push73=, stdout($pop72) - i32.const $push74=, .L.str.2 - i32.load $push71=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop73, $pop74, $pop71 - i32.const $push111=, 0 - i32.load $push76=, stdout($pop111) - i32.const $push110=, .L.str.2 - i32.load $push75=, 8($2) - i32.call $push77=, vfprintf@FUNCTION, $pop76, $pop110, $pop75 - i32.const $push78=, 1 - i32.eq $push79=, $pop77, $pop78 - br_if 9, $pop79 # 9: down to label1 + i32.const $push48=, .L.str.2 + i32.load $push47=, 12($2) + i32.call $discard=, vprintf@FUNCTION, $pop48, $pop47 + i32.const $push75=, .L.str.2 + i32.load $push49=, 8($2) + i32.call $push50=, vprintf@FUNCTION, $pop75, $pop49 + i32.const $push51=, 1 + i32.eq $push52=, $pop50, $pop51 + br_if 9, $pop52 # 9: down to label1 # BB#7: # %if.then14 call abort@FUNCTION unreachable .LBB0_8: # %sw.bb16 end_block # label10: - i32.const $push65=, 0 - i32.load $push66=, stdout($pop65) - i32.const $push67=, .L.str.3 - i32.load $push64=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop66, $pop67, $pop64 - i32.const $push113=, 0 - i32.load $push69=, stdout($pop113) - i32.const $push112=, .L.str.3 - i32.load $push68=, 8($2) - i32.call $push70=, vfprintf@FUNCTION, $pop69, $pop112, $pop68 - i32.const $push128=, 0 - i32.eq $push129=, $pop70, $pop128 - br_if 8, $pop129 # 8: down to label1 + i32.const $push44=, .L.str.3 + i32.load $push43=, 12($2) + i32.call $discard=, vprintf@FUNCTION, $pop44, $pop43 + i32.const $push76=, .L.str.3 + i32.load $push45=, 8($2) + i32.call $push46=, vprintf@FUNCTION, $pop76, $pop45 + i32.eqz $push84=, $pop46 + br_if 8, $pop84 # 8: down to label1 # BB#9: # %if.then20 call abort@FUNCTION unreachable .LBB0_10: # %sw.bb22 end_block # label9: - i32.const $push56=, 0 - i32.load $push57=, stdout($pop56) - i32.const $push58=, .L.str.4 - i32.load $push55=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop57, $pop58, $pop55 - i32.const $push115=, 0 - i32.load $push60=, stdout($pop115) - i32.const $push114=, .L.str.4 - i32.load $push59=, 8($2) - i32.call $push61=, vfprintf@FUNCTION, $pop60, $pop114, $pop59 - i32.const $push62=, 5 - i32.eq $push63=, $pop61, $pop62 - br_if 7, $pop63 # 7: down to label1 + i32.const $push38=, .L.str.4 + i32.load $push37=, 12($2) + i32.call $discard=, vprintf@FUNCTION, $pop38, $pop37 + i32.const $push77=, .L.str.4 + i32.load $push39=, 8($2) + i32.call $push40=, vprintf@FUNCTION, $pop77, $pop39 + i32.const $push41=, 5 + i32.eq $push42=, $pop40, $pop41 + br_if 7, $pop42 # 7: down to label1 # BB#11: # %if.then26 call abort@FUNCTION unreachable .LBB0_12: # %sw.bb28 end_block # label8: - i32.const $push47=, 0 - i32.load $push48=, stdout($pop47) - i32.const $push49=, .L.str.4 - i32.load $push46=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop48, $pop49, $pop46 - i32.const $push117=, 0 - i32.load $push51=, stdout($pop117) - i32.const $push116=, .L.str.4 - i32.load $push50=, 8($2) - i32.call $push52=, vfprintf@FUNCTION, $pop51, $pop116, $pop50 - i32.const $push53=, 6 - i32.eq $push54=, $pop52, $pop53 - br_if 6, $pop54 # 6: down to label1 + i32.const $push32=, .L.str.4 + i32.load $push31=, 12($2) + i32.call $discard=, vprintf@FUNCTION, $pop32, $pop31 + i32.const $push78=, .L.str.4 + i32.load $push33=, 8($2) + i32.call $push34=, vprintf@FUNCTION, $pop78, $pop33 + i32.const $push35=, 6 + i32.eq $push36=, $pop34, $pop35 + br_if 6, $pop36 # 6: down to label1 # BB#13: # %if.then32 call abort@FUNCTION unreachable .LBB0_14: # %sw.bb34 end_block # label7: - i32.const $push38=, 0 - i32.load $push39=, stdout($pop38) - i32.const $push40=, .L.str.4 - i32.load $push37=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop39, $pop40, $pop37 - i32.const $push119=, 0 - i32.load $push42=, stdout($pop119) - i32.const $push118=, .L.str.4 - i32.load $push41=, 8($2) - i32.call $push43=, vfprintf@FUNCTION, $pop42, $pop118, $pop41 - i32.const $push44=, 1 - i32.eq $push45=, $pop43, $pop44 - br_if 5, $pop45 # 5: down to label1 + i32.const $push26=, .L.str.4 + i32.load $push25=, 12($2) + i32.call $discard=, vprintf@FUNCTION, $pop26, $pop25 + i32.const $push79=, .L.str.4 + i32.load $push27=, 8($2) + i32.call $push28=, vprintf@FUNCTION, $pop79, $pop27 + i32.const $push29=, 1 + i32.eq $push30=, $pop28, $pop29 + br_if 5, $pop30 # 5: down to label1 # BB#15: # %if.then38 call abort@FUNCTION unreachable .LBB0_16: # %sw.bb40 end_block # label6: - i32.const $push31=, 0 - i32.load $push32=, stdout($pop31) - i32.const $push33=, .L.str.4 - i32.load $push30=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop32, $pop33, $pop30 - i32.const $push121=, 0 - i32.load $push35=, stdout($pop121) - i32.const $push120=, .L.str.4 - i32.load $push34=, 8($2) - i32.call $push36=, vfprintf@FUNCTION, $pop35, $pop120, $pop34 - i32.const $push130=, 0 - i32.eq $push131=, $pop36, $pop130 - br_if 4, $pop131 # 4: down to label1 + i32.const $push22=, .L.str.4 + i32.load $push21=, 12($2) + i32.call $discard=, vprintf@FUNCTION, $pop22, $pop21 + i32.const $push80=, .L.str.4 + i32.load $push23=, 8($2) + i32.call $push24=, vprintf@FUNCTION, $pop80, $pop23 + i32.eqz $push85=, $pop24 + br_if 4, $pop85 # 4: down to label1 # BB#17: # %if.then44 call abort@FUNCTION unreachable .LBB0_18: # %sw.bb52 end_block # label5: - i32.const $push13=, 0 - i32.load $push14=, stdout($pop13) - i32.const $push15=, .L.str.6 - i32.load $push12=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop14, $pop15, $pop12 - i32.const $push123=, 0 - i32.load $push17=, stdout($pop123) - i32.const $push122=, .L.str.6 - i32.load $push16=, 8($2) - i32.call $push18=, vfprintf@FUNCTION, $pop17, $pop122, $pop16 - i32.const $push19=, 7 - i32.eq $push20=, $pop18, $pop19 - br_if 3, $pop20 # 3: down to label1 + i32.const $push10=, .L.str.6 + i32.load $push9=, 12($2) + i32.call $discard=, vprintf@FUNCTION, $pop10, $pop9 + i32.const $push81=, .L.str.6 + i32.load $push11=, 8($2) + i32.call $push12=, vprintf@FUNCTION, $pop81, $pop11 + i32.const $push13=, 7 + i32.eq $push14=, $pop12, $pop13 + br_if 3, $pop14 # 3: down to label1 # BB#19: # %if.then56 call abort@FUNCTION unreachable .LBB0_20: # %sw.bb58 end_block # label4: - i32.const $push4=, 0 - i32.load $push5=, stdout($pop4) - i32.const $push6=, .L.str.7 + i32.const $push4=, .L.str.7 i32.load $push3=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop5, $pop6, $pop3 - i32.const $push125=, 0 - i32.load $push8=, stdout($pop125) - i32.const $push124=, .L.str.7 - i32.load $push7=, 8($2) - i32.call $push9=, vfprintf@FUNCTION, $pop8, $pop124, $pop7 - i32.const $push10=, 2 - i32.eq $push11=, $pop9, $pop10 - br_if 2, $pop11 # 2: down to label1 + i32.call $discard=, vprintf@FUNCTION, $pop4, $pop3 + i32.const $push82=, .L.str.7 + i32.load $push5=, 8($2) + i32.call $push6=, vprintf@FUNCTION, $pop82, $pop5 + i32.const $push7=, 2 + i32.eq $push8=, $pop6, $pop7 + br_if 2, $pop8 # 2: down to label1 .LBB0_21: # %sw.default end_block # label3: call abort@FUNCTION unreachable .LBB0_22: # %sw.bb46 end_block # label2: - i32.const $push22=, 0 - i32.load $push23=, stdout($pop22) - i32.const $push24=, .L.str.5 - i32.load $push21=, 12($2) - i32.call $discard=, vfprintf@FUNCTION, $pop23, $pop24, $pop21 - i32.const $push127=, 0 - i32.load $push26=, stdout($pop127) - i32.const $push126=, .L.str.5 - i32.load $push25=, 8($2) - i32.call $push27=, vfprintf@FUNCTION, $pop26, $pop126, $pop25 - i32.const $push28=, 1 - i32.ne $push29=, $pop27, $pop28 - br_if 1, $pop29 # 1: down to label0 + i32.const $push16=, .L.str.5 + i32.load $push15=, 12($2) + i32.call $discard=, vprintf@FUNCTION, $pop16, $pop15 + i32.const $push83=, .L.str.5 + i32.load $push17=, 8($2) + i32.call $push18=, vprintf@FUNCTION, $pop83, $pop17 + i32.const $push19=, 1 + i32.ne $push20=, $pop18, $pop19 + br_if 1, $pop20 # 1: down to label0 .LBB0_23: # %sw.epilog end_block # label1: - i32.const $push104=, __stack_pointer - i32.const $push102=, 16 - i32.add $push103=, $2, $pop102 - i32.store $discard=, 0($pop104), $pop103 + i32.const $push71=, __stack_pointer + i32.const $push69=, 16 + i32.add $push70=, $2, $pop69 + i32.store $discard=, 0($pop71), $pop70 return .LBB0_24: # %if.then50 end_block # label0: diff --git a/test/torture-s/vprintf-chk-1.c.s b/test/torture-s/vprintf-chk-1.c.s index be315ef74..a1a413c4e 100644 --- a/test/torture-s/vprintf-chk-1.c.s +++ b/test/torture-s/vprintf-chk-1.c.s @@ -9,17 +9,15 @@ __vprintf_chk: # @__vprintf_chk .result i32 # BB#0: # %entry block - i32.const $push4=, 0 - i32.load $push0=, should_optimize($pop4) + i32.const $push3=, 0 + i32.load $push0=, should_optimize($pop3) br_if 0, $pop0 # 0: down to label0 # BB#1: # %if.end - i32.const $push6=, 0 + i32.const $push4=, 0 i32.const $push1=, 1 - i32.store $discard=, should_optimize($pop6), $pop1 - i32.const $push5=, 0 - i32.load $push2=, stdout($pop5) - i32.call $push3=, vfprintf@FUNCTION, $pop2, $1, $2 - return $pop3 + i32.store $discard=, should_optimize($pop4), $pop1 + i32.call $push2=, vprintf@FUNCTION, $1, $2 + return $pop2 .LBB0_2: # %if.then end_block # label0: call abort@FUNCTION @@ -81,9 +79,8 @@ inner: # @inner i32.load $push89=, 12($2) i32.call $discard=, __vprintf_chk@FUNCTION, $2, $pop105, $pop89 i32.load $push90=, should_optimize($0) - i32.const $push147=, 0 - i32.eq $push148=, $pop90, $pop147 - br_if 11, $pop148 # 11: down to label1 + i32.eqz $push147=, $pop90 + br_if 11, $pop147 # 11: down to label1 # BB#3: # %if.end i32.store $discard=, should_optimize($0), $0 i32.const $push107=, .L.str @@ -109,9 +106,8 @@ inner: # @inner i32.call $discard=, __vprintf_chk@FUNCTION, $2, $pop109, $pop80 i32.const $push108=, 0 i32.load $push81=, should_optimize($pop108) - i32.const $push149=, 0 - i32.eq $push150=, $pop81, $pop149 - br_if 10, $pop150 # 10: down to label1 + i32.eqz $push148=, $pop81 + br_if 10, $pop148 # 10: down to label1 # BB#7: # %if.end13 i32.const $push113=, 0 i32.const $push112=, 0 @@ -139,9 +135,8 @@ inner: # @inner i32.call $discard=, __vprintf_chk@FUNCTION, $2, $pop115, $pop72 i32.const $push114=, 0 i32.load $push73=, should_optimize($pop114) - i32.const $push151=, 0 - i32.eq $push152=, $pop73, $pop151 - br_if 9, $pop152 # 9: down to label1 + i32.eqz $push149=, $pop73 + br_if 9, $pop149 # 9: down to label1 # BB#11: # %if.end25 i32.const $push119=, 0 i32.const $push118=, 0 @@ -168,9 +163,8 @@ inner: # @inner i32.call $discard=, __vprintf_chk@FUNCTION, $2, $pop121, $pop65 i32.const $push120=, 0 i32.load $push66=, should_optimize($pop120) - i32.const $push153=, 0 - i32.eq $push154=, $pop66, $pop153 - br_if 8, $pop154 # 8: down to label1 + i32.eqz $push150=, $pop66 + br_if 8, $pop150 # 8: down to label1 # BB#15: # %if.end37 i32.const $push125=, 0 i32.const $push124=, 0 @@ -195,9 +189,8 @@ inner: # @inner i32.load $push56=, 12($2) i32.call $discard=, __vprintf_chk@FUNCTION, $2, $pop126, $pop56 i32.load $push57=, should_optimize($0) - i32.const $push155=, 0 - i32.eq $push156=, $pop57, $pop155 - br_if 7, $pop156 # 7: down to label1 + i32.eqz $push151=, $pop57 + br_if 7, $pop151 # 7: down to label1 # BB#19: # %if.end49 i32.store $discard=, should_optimize($0), $0 i32.const $push128=, .L.str.4 @@ -222,9 +215,8 @@ inner: # @inner i32.load $push47=, 12($2) i32.call $discard=, __vprintf_chk@FUNCTION, $2, $pop129, $pop47 i32.load $push48=, should_optimize($0) - i32.const $push157=, 0 - i32.eq $push158=, $pop48, $pop157 - br_if 6, $pop158 # 6: down to label1 + i32.eqz $push152=, $pop48 + br_if 6, $pop152 # 6: down to label1 # BB#23: # %if.end61 i32.store $discard=, should_optimize($0), $0 i32.const $push131=, .L.str.4 @@ -249,9 +241,8 @@ inner: # @inner i32.load $push38=, 12($2) i32.call $discard=, __vprintf_chk@FUNCTION, $2, $pop132, $pop38 i32.load $push39=, should_optimize($0) - i32.const $push159=, 0 - i32.eq $push160=, $pop39, $pop159 - br_if 5, $pop160 # 5: down to label1 + i32.eqz $push153=, $pop39 + br_if 5, $pop153 # 5: down to label1 # BB#27: # %if.end73 i32.store $discard=, should_optimize($0), $0 i32.const $push134=, .L.str.4 @@ -276,9 +267,8 @@ inner: # @inner i32.load $push31=, 12($2) i32.call $discard=, __vprintf_chk@FUNCTION, $2, $pop135, $pop31 i32.load $push32=, should_optimize($0) - i32.const $push161=, 0 - i32.eq $push162=, $pop32, $pop161 - br_if 4, $pop162 # 4: down to label1 + i32.eqz $push154=, $pop32 + br_if 4, $pop154 # 4: down to label1 # BB#31: # %if.end85 i32.store $discard=, should_optimize($0), $0 i32.const $push137=, .L.str.4 @@ -301,9 +291,8 @@ inner: # @inner i32.load $push22=, 12($2) i32.call $discard=, __vprintf_chk@FUNCTION, $2, $pop138, $pop22 i32.load $push23=, should_optimize($0) - i32.const $push163=, 0 - i32.eq $push164=, $pop23, $pop163 - br_if 3, $pop164 # 3: down to label1 + i32.eqz $push155=, $pop23 + br_if 3, $pop155 # 3: down to label1 # BB#35: # %if.end97 i32.store $discard=, should_optimize($0), $0 i32.const $push140=, .L.str.5 @@ -328,9 +317,8 @@ inner: # @inner i32.load $push13=, 12($2) i32.call $discard=, __vprintf_chk@FUNCTION, $2, $pop141, $pop13 i32.load $push14=, should_optimize($0) - i32.const $push165=, 0 - i32.eq $push166=, $pop14, $pop165 - br_if 2, $pop166 # 2: down to label1 + i32.eqz $push156=, $pop14 + br_if 2, $pop156 # 2: down to label1 # BB#39: # %if.end109 i32.store $discard=, should_optimize($0), $0 i32.const $push143=, .L.str.6 @@ -355,9 +343,8 @@ inner: # @inner i32.load $push4=, 12($2) i32.call $discard=, __vprintf_chk@FUNCTION, $2, $pop144, $pop4 i32.load $push5=, should_optimize($0) - i32.const $push167=, 0 - i32.eq $push168=, $pop5, $pop167 - br_if 1, $pop168 # 1: down to label1 + i32.eqz $push157=, $pop5 + br_if 1, $pop157 # 1: down to label1 # BB#43: # %if.end121 i32.store $discard=, should_optimize($0), $0 i32.const $push146=, .L.str.7 @@ -369,9 +356,8 @@ inner: # @inner # BB#44: # %if.end125 i32.const $push10=, 0 i32.load $push11=, should_optimize($pop10) - i32.const $push169=, 0 - i32.eq $push170=, $pop11, $pop169 - br_if 1, $pop170 # 1: down to label1 + i32.eqz $push158=, $pop11 + br_if 1, $pop158 # 1: down to label1 .LBB1_45: # %sw.epilog end_block # label2: i32.const $push103=, __stack_pointer diff --git a/test/torture-s/vrp-7.c.s b/test/torture-s/vrp-7.c.s index 5824846c5..47701358e 100644 --- a/test/torture-s/vrp-7.c.s +++ b/test/torture-s/vrp-7.c.s @@ -37,9 +37,8 @@ main: # @main i32.load8_u $push1=, t($pop4) i32.const $push2=, 1 i32.and $push3=, $pop1, $pop2 - i32.const $push6=, 0 - i32.eq $push7=, $pop3, $pop6 - br_if 0, $pop7 # 0: down to label0 + i32.eqz $push6=, $pop3 + br_if 0, $pop6 # 0: down to label0 # BB#1: # %if.end i32.const $push5=, 0 return $pop5 diff --git a/test/torture-s/widechar-2.c.s b/test/torture-s/widechar-2.c.s deleted file mode 100644 index 73091858d..000000000 --- a/test/torture-s/widechar-2.c.s +++ /dev/null @@ -1,30 +0,0 @@ - .text - .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/widechar-2.c" - .section .text.main,"ax",@progbits - .hidden main - .globl main - .type main,@function -main: # @main - .result i32 -# BB#0: # %entry - i32.const $push0=, 0 - call exit@FUNCTION, $pop0 - unreachable - .endfunc -.Lfunc_end0: - .size main, .Lfunc_end0-main - - .hidden ws # @ws - .type ws,@object - .section .rodata.ws,"a",@progbits - .globl ws - .p2align 4 -ws: - .int32 102 # 0x66 - .int32 111 # 0x6f - .int32 111 # 0x6f - .int32 0 # 0x0 - .size ws, 16 - - - .ident "clang version 3.9.0 " |