summaryrefslogtreecommitdiff
path: root/test/torture-s/20131127-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20131127-1.c.s')
-rw-r--r--test/torture-s/20131127-1.c.s93
1 files changed, 42 insertions, 51 deletions
diff --git a/test/torture-s/20131127-1.c.s b/test/torture-s/20131127-1.c.s
index 45ed180f9..93dd99065 100644
--- a/test/torture-s/20131127-1.c.s
+++ b/test/torture-s/20131127-1.c.s
@@ -6,22 +6,21 @@
.type fn1,@function
fn1: # @fn1
.param i32
- .local i64
# BB#0: # %entry
i32.const $push0=, 12
i32.add $push1=, $0, $pop0
i32.const $push2=, 0
i32.load16_u $push3=, c+12($pop2):p2align=0
i32.store16 $drop=, 0($pop1):p2align=0, $pop3
- i32.const $push8=, 0
- i64.load $1=, c($pop8):p2align=0
i32.const $push4=, 8
i32.add $push5=, $0, $pop4
- i32.const $push7=, 0
- i32.load $push6=, c+8($pop7):p2align=0
+ i32.const $push9=, 0
+ i32.load $push6=, c+8($pop9):p2align=0
i32.store $drop=, 0($pop5):p2align=0, $pop6
- i64.store $drop=, 0($0):p2align=0, $1
- return
+ i32.const $push8=, 0
+ i64.load $push7=, c($pop8):p2align=0
+ i64.store $drop=, 0($0):p2align=0, $pop7
+ # fallthrough-return
.endfunc
.Lfunc_end0:
.size fn1, .Lfunc_end0-fn1
@@ -31,35 +30,31 @@ fn1: # @fn1
.globl fn2
.type fn2,@function
fn2: # @fn2
- .local i32, i64, i32, i64
+ .local i32
# BB#0: # %entry
- i32.const $push1=, 0
- i32.load $0=, c+8($pop1):p2align=0
+ i32.const $push0=, 0
+ i32.const $push15=, 0
+ i32.load16_u $push1=, c+12($pop15):p2align=0
+ i32.store16 $drop=, b+12($pop0):p2align=0, $pop1
i32.const $push14=, 0
i32.const $push13=, 0
- i32.load16_u $push2=, c+12($pop13):p2align=0
- i32.store16 $drop=, b+12($pop14):p2align=0, $pop2
+ i32.load $push2=, c+8($pop13):p2align=0
+ i32.store $drop=, b+8($pop14):p2align=0, $pop2
i32.const $push12=, 0
- i32.load16_u $2=, e+12($pop12):p2align=0
i32.const $push11=, 0
- i32.store $drop=, b+8($pop11):p2align=0, $0
+ i64.load $push3=, c($pop11):p2align=0
+ i64.store $drop=, b($pop12):p2align=0, $pop3
i32.const $push10=, 0
- i32.load $0=, e+8($pop10):p2align=0
i32.const $push9=, 0
- i64.load $1=, c($pop9):p2align=0
- i32.const $push8=, 0
- i32.store16 $drop=, d+12($pop8):p2align=0, $2
- i32.const $push7=, 0
- i64.load $3=, e($pop7):p2align=0
- i32.const $push6=, 0
- i32.store $drop=, d+8($pop6):p2align=0, $0
- i32.const $push5=, 0
- i64.store $drop=, b($pop5):p2align=0, $1
- i32.const $push4=, 0
- i32.const $push3=, 0
- i32.store16 $push0=, a($pop4), $pop3
- i64.store $drop=, d($pop0):p2align=0, $3
- return
+ i32.store16 $push8=, a($pop10), $pop9
+ tee_local $push7=, $0=, $pop8
+ i32.load16_u $push4=, e+12($0):p2align=0
+ i32.store16 $drop=, d+12($pop7):p2align=0, $pop4
+ i32.load $push5=, e+8($0):p2align=0
+ i32.store $drop=, d+8($0):p2align=0, $pop5
+ i64.load $push6=, e($0):p2align=0
+ i64.store $drop=, d($0):p2align=0, $pop6
+ # fallthrough-return
.endfunc
.Lfunc_end1:
.size fn2, .Lfunc_end1-fn2
@@ -70,36 +65,32 @@ fn2: # @fn2
.type main,@function
main: # @main
.result i32
- .local i32, i64, i64
+ .local i32
# BB#0: # %entry
- i32.const $push1=, 0
- i32.load $0=, c+8($pop1):p2align=0
- i32.const $push16=, 0
+ i32.const $push0=, 0
i32.const $push15=, 0
- i32.load16_u $push2=, c+12($pop15):p2align=0
- i32.store16 $drop=, b+12($pop16):p2align=0, $pop2
+ i32.load16_u $push1=, c+12($pop15):p2align=0
+ i32.store16 $drop=, b+12($pop0):p2align=0, $pop1
i32.const $push14=, 0
- i32.store $drop=, b+8($pop14):p2align=0, $0
i32.const $push13=, 0
- i32.load $0=, e+8($pop13):p2align=0
+ i32.load $push2=, c+8($pop13):p2align=0
+ i32.store $drop=, b+8($pop14):p2align=0, $pop2
i32.const $push12=, 0
- i64.load $1=, c($pop12):p2align=0
i32.const $push11=, 0
- i64.load $2=, e($pop11):p2align=0
+ i64.load $push3=, c($pop11):p2align=0
+ i64.store $drop=, b($pop12):p2align=0, $pop3
i32.const $push10=, 0
i32.const $push9=, 0
- i32.load16_u $push3=, e+12($pop9):p2align=0
- i32.store16 $drop=, d+12($pop10):p2align=0, $pop3
- i32.const $push8=, 0
- i32.store $drop=, d+8($pop8):p2align=0, $0
- i32.const $push7=, 0
- i64.store $drop=, b($pop7):p2align=0, $1
- i32.const $push6=, 0
- i64.store $drop=, d($pop6):p2align=0, $2
- i32.const $push5=, 0
- i32.const $push4=, 0
- i32.store16 $push0=, a($pop5), $pop4
- return $pop0
+ i32.store16 $push8=, a($pop10), $pop9
+ tee_local $push7=, $0=, $pop8
+ i32.load16_u $push4=, e+12($0):p2align=0
+ i32.store16 $drop=, d+12($pop7):p2align=0, $pop4
+ i32.load $push5=, e+8($0):p2align=0
+ i32.store $drop=, d+8($0):p2align=0, $pop5
+ i64.load $push6=, e($0):p2align=0
+ i64.store $drop=, d($0):p2align=0, $pop6
+ copy_local $push16=, $0
+ # fallthrough-return: $pop16
.endfunc
.Lfunc_end2:
.size main, .Lfunc_end2-main