summaryrefslogtreecommitdiff
path: root/test/torture-s/20111227-3.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20111227-3.c.s')
-rw-r--r--test/torture-s/20111227-3.c.s76
1 files changed, 41 insertions, 35 deletions
diff --git a/test/torture-s/20111227-3.c.s b/test/torture-s/20111227-3.c.s
index f3fcfcceb..d99458a90 100644
--- a/test/torture-s/20111227-3.c.s
+++ b/test/torture-s/20111227-3.c.s
@@ -6,33 +6,34 @@
.type bar,@function
bar: # @bar
.param i32
- .local i32, i32
# BB#0: # %entry
- i32.const $1=, 0
block
i32.const $push1=, 2
i32.ne $push2=, $0, $pop1
br_if $pop2, 0 # 0: down to label0
# BB#1: # %entry
- i32.const $2=, 65535
- i32.load16_u $push0=, s($1)
- i32.and $push3=, $pop0, $2
- i32.eq $push4=, $pop3, $2
- br_if $pop4, 0 # 0: down to label0
+ i32.const $push16=, 0
+ i32.load16_u $push0=, s($pop16)
+ i32.const $push3=, 65535
+ i32.and $push4=, $pop0, $pop3
+ i32.const $push15=, 65535
+ i32.eq $push5=, $pop4, $pop15
+ br_if $pop5, 0 # 0: down to label0
# BB#2: # %if.then
call abort@FUNCTION
unreachable
.LBB0_3: # %if.end
end_block # label0:
block
- i32.const $push6=, 1
- i32.ne $push7=, $0, $pop6
- br_if $pop7, 0 # 0: down to label1
+ i32.const $push7=, 1
+ i32.ne $push8=, $0, $pop7
+ br_if $pop8, 0 # 0: down to label1
# BB#4: # %if.end
- i32.load $push5=, i($1)
- i32.const $push8=, -1
- i32.eq $push9=, $pop5, $pop8
- br_if $pop9, 0 # 0: down to label1
+ i32.const $push17=, 0
+ i32.load $push6=, i($pop17)
+ i32.const $push9=, -1
+ i32.eq $push10=, $pop6, $pop9
+ br_if $pop10, 0 # 0: down to label1
# BB#5: # %if.then8
call abort@FUNCTION
unreachable
@@ -41,10 +42,11 @@ bar: # @bar
block
br_if $0, 0 # 0: down to label2
# BB#7: # %if.end9
- i32.load $push10=, l($1)
- i32.const $push11=, -1
- i32.eq $push12=, $pop10, $pop11
- br_if $pop12, 0 # 0: down to label2
+ i32.const $push12=, 0
+ i32.load $push11=, l($pop12)
+ i32.const $push13=, -1
+ i32.eq $push14=, $pop11, $pop13
+ br_if $pop14, 0 # 0: down to label2
# BB#8: # %if.then15
call abort@FUNCTION
unreachable
@@ -61,15 +63,15 @@ bar: # @bar
.type foo,@function
foo: # @foo
.param i32, i32
- .local i32, i32
+ .local i32
# BB#0: # %entry
- i32.const $3=, 0
- i32.load8_s $2=, v($3)
+ i32.const $push6=, 0
+ i32.load8_s $2=, v($pop6)
block
block
- i32.const $push4=, 0
- i32.eq $push5=, $1, $pop4
- br_if $pop5, 0 # 0: down to label4
+ i32.const $push8=, 0
+ i32.eq $push9=, $1, $pop8
+ br_if $pop9, 0 # 0: down to label4
# BB#1: # %entry
block
i32.const $push0=, 1
@@ -80,15 +82,18 @@ foo: # @foo
i32.ne $push3=, $1, $pop2
br_if $pop3, 2 # 2: down to label3
# BB#3: # %if.then
- i32.store16 $discard=, s($3), $2
+ i32.const $push5=, 0
+ i32.store16 $discard=, s($pop5), $2
br 2 # 2: down to label3
.LBB1_4: # %if.then3
end_block # label5:
- i32.store $discard=, i($3), $2
+ i32.const $push4=, 0
+ i32.store $discard=, i($pop4), $2
br 1 # 1: down to label3
.LBB1_5: # %if.then8
end_block # label4:
- i32.store $discard=, l($3), $2
+ i32.const $push7=, 0
+ i32.store $discard=, l($pop7), $2
.LBB1_6: # %if.end11
end_block # label3:
call bar@FUNCTION, $1
@@ -105,13 +110,14 @@ main: # @main
.result i32
.local i32
# BB#0: # %entry
- i32.const $0=, 0
- call foo@FUNCTION, $0, $0
- i32.const $push0=, 1
+ i32.const $push0=, 0
call foo@FUNCTION, $0, $pop0
- i32.const $push1=, 2
+ i32.const $push1=, 1
call foo@FUNCTION, $0, $pop1
- return $0
+ i32.const $push2=, 2
+ call foo@FUNCTION, $0, $pop2
+ i32.const $push3=, 0
+ return $pop3
.endfunc
.Lfunc_end2:
.size main, .Lfunc_end2-main
@@ -128,7 +134,7 @@ v:
.type s,@object
.section .bss.s,"aw",@nobits
.globl s
- .align 1
+ .p2align 1
s:
.int16 0 # 0x0
.size s, 2
@@ -137,7 +143,7 @@ s:
.type i,@object
.section .bss.i,"aw",@nobits
.globl i
- .align 2
+ .p2align 2
i:
.int32 0 # 0x0
.size i, 4
@@ -146,7 +152,7 @@ i:
.type l,@object
.section .bss.l,"aw",@nobits
.globl l
- .align 2
+ .p2align 2
l:
.int32 0 # 0x0
.size l, 4