diff options
Diffstat (limited to 'test/torture-s/compare-1.c.s')
-rw-r--r-- | test/torture-s/compare-1.c.s | 135 |
1 files changed, 81 insertions, 54 deletions
diff --git a/test/torture-s/compare-1.c.s b/test/torture-s/compare-1.c.s index 1303ff8df..91277dea1 100644 --- a/test/torture-s/compare-1.c.s +++ b/test/torture-s/compare-1.c.s @@ -9,77 +9,89 @@ ieq: # @ieq .result i32 # BB#0: # %entry i32.ne $1=, $0, $1 - block .LBB0_20 - block .LBB0_4 - block .LBB0_3 + block + block + block i32.const $push0=, 0 i32.eq $push1=, $1, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label2 # BB#1: # %if.else i32.const $push2=, 0 i32.eq $push3=, $2, $pop2 - br_if $pop3, .LBB0_4 + br_if $pop3, 1 # 1: down to label1 # BB#2: # %if.then4 call abort@FUNCTION unreachable .LBB0_3: # %if.then + end_block # label2: i32.const $push4=, 0 i32.eq $push5=, $2, $pop4 - br_if $pop5, .LBB0_20 + br_if $pop5, 1 # 1: down to label0 .LBB0_4: # %if.end6 - block .LBB0_19 - block .LBB0_8 - block .LBB0_7 - br_if $1, .LBB0_7 + end_block # label1: + block + block + block + br_if $1, 0 # 0: down to label5 # BB#5: # %if.then10 - br_if $2, .LBB0_8 + br_if $2, 1 # 1: down to label4 # BB#6: # %if.then12 call abort@FUNCTION unreachable .LBB0_7: # %if.else14 - br_if $2, .LBB0_19 + end_block # label5: + br_if $2, 1 # 1: down to label3 .LBB0_8: # %if.end18 - block .LBB0_18 - block .LBB0_12 - block .LBB0_11 + end_block # label4: + block + block + block i32.const $push6=, 0 i32.eq $push7=, $1, $pop6 - br_if $pop7, .LBB0_11 + br_if $pop7, 0 # 0: down to label8 # BB#9: # %if.else26 i32.const $push8=, 0 i32.eq $push9=, $2, $pop8 - br_if $pop9, .LBB0_12 + br_if $pop9, 1 # 1: down to label7 # BB#10: # %if.then28 call abort@FUNCTION unreachable .LBB0_11: # %if.then22 + end_block # label8: i32.const $push10=, 0 i32.eq $push11=, $2, $pop10 - br_if $pop11, .LBB0_18 + br_if $pop11, 1 # 1: down to label6 .LBB0_12: # %if.end30 - block .LBB0_17 - block .LBB0_16 - block .LBB0_15 - br_if $1, .LBB0_15 + end_block # label7: + block + block + block + br_if $1, 0 # 0: down to label11 # BB#13: # %if.then34 - br_if $2, .LBB0_16 + br_if $2, 1 # 1: down to label10 # BB#14: # %if.then36 call abort@FUNCTION unreachable .LBB0_15: # %if.else38 - br_if $2, .LBB0_17 + end_block # label11: + br_if $2, 1 # 1: down to label9 .LBB0_16: # %if.end42 + end_block # label10: return $2 .LBB0_17: # %if.then40 + end_block # label9: call abort@FUNCTION unreachable .LBB0_18: # %if.then24 + end_block # label6: call abort@FUNCTION unreachable .LBB0_19: # %if.then16 + end_block # label3: call abort@FUNCTION unreachable .LBB0_20: # %if.then2 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -93,25 +105,28 @@ ine: # @ine .param i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB1_5 - block .LBB1_4 - block .LBB1_3 + block + block + block i32.ne $push0=, $0, $1 - br_if $pop0, .LBB1_3 + br_if $pop0, 0 # 0: down to label14 # BB#1: # %if.else i32.const $push1=, 0 i32.eq $push2=, $2, $pop1 - br_if $pop2, .LBB1_4 + br_if $pop2, 1 # 1: down to label13 # BB#2: # %if.then4 call abort@FUNCTION unreachable .LBB1_3: # %if.then + end_block # label14: i32.const $push3=, 0 i32.eq $push4=, $2, $pop3 - br_if $pop4, .LBB1_5 + br_if $pop4, 1 # 1: down to label12 .LBB1_4: # %if.end6 + end_block # label13: return $2 .LBB1_5: # %if.then2 + end_block # label12: call abort@FUNCTION unreachable .Lfunc_end1: @@ -125,21 +140,24 @@ ilt: # @ilt .param i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB2_5 - block .LBB2_4 - block .LBB2_3 + block + block + block i32.ge_s $push0=, $0, $1 - br_if $pop0, .LBB2_3 + br_if $pop0, 0 # 0: down to label17 # BB#1: # %if.then - br_if $2, .LBB2_4 + br_if $2, 1 # 1: down to label16 # BB#2: # %if.then2 call abort@FUNCTION unreachable .LBB2_3: # %if.else - br_if $2, .LBB2_5 + end_block # label17: + br_if $2, 1 # 1: down to label15 .LBB2_4: # %if.end6 + end_block # label16: return $2 .LBB2_5: # %if.then4 + end_block # label15: call abort@FUNCTION unreachable .Lfunc_end2: @@ -153,25 +171,28 @@ ile: # @ile .param i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB3_5 - block .LBB3_4 - block .LBB3_3 + block + block + block i32.le_s $push0=, $0, $1 - br_if $pop0, .LBB3_3 + br_if $pop0, 0 # 0: down to label20 # BB#1: # %if.else i32.const $push1=, 0 i32.eq $push2=, $2, $pop1 - br_if $pop2, .LBB3_4 + br_if $pop2, 1 # 1: down to label19 # BB#2: # %if.then4 call abort@FUNCTION unreachable .LBB3_3: # %if.then + end_block # label20: i32.const $push3=, 0 i32.eq $push4=, $2, $pop3 - br_if $pop4, .LBB3_5 + br_if $pop4, 1 # 1: down to label18 .LBB3_4: # %if.end6 + end_block # label19: return $2 .LBB3_5: # %if.then2 + end_block # label18: call abort@FUNCTION unreachable .Lfunc_end3: @@ -185,21 +206,24 @@ igt: # @igt .param i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB4_5 - block .LBB4_4 - block .LBB4_3 + block + block + block i32.le_s $push0=, $0, $1 - br_if $pop0, .LBB4_3 + br_if $pop0, 0 # 0: down to label23 # BB#1: # %if.then - br_if $2, .LBB4_4 + br_if $2, 1 # 1: down to label22 # BB#2: # %if.then2 call abort@FUNCTION unreachable .LBB4_3: # %if.else - br_if $2, .LBB4_5 + end_block # label23: + br_if $2, 1 # 1: down to label21 .LBB4_4: # %if.end6 + end_block # label22: return $2 .LBB4_5: # %if.then4 + end_block # label21: call abort@FUNCTION unreachable .Lfunc_end4: @@ -213,25 +237,28 @@ ige: # @ige .param i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB5_5 - block .LBB5_4 - block .LBB5_3 + block + block + block i32.ge_s $push0=, $0, $1 - br_if $pop0, .LBB5_3 + br_if $pop0, 0 # 0: down to label26 # BB#1: # %if.else i32.const $push1=, 0 i32.eq $push2=, $2, $pop1 - br_if $pop2, .LBB5_4 + br_if $pop2, 1 # 1: down to label25 # BB#2: # %if.then4 call abort@FUNCTION unreachable .LBB5_3: # %if.then + end_block # label26: i32.const $push3=, 0 i32.eq $push4=, $2, $pop3 - br_if $pop4, .LBB5_5 + br_if $pop4, 1 # 1: down to label24 .LBB5_4: # %if.end6 + end_block # label25: return $2 .LBB5_5: # %if.then2 + end_block # label24: call abort@FUNCTION unreachable .Lfunc_end5: |