diff options
Diffstat (limited to 'test/torture-s/pr34456.c.s')
-rw-r--r-- | test/torture-s/pr34456.c.s | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/test/torture-s/pr34456.c.s b/test/torture-s/pr34456.c.s index c7c5a4e03..7bf43e193 100644 --- a/test/torture-s/pr34456.c.s +++ b/test/torture-s/pr34456.c.s @@ -34,17 +34,17 @@ bad_compare: # @bad_compare .type main,@function main: # @main .result i32 - .local i32 # BB#0: # %entry i32.const $push1=, array i32.const $push3=, 2 i32.const $push2=, 8 i32.const $push0=, compare@FUNCTION call qsort@FUNCTION, $pop1, $pop3, $pop2, $pop0 - i32.const $0=, 0 - i32.load $push4=, errors($0) - i32.eq $push5=, $pop4, $0 - return $pop5 + i32.const $push4=, 0 + i32.load $push5=, errors($pop4) + i32.const $push7=, 0 + i32.eq $push6=, $pop5, $pop7 + return $pop6 .endfunc .Lfunc_end2: .size main, .Lfunc_end2-main @@ -56,28 +56,30 @@ compare: # @compare .result i32 .local i32 # BB#0: # %entry - i32.load $1=, 0($1) i32.load $2=, 4($0) block - i32.const $push6=, 0 - i32.eq $push7=, $1, $pop6 - br_if $pop7, 0 # 0: down to label0 + i32.load $push0=, 0($1) + tee_local $push8=, $1=, $pop0 + i32.const $push10=, 0 + i32.eq $push11=, $pop8, $pop10 + br_if $pop11, 0 # 0: down to label0 # BB#1: # %land.lhs.true - i32.load $push0=, 0($0) - i32.call_indirect $push1=, $2, $pop0 - i32.const $push8=, 0 - i32.eq $push9=, $pop1, $pop8 - br_if $pop9, 0 # 0: down to label0 + i32.load $push1=, 0($0) + i32.call_indirect $push2=, $2, $pop1 + i32.const $push12=, 0 + i32.eq $push13=, $pop2, $pop12 + br_if $pop13, 0 # 0: down to label0 # BB#2: # %if.then - i32.const $0=, 0 - i32.load $push2=, errors($0) - i32.const $push3=, 1 - i32.add $push4=, $pop2, $pop3 - i32.store $discard=, errors($0), $pop4 + i32.const $push3=, 0 + i32.const $push9=, 0 + i32.load $push4=, errors($pop9) + i32.const $push5=, 1 + i32.add $push6=, $pop4, $pop5 + i32.store $discard=, errors($pop3), $pop6 .LBB3_3: # %if.end end_block # label0: - i32.call_indirect $push5=, $2, $1 - return $pop5 + i32.call_indirect $push7=, $2, $1 + return $pop7 .endfunc .Lfunc_end3: .size compare, .Lfunc_end3-compare @@ -86,7 +88,7 @@ compare: # @compare .type array,@object .section .data.array,"aw",@progbits .globl array - .align 4 + .p2align 4 array: .int32 1 # 0x1 .int32 bad_compare@FUNCTION @@ -98,7 +100,7 @@ array: .type errors,@object .section .bss.errors,"aw",@nobits .globl errors - .align 2 + .p2align 2 errors: .int32 0 # 0x0 .size errors, 4 |