summaryrefslogtreecommitdiff
path: root/test/torture-s/20010409-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20010409-1.c.s')
-rw-r--r--test/torture-s/20010409-1.c.s44
1 files changed, 24 insertions, 20 deletions
diff --git a/test/torture-s/20010409-1.c.s b/test/torture-s/20010409-1.c.s
index 7c581e38e..4510d0344 100644
--- a/test/torture-s/20010409-1.c.s
+++ b/test/torture-s/20010409-1.c.s
@@ -46,20 +46,22 @@ bar: # @bar
.type test,@function
test: # @test
.param i32, i32
- .local i32, i32
+ .local i32
# BB#0: # %entry
- i32.const $2=, 0
- i32.load $3=, b($2)
- block
+ i32.const $push2=, 0
+ i32.load $2=, b($pop2)
+ i32.const $push1=, 0
i32.const $push0=, 5000
- i32.store $discard=, c($2), $pop0
- br_if $3, 0 # 0: down to label1
+ i32.store $discard=, c($pop1), $pop0
+ block
+ br_if $2, 0 # 0: down to label1
# BB#1: # %if.then.i
call abort@FUNCTION
unreachable
.LBB2_2: # %if.end.i
end_block # label1:
- call exit@FUNCTION, $2
+ i32.const $push3=, 0
+ call exit@FUNCTION, $pop3
unreachable
.endfunc
.Lfunc_end2:
@@ -73,21 +75,23 @@ main: # @main
.result i32
.local i32, i32
# BB#0: # %entry
- i32.const $0=, 0
- i32.store $discard=, d+4($0), $0
- i32.load $1=, b($0)
+ i32.const $push0=, 0
+ i32.const $push5=, 0
+ i32.store $push1=, d+4($pop0), $pop5
+ tee_local $push4=, $1=, $pop1
+ i32.load $0=, b($pop4)
+ i32.const $push2=, a
+ i32.store $discard=, d($1), $pop2
+ i32.const $push3=, 5000
+ i32.store $discard=, c($1), $pop3
block
- i32.const $push0=, a
- i32.store $discard=, d($0), $pop0
- i32.const $push1=, 5000
- i32.store $discard=, c($0), $pop1
- br_if $1, 0 # 0: down to label2
+ br_if $0, 0 # 0: down to label2
# BB#1: # %if.then.i.i
call abort@FUNCTION
unreachable
.LBB3_2: # %if.end.i.i
end_block # label2:
- call exit@FUNCTION, $0
+ call exit@FUNCTION, $1
unreachable
.endfunc
.Lfunc_end3:
@@ -97,7 +101,7 @@ main: # @main
.type b,@object
.section .data.b,"aw",@progbits
.globl b
- .align 2
+ .p2align 2
b:
.int32 1 # 0x1
.size b, 4
@@ -106,7 +110,7 @@ b:
.type c,@object
.section .bss.c,"aw",@nobits
.globl c
- .align 2
+ .p2align 2
c:
.int32 0 # 0x0
.size c, 4
@@ -115,7 +119,7 @@ c:
.type d,@object
.section .bss.d,"aw",@nobits
.globl d
- .align 2
+ .p2align 2
d:
.skip 8
.size d, 8
@@ -124,7 +128,7 @@ d:
.type a,@object
.section .bss.a,"aw",@nobits
.globl a
- .align 2
+ .p2align 2
a:
.int32 0
.size a, 4