diff options
Diffstat (limited to 'test/torture-s/pr59221.c.s')
-rw-r--r-- | test/torture-s/pr59221.c.s | 62 |
1 files changed, 36 insertions, 26 deletions
diff --git a/test/torture-s/pr59221.c.s b/test/torture-s/pr59221.c.s index 2e722d129..bf3d3d522 100644 --- a/test/torture-s/pr59221.c.s +++ b/test/torture-s/pr59221.c.s @@ -6,35 +6,45 @@ .type main,@function main: # @main .result i32 - .local i32, i32, i32, i32 + .local i32 # BB#0: # %entry - i32.const $0=, 0 block - i32.load $push0=, b($0) - i32.const $push9=, 0 - i32.eq $push10=, $pop0, $pop9 - br_if $pop10, 0 # 0: down to label0 + i32.const $push14=, 0 + i32.load $push0=, b($pop14) + i32.const $push24=, 0 + i32.eq $push25=, $pop0, $pop24 + br_if $pop25, 0 # 0: down to label0 # BB#1: # %for.inc.preheader - i32.store $discard=, b($0), $0 + i32.const $push16=, 0 + i32.const $push15=, 0 + i32.store $discard=, b($pop16), $pop15 .LBB0_2: # %for.end end_block # label0: - i32.load $1=, a($0) - i32.const $2=, 16 - i32.const $3=, 65535 + i32.const $push23=, 0 + i32.const $push22=, 0 + i32.const $push21=, 0 + i32.load $push1=, a($pop21) + tee_local $push20=, $0=, $pop1 + i32.const $push5=, 65535 + i32.and $push6=, $pop20, $pop5 + i32.const $push2=, 16 + i32.shl $push3=, $0, $pop2 + i32.const $push19=, 16 + i32.shr_s $push4=, $pop3, $pop19 + i32.const $push7=, -32768 + i32.select $push8=, $pop6, $pop4, $pop7 + tee_local $push18=, $0=, $pop8 + i32.store16 $push10=, e($pop22), $pop18 + i32.store $discard=, d($pop23), $pop10 block - i32.and $push3=, $1, $3 - i32.shl $push1=, $1, $2 - i32.shr_s $push2=, $pop1, $2 - i32.const $push4=, -32768 - i32.select $1=, $pop3, $pop2, $pop4 - i32.store16 $push6=, e($0), $1 - i32.store $discard=, d($0), $pop6 - i32.and $push5=, $1, $3 - i32.const $push7=, 1 - i32.ne $push8=, $pop5, $pop7 - br_if $pop8, 0 # 0: down to label1 + i32.const $push17=, 65535 + i32.and $push9=, $0, $pop17 + i32.const $push11=, 1 + i32.ne $push12=, $pop9, $pop11 + br_if $pop12, 0 # 0: down to label1 # BB#3: # %if.end - return $0 + i32.const $push13=, 0 + return $pop13 .LBB0_4: # %if.then end_block # label1: call abort@FUNCTION @@ -47,7 +57,7 @@ main: # @main .type a,@object .section .data.a,"aw",@progbits .globl a - .align 2 + .p2align 2 a: .int32 1 # 0x1 .size a, 4 @@ -56,7 +66,7 @@ a: .type b,@object .section .bss.b,"aw",@nobits .globl b - .align 2 + .p2align 2 b: .int32 0 # 0x0 .size b, 4 @@ -65,7 +75,7 @@ b: .type e,@object .section .bss.e,"aw",@nobits .globl e - .align 1 + .p2align 1 e: .int16 0 # 0x0 .size e, 2 @@ -74,7 +84,7 @@ e: .type d,@object .section .bss.d,"aw",@nobits .globl d - .align 2 + .p2align 2 d: .int32 0 # 0x0 .size d, 4 |