summaryrefslogtreecommitdiff
path: root/test/torture-s/stdarg-4.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/stdarg-4.c.s')
-rw-r--r--test/torture-s/stdarg-4.c.s1065
1 files changed, 420 insertions, 645 deletions
diff --git a/test/torture-s/stdarg-4.c.s b/test/torture-s/stdarg-4.c.s
index 1fd766b6e..e4a104dc4 100644
--- a/test/torture-s/stdarg-4.c.s
+++ b/test/torture-s/stdarg-4.c.s
@@ -6,53 +6,28 @@
.type f1i,@function
f1i: # @f1i
.param i32
- .local i32, i32, i32, i32, i32, i32
# BB#0: # %entry
- i32.const $3=, __stack_pointer
- i32.load $3=, 0($3)
- i32.const $4=, 16
- i32.sub $6=, $3, $4
- i32.const $4=, __stack_pointer
- i32.store $6=, 0($4), $6
- i32.store $push0=, 12($6), $0
- i32.const $push1=, 7
- i32.add $push2=, $pop0, $pop1
- i32.const $push3=, -8
- i32.and $push28=, $pop2, $pop3
- tee_local $push27=, $0=, $pop28
- i32.const $push4=, 8
- i32.add $push5=, $pop27, $pop4
- i32.store $discard=, 12($6), $pop5
- f64.load $push6=, 0($0)
- i32.trunc_s/f64 $1=, $pop6
- i32.const $push7=, 11
- i32.add $push8=, $0, $pop7
- i32.const $push9=, -4
- i32.and $push26=, $pop8, $pop9
- tee_local $push25=, $0=, $pop26
- i32.const $push10=, 4
- i32.add $push11=, $pop25, $pop10
- i32.store $discard=, 12($6), $pop11
- i32.load $2=, 0($0)
- i32.const $push24=, 11
- i32.add $push13=, $0, $pop24
- i32.const $push23=, -8
- i32.and $push22=, $pop13, $pop23
- tee_local $push21=, $0=, $pop22
- i32.const $push20=, 8
- i32.add $push14=, $pop21, $pop20
- i32.store $discard=, 12($6), $pop14
+ i32.const $push5=, 0
i32.const $push19=, 0
- i32.add $push12=, $2, $1
- f64.convert_s/i32 $push16=, $pop12
- f64.load $push15=, 0($0)
- f64.add $push17=, $pop16, $pop15
- i32.trunc_s/f64 $push18=, $pop17
- i32.store $discard=, x($pop19), $pop18
- i32.const $5=, 16
- i32.add $6=, $6, $5
- i32.const $5=, __stack_pointer
- i32.store $6=, 0($5), $6
+ i32.const $push0=, 7
+ i32.add $push1=, $0, $pop0
+ i32.const $push2=, -8
+ i32.and $push18=, $pop1, $pop2
+ tee_local $push17=, $0=, $pop18
+ f64.load $push3=, 0($pop17)
+ i32.trunc_s/f64 $push4=, $pop3
+ i32.store $push6=, x($pop19), $pop4
+ i32.load $push7=, 8($0):p2align=3
+ i32.add $push8=, $pop6, $pop7
+ f64.convert_s/i32 $push13=, $pop8
+ i32.const $push9=, 19
+ i32.add $push10=, $0, $pop9
+ i32.const $push16=, -8
+ i32.and $push11=, $pop10, $pop16
+ f64.load $push12=, 0($pop11)
+ f64.add $push14=, $pop13, $pop12
+ i32.trunc_s/f64 $push15=, $pop14
+ i32.store $discard=, x($pop5), $pop15
return
.endfunc
.Lfunc_end0:
@@ -64,54 +39,34 @@ f1i: # @f1i
.type f1,@function
f1: # @f1
.param i32, i32
- .local i32, i32, i32, i32, i32, i32
+ .local i32, i32
# BB#0: # %entry
- i32.const $4=, __stack_pointer
- i32.load $4=, 0($4)
- i32.const $5=, 16
- i32.sub $7=, $4, $5
- i32.const $5=, __stack_pointer
- i32.store $7=, 0($5), $7
- i32.store $push0=, 8($7), $1
- i32.store $push1=, 12($7), $pop0
- i32.const $push2=, 7
- i32.add $push3=, $pop1, $pop2
- i32.const $push4=, -8
- i32.and $push29=, $pop3, $pop4
- tee_local $push28=, $1=, $pop29
- i32.const $push5=, 8
- i32.add $push6=, $pop28, $pop5
- i32.store $discard=, 12($7), $pop6
- f64.load $push7=, 0($1)
- i32.trunc_s/f64 $2=, $pop7
- i32.const $push8=, 11
- i32.add $push9=, $1, $pop8
- i32.const $push10=, -4
- i32.and $push27=, $pop9, $pop10
- tee_local $push26=, $1=, $pop27
- i32.const $push11=, 4
- i32.add $push12=, $pop26, $pop11
- i32.store $discard=, 12($7), $pop12
- i32.load $3=, 0($1)
- i32.const $push25=, 11
- i32.add $push14=, $1, $pop25
- i32.const $push24=, -8
- i32.and $push23=, $pop14, $pop24
- tee_local $push22=, $1=, $pop23
- i32.const $push21=, 8
- i32.add $push15=, $pop22, $pop21
- i32.store $discard=, 12($7), $pop15
- i32.const $push20=, 0
- f64.load $push16=, 0($1)
- i32.add $push13=, $3, $2
- f64.convert_s/i32 $push17=, $pop13
- f64.add $push18=, $pop16, $pop17
- i32.trunc_s/f64 $push19=, $pop18
- i32.store $discard=, x($pop20), $pop19
- i32.const $6=, 16
- i32.add $7=, $7, $6
- i32.const $6=, __stack_pointer
- i32.store $7=, 0($6), $7
+ i32.const $push20=, __stack_pointer
+ i32.load $push21=, 0($pop20)
+ i32.const $push22=, 16
+ i32.sub $3=, $pop21, $pop22
+ i32.const $push6=, 0
+ i32.store $push0=, 12($3), $1
+ i32.const $push1=, 7
+ i32.add $push2=, $pop0, $pop1
+ i32.const $push3=, -8
+ i32.and $push19=, $pop2, $pop3
+ tee_local $push18=, $1=, $pop19
+ f64.load $push4=, 0($pop18)
+ i32.trunc_s/f64 $push5=, $pop4
+ i32.store $2=, x($pop6), $pop5
+ i32.const $push17=, 0
+ i32.const $push9=, 19
+ i32.add $push10=, $1, $pop9
+ i32.const $push16=, -8
+ i32.and $push11=, $pop10, $pop16
+ f64.load $push12=, 0($pop11)
+ i32.load $push7=, 8($1):p2align=3
+ i32.add $push8=, $2, $pop7
+ f64.convert_s/i32 $push13=, $pop8
+ f64.add $push14=, $pop12, $pop13
+ i32.trunc_s/f64 $push15=, $pop14
+ i32.store $discard=, x($pop17), $pop15
return
.endfunc
.Lfunc_end1:
@@ -123,87 +78,40 @@ f1: # @f1
.type f2i,@function
f2i: # @f2i
.param i32
- .local i32, i32, i32, i32, i32, i32, i32
+ .local i32, f64, i32
# BB#0: # %entry
- i32.const $4=, __stack_pointer
- i32.load $4=, 0($4)
- i32.const $5=, 16
- i32.sub $7=, $4, $5
- i32.const $5=, __stack_pointer
- i32.store $7=, 0($5), $7
- i32.store $push0=, 8($7), $0
- i32.const $push1=, 3
- i32.add $push2=, $pop0, $pop1
- i32.const $push3=, -4
- i32.and $push55=, $pop2, $pop3
- tee_local $push54=, $0=, $pop55
- i32.const $push4=, 4
- i32.add $push5=, $pop54, $pop4
- i32.store $discard=, 8($7), $pop5
- i32.load $1=, 0($0)
- i32.const $push6=, 7
- i32.add $push7=, $0, $pop6
- i32.const $push53=, -4
- i32.and $push52=, $pop7, $pop53
- tee_local $push51=, $0=, $pop52
- i32.const $push50=, 4
- i32.add $push8=, $pop51, $pop50
- i32.store $discard=, 8($7), $pop8
- i32.load $2=, 0($0)
- i32.const $push10=, 11
- i32.add $push11=, $0, $pop10
- i32.const $push12=, -8
- i32.and $push49=, $pop11, $pop12
- tee_local $push48=, $0=, $pop49
- i32.const $push13=, 8
- i32.add $push14=, $pop48, $pop13
- i32.store $3=, 8($7), $pop14
- i32.const $push19=, 0
- i32.add $push9=, $2, $1
- f64.convert_s/i32 $push16=, $pop9
- f64.load $push15=, 0($0)
- f64.add $push17=, $pop16, $pop15
- i32.trunc_s/f64 $push18=, $pop17
- i32.store $discard=, y($pop19), $pop18
- i32.store $discard=, 12($7), $3
- i32.const $push20=, 15
- i32.add $push21=, $0, $pop20
- i32.const $push47=, -8
- i32.and $push46=, $pop21, $pop47
- tee_local $push45=, $0=, $pop46
- i32.const $push44=, 8
- i32.add $push22=, $pop45, $pop44
- i32.store $discard=, 12($7), $pop22
- f64.load $push23=, 0($0)
- i32.trunc_s/f64 $1=, $pop23
- i32.const $push43=, 11
- i32.add $push24=, $0, $pop43
- i32.const $push42=, -4
- i32.and $push41=, $pop24, $pop42
- tee_local $push40=, $0=, $pop41
- i32.const $push39=, 4
- i32.add $push25=, $pop40, $pop39
- i32.store $discard=, 12($7), $pop25
- i32.load $2=, 0($0)
- i32.const $push38=, 11
- i32.add $push27=, $0, $pop38
- i32.const $push37=, -8
- i32.and $push36=, $pop27, $pop37
- tee_local $push35=, $0=, $pop36
- i32.const $push34=, 8
- i32.add $push28=, $pop35, $pop34
- i32.store $discard=, 12($7), $pop28
- i32.const $push33=, 0
- f64.load $push29=, 0($0)
- i32.add $push26=, $2, $1
- f64.convert_s/i32 $push30=, $pop26
- f64.add $push31=, $pop29, $pop30
- i32.trunc_s/f64 $push32=, $pop31
- i32.store $discard=, x($pop33), $pop32
- i32.const $6=, 16
- i32.add $7=, $7, $6
- i32.const $6=, __stack_pointer
- i32.store $7=, 0($6), $7
+ i32.const $push1=, 0
+ i32.load $push0=, 0($0)
+ i32.store $1=, y($pop1), $pop0
+ i32.const $push4=, 15
+ i32.add $push5=, $0, $pop4
+ i32.const $push6=, -8
+ i32.and $push26=, $pop5, $pop6
+ tee_local $push25=, $3=, $pop26
+ f64.load $2=, 8($pop25)
+ i32.const $push24=, 0
+ i32.load $push2=, 4($0)
+ i32.add $push3=, $1, $pop2
+ f64.convert_s/i32 $push8=, $pop3
+ f64.load $push7=, 0($3)
+ f64.add $push9=, $pop8, $pop7
+ i32.trunc_s/f64 $push10=, $pop9
+ i32.store $discard=, y($pop24), $pop10
+ i32.const $push23=, 0
+ i32.trunc_s/f64 $push11=, $2
+ i32.store $0=, x($pop23), $pop11
+ i32.const $push22=, 0
+ i32.const $push14=, 27
+ i32.add $push15=, $3, $pop14
+ i32.const $push21=, -8
+ i32.and $push16=, $pop15, $pop21
+ f64.load $push17=, 0($pop16)
+ i32.load $push12=, 16($3):p2align=3
+ i32.add $push13=, $0, $pop12
+ f64.convert_s/i32 $push18=, $pop13
+ f64.add $push19=, $pop17, $pop18
+ i32.trunc_s/f64 $push20=, $pop19
+ i32.store $discard=, x($pop22), $pop20
return
.endfunc
.Lfunc_end2:
@@ -215,88 +123,46 @@ f2i: # @f2i
.type f2,@function
f2: # @f2
.param i32, i32
- .local i32, i32, i32, i32, i32, i32, i32
+ .local i32, f64, i32, i32
# BB#0: # %entry
- i32.const $5=, __stack_pointer
- i32.load $5=, 0($5)
- i32.const $6=, 16
- i32.sub $8=, $5, $6
- i32.const $6=, __stack_pointer
- i32.store $8=, 0($6), $8
- i32.store $push0=, 4($8), $1
- i32.store $push1=, 8($8), $pop0
- i32.const $push2=, 3
- i32.add $push3=, $pop1, $pop2
- i32.const $push4=, -4
- i32.and $push56=, $pop3, $pop4
- tee_local $push55=, $1=, $pop56
- i32.const $push5=, 4
- i32.add $push6=, $pop55, $pop5
- i32.store $discard=, 8($8), $pop6
- i32.load $2=, 0($1)
- i32.const $push7=, 7
- i32.add $push8=, $1, $pop7
- i32.const $push54=, -4
- i32.and $push53=, $pop8, $pop54
- tee_local $push52=, $1=, $pop53
- i32.const $push51=, 4
- i32.add $push9=, $pop52, $pop51
- i32.store $discard=, 8($8), $pop9
- i32.load $3=, 0($1)
- i32.const $push11=, 11
- i32.add $push12=, $1, $pop11
- i32.const $push13=, -8
- i32.and $push50=, $pop12, $pop13
- tee_local $push49=, $1=, $pop50
- i32.const $push14=, 8
- i32.add $push15=, $pop49, $pop14
- i32.store $4=, 8($8), $pop15
- i32.const $push20=, 0
- f64.load $push16=, 0($1)
- i32.add $push10=, $3, $2
- f64.convert_s/i32 $push17=, $pop10
- f64.add $push18=, $pop16, $pop17
- i32.trunc_s/f64 $push19=, $pop18
- i32.store $discard=, y($pop20), $pop19
- i32.store $discard=, 12($8), $4
- i32.const $push21=, 15
- i32.add $push22=, $1, $pop21
- i32.const $push48=, -8
- i32.and $push47=, $pop22, $pop48
- tee_local $push46=, $1=, $pop47
- i32.const $push45=, 8
- i32.add $push23=, $pop46, $pop45
- i32.store $discard=, 12($8), $pop23
- f64.load $push24=, 0($1)
- i32.trunc_s/f64 $2=, $pop24
- i32.const $push44=, 11
- i32.add $push25=, $1, $pop44
- i32.const $push43=, -4
- i32.and $push42=, $pop25, $pop43
- tee_local $push41=, $1=, $pop42
- i32.const $push40=, 4
- i32.add $push26=, $pop41, $pop40
- i32.store $discard=, 12($8), $pop26
- i32.load $3=, 0($1)
- i32.const $push39=, 11
- i32.add $push28=, $1, $pop39
- i32.const $push38=, -8
- i32.and $push37=, $pop28, $pop38
- tee_local $push36=, $1=, $pop37
- i32.const $push35=, 8
- i32.add $push29=, $pop36, $pop35
- i32.store $discard=, 12($8), $pop29
- i32.const $push34=, 0
- f64.load $push30=, 0($1)
- i32.add $push27=, $3, $2
- f64.convert_s/i32 $push31=, $pop27
- f64.add $push32=, $pop30, $pop31
- i32.trunc_s/f64 $push33=, $pop32
- i32.store $discard=, x($pop34), $pop33
- i32.const $7=, 16
- i32.add $8=, $8, $7
- i32.const $7=, __stack_pointer
- i32.store $8=, 0($7), $8
+ i32.const $push29=, __stack_pointer
+ i32.load $push30=, 0($pop29)
+ i32.const $push31=, 16
+ i32.sub $5=, $pop30, $pop31
+ i32.const $push1=, 0
+ i32.store $push28=, 12($5), $1
+ tee_local $push27=, $4=, $pop28
+ i32.load $push0=, 0($pop27)
+ i32.store $2=, y($pop1), $pop0
+ i32.const $push4=, 15
+ i32.add $push5=, $4, $pop4
+ i32.const $push6=, -8
+ i32.and $push26=, $pop5, $pop6
+ tee_local $push25=, $1=, $pop26
+ f64.load $3=, 8($pop25)
+ i32.const $push24=, 0
+ f64.load $push7=, 0($1)
+ i32.load $push2=, 4($4)
+ i32.add $push3=, $2, $pop2
+ f64.convert_s/i32 $push8=, $pop3
+ f64.add $push9=, $pop7, $pop8
+ i32.trunc_s/f64 $push10=, $pop9
+ i32.store $discard=, y($pop24), $pop10
+ i32.const $push23=, 0
+ i32.trunc_s/f64 $push11=, $3
+ i32.store $4=, x($pop23), $pop11
+ i32.const $push22=, 0
+ i32.const $push14=, 27
+ i32.add $push15=, $1, $pop14
+ i32.const $push21=, -8
+ i32.and $push16=, $pop15, $pop21
+ f64.load $push17=, 0($pop16)
+ i32.load $push12=, 16($1):p2align=3
+ i32.add $push13=, $4, $pop12
+ f64.convert_s/i32 $push18=, $pop13
+ f64.add $push19=, $pop17, $pop18
+ i32.trunc_s/f64 $push20=, $pop19
+ i32.store $discard=, x($pop22), $pop20
return
.endfunc
.Lfunc_end3:
@@ -326,15 +192,15 @@ f3h: # @f3h
f3: # @f3
.param i32, i32
.result i32
- .local i32, i32, i32, i32, i32, i32
+ .local i32, i32, i32
# BB#0: # %entry
- i32.const $4=, __stack_pointer
- i32.load $4=, 0($4)
- i32.const $5=, 16
- i32.sub $7=, $4, $5
- i32.const $5=, __stack_pointer
- i32.store $7=, 0($5), $7
- i32.store $discard=, 12($7), $1
+ i32.const $push44=, __stack_pointer
+ i32.load $push45=, 0($pop44)
+ i32.const $push46=, 16
+ i32.sub $4=, $pop45, $pop46
+ i32.const $push47=, __stack_pointer
+ i32.store $discard=, 0($pop47), $4
+ i32.store $discard=, 12($4), $1
block
i32.const $push0=, 4
i32.gt_u $push1=, $0, $pop0
@@ -353,129 +219,83 @@ f3: # @f3
# 2: down to label3
.LBB5_2: # %sw.bb2
end_block # label5:
- i32.load $push45=, 12($7)
- i32.const $push46=, 3
- i32.add $push47=, $pop45, $pop46
- i32.const $push48=, -4
- i32.and $push54=, $pop47, $pop48
- tee_local $push53=, $0=, $pop54
- i32.const $push49=, 4
- i32.add $push50=, $pop53, $pop49
- i32.store $discard=, 12($7), $pop50
- i32.load $push51=, 0($0)
- i32.const $push52=, 1
- i32.add $1=, $pop51, $pop52
+ i32.load $push36=, 12($4)
+ tee_local $push35=, $0=, $pop36
+ i32.const $push31=, 4
+ i32.add $push32=, $pop35, $pop31
+ i32.store $discard=, 12($4), $pop32
+ i32.load $push33=, 0($0)
+ i32.const $push34=, 1
+ i32.add $1=, $pop33, $pop34
br 3 # 3: down to label1
.LBB5_3: # %sw.bb4
end_block # label4:
- i32.load $push33=, 12($7)
- i32.const $push34=, 3
- i32.add $push35=, $pop33, $pop34
- i32.const $push36=, -4
- i32.and $push60=, $pop35, $pop36
- tee_local $push59=, $0=, $pop60
- i32.const $push37=, 4
- i32.add $push38=, $pop59, $pop37
- i32.store $discard=, 12($7), $pop38
+ i32.load $push38=, 12($4)
+ tee_local $push37=, $0=, $pop38
+ i32.const $push24=, 4
+ i32.add $push25=, $pop37, $pop24
+ i32.store $discard=, 12($4), $pop25
i32.load $1=, 0($0)
- i32.const $push39=, 7
- i32.add $push40=, $0, $pop39
- i32.const $push58=, -4
- i32.and $push57=, $pop40, $pop58
- tee_local $push56=, $0=, $pop57
- i32.const $push55=, 4
- i32.add $push41=, $pop56, $pop55
- i32.store $discard=, 12($7), $pop41
- i32.load $push42=, 0($0)
- i32.add $push43=, $1, $pop42
- i32.const $push44=, 2
- i32.add $1=, $pop43, $pop44
+ i32.const $push26=, 8
+ i32.add $push27=, $0, $pop26
+ i32.store $discard=, 12($4), $pop27
+ i32.load $push28=, 4($0)
+ i32.add $push29=, $1, $pop28
+ i32.const $push30=, 2
+ i32.add $1=, $pop29, $pop30
br 2 # 2: down to label1
-.LBB5_4: # %sw.bb8
+.LBB5_4: # %sw.bb18
end_block # label3:
- i32.load $push2=, 12($7)
- i32.const $push3=, 3
- i32.add $push4=, $pop2, $pop3
- i32.const $push5=, -4
- i32.and $push89=, $pop4, $pop5
- tee_local $push88=, $0=, $pop89
- i32.const $push6=, 4
- i32.add $push7=, $pop88, $pop6
- i32.store $discard=, 12($7), $pop7
+ i32.load $push43=, 12($4)
+ tee_local $push42=, $0=, $pop43
+ i32.const $push2=, 4
+ i32.add $push3=, $pop42, $pop2
+ i32.store $discard=, 12($4), $pop3
i32.load $1=, 0($0)
- i32.const $push8=, 7
+ i32.const $push4=, 8
+ i32.add $push5=, $0, $pop4
+ i32.store $discard=, 12($4), $pop5
+ i32.load $2=, 4($0)
+ i32.const $push6=, 12
+ i32.add $push7=, $0, $pop6
+ i32.store $discard=, 12($4), $pop7
+ i32.load $3=, 8($0)
+ i32.const $push8=, 16
i32.add $push9=, $0, $pop8
- i32.const $push87=, -4
- i32.and $push86=, $pop9, $pop87
- tee_local $push85=, $0=, $pop86
- i32.const $push84=, 4
- i32.add $push10=, $pop85, $pop84
- i32.store $discard=, 12($7), $pop10
- i32.load $2=, 0($0)
- i32.const $push83=, 7
- i32.add $push11=, $0, $pop83
- i32.const $push82=, -4
- i32.and $push81=, $pop11, $pop82
- tee_local $push80=, $0=, $pop81
- i32.const $push79=, 4
- i32.add $push12=, $pop80, $pop79
- i32.store $discard=, 12($7), $pop12
- i32.load $3=, 0($0)
- i32.const $push78=, 7
- i32.add $push13=, $0, $pop78
- i32.const $push77=, -4
- i32.and $push76=, $pop13, $pop77
- tee_local $push75=, $0=, $pop76
- i32.const $push74=, 4
- i32.add $push14=, $pop75, $pop74
- i32.store $discard=, 12($7), $pop14
- i32.add $push16=, $1, $2
- i32.add $push17=, $3, $pop16
- i32.load $push15=, 0($0)
- i32.add $push18=, $pop17, $pop15
- i32.const $push73=, 4
- i32.add $1=, $pop18, $pop73
+ i32.store $discard=, 12($4), $pop9
+ i32.add $push11=, $1, $2
+ i32.add $push12=, $3, $pop11
+ i32.load $push10=, 12($0)
+ i32.add $push13=, $pop12, $pop10
+ i32.const $push41=, 4
+ i32.add $1=, $pop13, $pop41
br 1 # 1: down to label1
-.LBB5_5: # %sw.bb6
+.LBB5_5: # %sw.bb10
end_block # label2:
- i32.load $push19=, 12($7)
- i32.const $push20=, 3
- i32.add $push21=, $pop19, $pop20
- i32.const $push22=, -4
- i32.and $push72=, $pop21, $pop22
- tee_local $push71=, $0=, $pop72
- i32.const $push23=, 4
- i32.add $push24=, $pop71, $pop23
- i32.store $discard=, 12($7), $pop24
+ i32.load $push40=, 12($4)
+ tee_local $push39=, $0=, $pop40
+ i32.const $push14=, 4
+ i32.add $push15=, $pop39, $pop14
+ i32.store $discard=, 12($4), $pop15
i32.load $1=, 0($0)
- i32.const $push25=, 7
- i32.add $push26=, $0, $pop25
- i32.const $push70=, -4
- i32.and $push69=, $pop26, $pop70
- tee_local $push68=, $0=, $pop69
- i32.const $push67=, 4
- i32.add $push27=, $pop68, $pop67
- i32.store $discard=, 12($7), $pop27
- i32.load $2=, 0($0)
- i32.const $push66=, 7
- i32.add $push28=, $0, $pop66
- i32.const $push65=, -4
- i32.and $push64=, $pop28, $pop65
- tee_local $push63=, $0=, $pop64
- i32.const $push62=, 4
- i32.add $push29=, $pop63, $pop62
- i32.store $discard=, 12($7), $pop29
- i32.add $push31=, $1, $2
- i32.load $push30=, 0($0)
- i32.add $push32=, $pop31, $pop30
- i32.const $push61=, 3
- i32.add $1=, $pop32, $pop61
+ i32.const $push16=, 8
+ i32.add $push17=, $0, $pop16
+ i32.store $discard=, 12($4), $pop17
+ i32.load $2=, 4($0)
+ i32.const $push18=, 12
+ i32.add $push19=, $0, $pop18
+ i32.store $discard=, 12($4), $pop19
+ i32.add $push21=, $1, $2
+ i32.load $push20=, 8($0)
+ i32.add $push22=, $pop21, $pop20
+ i32.const $push23=, 3
+ i32.add $1=, $pop22, $pop23
.LBB5_6: # %sw.epilog
end_block # label1:
- i32.const $6=, 16
- i32.add $7=, $7, $6
- i32.const $6=, __stack_pointer
- i32.store $7=, 0($6), $7
+ i32.const $push48=, 16
+ i32.add $4=, $4, $pop48
+ i32.const $push49=, __stack_pointer
+ i32.store $discard=, 0($pop49), $4
return $1
.LBB5_7: # %sw.default
end_block # label0:
@@ -491,108 +311,85 @@ f3: # @f3
.type f4,@function
f4: # @f4
.param i32, i32
- .local i32, f64, i32, i32, i32, i32
+ .local f64, f64, i32
# BB#0: # %entry
- i32.const $4=, __stack_pointer
- i32.load $4=, 0($4)
- i32.const $5=, 16
- i32.sub $7=, $4, $5
- i32.const $5=, __stack_pointer
- i32.store $7=, 0($5), $7
- i32.store $discard=, 8($7), $1
+ i32.const $push46=, __stack_pointer
+ i32.load $push47=, 0($pop46)
+ i32.const $push48=, 16
+ i32.sub $4=, $pop47, $pop48
+ i32.const $push49=, __stack_pointer
+ i32.store $discard=, 0($pop49), $4
+ i32.store $discard=, 12($4), $1
block
block
block
- i32.const $push0=, 5
- i32.eq $push1=, $0, $pop0
- br_if 0, $pop1 # 0: down to label8
+ i32.const $push2=, 5
+ i32.eq $push3=, $0, $pop2
+ br_if 0, $pop3 # 0: down to label8
# BB#1: # %entry
- i32.const $push2=, 4
- i32.ne $push3=, $0, $pop2
- br_if 2, $pop3 # 2: down to label6
+ i32.const $push4=, 4
+ i32.ne $push5=, $0, $pop4
+ br_if 2, $pop5 # 2: down to label6
# BB#2: # %sw.bb
- i32.load $push18=, 8($7)
- i32.const $push19=, 7
- i32.add $push20=, $pop18, $pop19
- i32.const $push21=, -8
- i32.and $push46=, $pop20, $pop21
- tee_local $push45=, $0=, $pop46
- i32.const $push22=, 8
- i32.add $push23=, $pop45, $pop22
- i32.store $discard=, 8($7), $pop23
- f64.load $3=, 0($0)
+ i32.load $push17=, 12($4)
+ i32.const $push18=, 7
+ i32.add $push19=, $pop17, $pop18
+ i32.const $push20=, -8
+ i32.and $push38=, $pop19, $pop20
+ tee_local $push37=, $0=, $pop38
+ f64.load $3=, 0($pop37)
+ i32.const $push21=, 8
+ i32.add $push0=, $0, $pop21
+ i32.store $0=, 12($4), $pop0
br 1 # 1: down to label7
.LBB6_3: # %sw.bb2
end_block # label8:
- i32.load $push4=, 8($7)
- i32.const $push5=, 7
- i32.add $push6=, $pop4, $pop5
- i32.const $push7=, -8
- i32.and $push52=, $pop6, $pop7
- tee_local $push51=, $0=, $pop52
- i32.const $push8=, 8
- i32.add $push9=, $pop51, $pop8
- i32.store $discard=, 8($7), $pop9
+ i32.load $push6=, 12($4)
+ i32.const $push7=, 7
+ i32.add $push8=, $pop6, $pop7
+ i32.const $push9=, -8
+ i32.and $push40=, $pop8, $pop9
+ tee_local $push39=, $0=, $pop40
+ f64.load $push15=, 8($pop39)
i32.const $push12=, 0
f64.load $push10=, 0($0)
i32.trunc_s/f64 $push11=, $pop10
- i32.store $1=, y($pop12), $pop11
- i32.const $push13=, 15
- i32.add $push14=, $0, $pop13
- i32.const $push50=, -8
- i32.and $push49=, $pop14, $pop50
- tee_local $push48=, $0=, $pop49
- i32.const $push47=, 8
- i32.add $push15=, $pop48, $pop47
- i32.store $discard=, 8($7), $pop15
- f64.convert_s/i32 $push17=, $1
- f64.load $push16=, 0($0)
- f64.add $3=, $pop17, $pop16
+ i32.store $push13=, y($pop12), $pop11
+ f64.convert_s/i32 $push16=, $pop13
+ f64.add $3=, $pop15, $pop16
+ i32.const $push14=, 16
+ i32.add $push1=, $0, $pop14
+ i32.store $0=, 12($4), $pop1
.LBB6_4: # %sw.epilog
end_block # label7:
- i32.load $0=, 8($7)
- i32.const $push25=, 0
- i32.trunc_s/f64 $push24=, $3
- i32.store $discard=, y($pop25), $pop24
- i32.store $push26=, 12($7), $0
- i32.const $push27=, 7
- i32.add $push28=, $pop26, $pop27
- i32.const $push29=, -8
- i32.and $push62=, $pop28, $pop29
- tee_local $push61=, $0=, $pop62
- i32.const $push30=, 8
- i32.add $push31=, $pop61, $pop30
- i32.store $discard=, 12($7), $pop31
- f64.load $push32=, 0($0)
- i32.trunc_s/f64 $1=, $pop32
- i32.const $push33=, 11
- i32.add $push34=, $0, $pop33
- i32.const $push35=, -4
- i32.and $push60=, $pop34, $pop35
- tee_local $push59=, $0=, $pop60
- i32.const $push36=, 4
- i32.add $push37=, $pop59, $pop36
- i32.store $discard=, 12($7), $pop37
- i32.load $2=, 0($0)
- i32.const $push58=, 11
- i32.add $push39=, $0, $pop58
- i32.const $push57=, -8
- i32.and $push56=, $pop39, $pop57
- tee_local $push55=, $0=, $pop56
- i32.const $push54=, 8
- i32.add $push40=, $pop55, $pop54
- i32.store $discard=, 12($7), $pop40
- i32.const $push53=, 0
- f64.load $push41=, 0($0)
- i32.add $push38=, $2, $1
- f64.convert_s/i32 $push42=, $pop38
- f64.add $push43=, $pop41, $pop42
- i32.trunc_s/f64 $push44=, $pop43
- i32.store $discard=, x($pop53), $pop44
- i32.const $6=, 16
- i32.add $7=, $7, $6
- i32.const $6=, __stack_pointer
- i32.store $7=, 0($6), $7
+ i32.const $push24=, 7
+ i32.add $push25=, $0, $pop24
+ i32.const $push26=, -8
+ i32.and $push45=, $pop25, $pop26
+ tee_local $push44=, $0=, $pop45
+ f64.load $2=, 0($pop44)
+ i32.const $push23=, 0
+ i32.trunc_s/f64 $push22=, $3
+ i32.store $discard=, y($pop23), $pop22
+ i32.const $push43=, 0
+ i32.trunc_s/f64 $push27=, $2
+ i32.store $1=, x($pop43), $pop27
+ i32.const $push42=, 0
+ i32.const $push30=, 19
+ i32.add $push31=, $0, $pop30
+ i32.const $push41=, -8
+ i32.and $push32=, $pop31, $pop41
+ f64.load $push33=, 0($pop32)
+ i32.load $push28=, 8($0):p2align=3
+ i32.add $push29=, $1, $pop28
+ f64.convert_s/i32 $push34=, $pop29
+ f64.add $push35=, $pop33, $pop34
+ i32.trunc_s/f64 $push36=, $pop35
+ i32.store $discard=, x($pop42), $pop36
+ i32.const $push50=, 16
+ i32.add $4=, $4, $pop50
+ i32.const $push51=, __stack_pointer
+ i32.store $discard=, 0($pop51), $4
return
.LBB6_5: # %sw.default
end_block # label6:
@@ -608,209 +405,187 @@ f4: # @f4
.type main,@function
main: # @main
.result i32
- .local i32, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32
+ .local i32, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32
# BB#0: # %entry
- i32.const $2=, __stack_pointer
- i32.load $2=, 0($2)
- i32.const $3=, 224
- i32.sub $23=, $2, $3
- i32.const $3=, __stack_pointer
- i32.store $23=, 0($3), $23
- i32.const $push87=, 16
- i32.const $5=, 192
- i32.add $5=, $23, $5
- i32.add $push0=, $5, $pop87
+ i32.const $push90=, __stack_pointer
+ i32.load $push91=, 0($pop90)
+ i32.const $push92=, 224
+ i32.sub $15=, $pop91, $pop92
+ i32.const $push93=, __stack_pointer
+ i32.store $discard=, 0($pop93), $15
+ i32.const $push78=, 16
+ i32.const $2=, 192
+ i32.add $2=, $15, $2
+ i32.add $push0=, $2, $pop78
i64.const $push1=, 4629700416936869888
i64.store $discard=, 0($pop0):p2align=4, $pop1
- i32.const $push86=, 8
- i32.const $6=, 192
- i32.add $6=, $23, $6
- i32.or $push2=, $6, $pop86
- i32.const $push3=, 128
- i32.store $discard=, 0($pop2):p2align=3, $pop3
- i64.const $push4=, 4625196817309499392
- i64.store $discard=, 192($23):p2align=4, $pop4
- i32.const $7=, 192
- i32.add $7=, $23, $7
- call f1@FUNCTION, $0, $7
+ i32.const $push2=, 128
+ i32.store $discard=, 200($15):p2align=3, $pop2
+ i64.const $push3=, 4625196817309499392
+ i64.store $discard=, 192($15):p2align=4, $pop3
+ i32.const $3=, 192
+ i32.add $3=, $15, $3
+ call f1@FUNCTION, $0, $3
block
- i32.const $push85=, 0
- i32.load $push5=, x($pop85)
- i32.const $push6=, 176
- i32.ne $push7=, $pop5, $pop6
- br_if 0, $pop7 # 0: down to label9
+ i32.const $push77=, 0
+ i32.load $push4=, x($pop77)
+ i32.const $push5=, 176
+ i32.ne $push6=, $pop4, $pop5
+ br_if 0, $pop6 # 0: down to label9
# BB#1: # %if.end
- i32.const $push9=, 32
- i32.const $8=, 144
- i32.add $8=, $23, $8
- i32.add $push10=, $8, $pop9
- i64.const $push11=, 4634204016564240384
- i64.store $discard=, 0($pop10):p2align=4, $pop11
- i32.const $push12=, 24
- i32.const $9=, 144
- i32.add $9=, $23, $9
- i32.add $push13=, $9, $pop12
- i32.const $push14=, 17
- i32.store $discard=, 0($pop13):p2align=3, $pop14
- i32.const $push90=, 16
- i32.const $10=, 144
- i32.add $10=, $23, $10
- i32.add $push15=, $10, $pop90
- i64.const $push16=, 4626041242239631360
- i64.store $discard=, 0($pop15):p2align=4, $pop16
- i32.const $push89=, 8
- i32.const $11=, 144
- i32.add $11=, $23, $11
- i32.or $push17=, $11, $pop89
- i64.const $push18=, 4625759767262920704
- i64.store $discard=, 0($pop17), $pop18
- i64.const $push19=, 30064771077
- i64.store $discard=, 144($23):p2align=4, $pop19
- i32.const $12=, 144
- i32.add $12=, $23, $12
- call f2@FUNCTION, $0, $12
- i32.const $push88=, 0
- i32.load $push20=, x($pop88)
- i32.const $push21=, 100
- i32.ne $push22=, $pop20, $pop21
- br_if 0, $pop22 # 0: down to label9
+ i32.const $push8=, 32
+ i32.const $4=, 144
+ i32.add $4=, $15, $4
+ i32.add $push9=, $4, $pop8
+ i64.const $push10=, 4634204016564240384
+ i64.store $discard=, 0($pop9):p2align=4, $pop10
+ i32.const $push11=, 24
+ i32.const $5=, 144
+ i32.add $5=, $15, $5
+ i32.add $push12=, $5, $pop11
+ i32.const $push13=, 17
+ i32.store $discard=, 0($pop12):p2align=3, $pop13
+ i32.const $push80=, 16
+ i32.const $6=, 144
+ i32.add $6=, $15, $6
+ i32.add $push14=, $6, $pop80
+ i64.const $push15=, 4626041242239631360
+ i64.store $discard=, 0($pop14):p2align=4, $pop15
+ i64.const $push16=, 4625759767262920704
+ i64.store $discard=, 152($15), $pop16
+ i64.const $push17=, 30064771077
+ i64.store $discard=, 144($15):p2align=4, $pop17
+ i32.const $7=, 144
+ i32.add $7=, $15, $7
+ call f2@FUNCTION, $0, $7
+ i32.const $push79=, 0
+ i32.load $push18=, x($pop79)
+ i32.const $push19=, 100
+ i32.ne $push20=, $pop18, $pop19
+ br_if 0, $pop20 # 0: down to label9
# BB#2: # %if.end
- i32.const $push91=, 0
- i32.load $push8=, y($pop91)
- i32.const $push23=, 30
- i32.ne $push24=, $pop8, $pop23
- br_if 0, $pop24 # 0: down to label9
+ i32.const $push81=, 0
+ i32.load $push7=, y($pop81)
+ i32.const $push21=, 30
+ i32.ne $push22=, $pop7, $pop21
+ br_if 0, $pop22 # 0: down to label9
# BB#3: # %if.end4
- i32.const $push25=, 0
- i32.const $push92=, 0
- i32.call $push26=, f3@FUNCTION, $pop25, $pop92
- br_if 0, $pop26 # 0: down to label9
+ i32.const $push23=, 0
+ i32.const $push82=, 0
+ i32.call $push24=, f3@FUNCTION, $pop23, $pop82
+ br_if 0, $pop24 # 0: down to label9
# BB#4: # %if.end7
- i32.const $push27=, 18
- i32.store $discard=, 128($23):p2align=4, $pop27
- i32.const $push28=, 1
- i32.const $13=, 128
- i32.add $13=, $23, $13
- i32.call $push29=, f3@FUNCTION, $pop28, $13
- i32.const $push30=, 19
- i32.ne $push31=, $pop29, $pop30
- br_if 0, $pop31 # 0: down to label9
+ i32.const $push25=, 18
+ i32.store $discard=, 128($15):p2align=4, $pop25
+ i32.const $push26=, 1
+ i32.const $8=, 128
+ i32.add $8=, $15, $8
+ i32.call $push27=, f3@FUNCTION, $pop26, $8
+ i32.const $push28=, 19
+ i32.ne $push29=, $pop27, $pop28
+ br_if 0, $pop29 # 0: down to label9
# BB#5: # %if.end11
- i64.const $push32=, 429496729618
- i64.store $1=, 112($23):p2align=4, $pop32
- i32.const $push33=, 2
- i32.const $14=, 112
- i32.add $14=, $23, $14
- i32.call $push34=, f3@FUNCTION, $pop33, $14
- i32.const $push35=, 120
- i32.ne $push36=, $pop34, $pop35
- br_if 0, $pop36 # 0: down to label9
+ i64.const $push30=, 429496729618
+ i64.store $1=, 112($15):p2align=4, $pop30
+ i32.const $push31=, 2
+ i32.const $9=, 112
+ i32.add $9=, $15, $9
+ i32.call $push32=, f3@FUNCTION, $pop31, $9
+ i32.const $push33=, 120
+ i32.ne $push34=, $pop32, $pop33
+ br_if 0, $pop34 # 0: down to label9
# BB#6: # %if.end15
- i32.const $push93=, 8
- i32.const $15=, 96
- i32.add $15=, $23, $15
- i32.or $push37=, $15, $pop93
- i32.const $push38=, 300
- i32.store $discard=, 0($pop37):p2align=3, $pop38
- i64.store $discard=, 96($23):p2align=4, $1
- i32.const $push39=, 3
- i32.const $16=, 96
- i32.add $16=, $23, $16
- i32.call $push40=, f3@FUNCTION, $pop39, $16
- i32.const $push41=, 421
- i32.ne $push42=, $pop40, $pop41
- br_if 0, $pop42 # 0: down to label9
+ i32.const $push35=, 300
+ i32.store $discard=, 104($15):p2align=3, $pop35
+ i64.store $discard=, 96($15):p2align=4, $1
+ i32.const $push36=, 3
+ i32.const $10=, 96
+ i32.add $10=, $15, $10
+ i32.call $push37=, f3@FUNCTION, $pop36, $10
+ i32.const $push38=, 421
+ i32.ne $push39=, $pop37, $pop38
+ br_if 0, $pop39 # 0: down to label9
# BB#7: # %if.end19
- i32.const $push95=, 8
- i32.const $17=, 80
- i32.add $17=, $23, $17
- i32.or $push43=, $17, $pop95
- i64.const $push44=, 369367187520
- i64.store $discard=, 0($pop43), $pop44
- i64.const $push45=, 304942678034
- i64.store $discard=, 80($23):p2align=4, $pop45
- i32.const $push94=, 4
- i32.const $18=, 80
- i32.add $18=, $23, $18
- i32.call $push46=, f3@FUNCTION, $pop94, $18
- i32.const $push47=, 243
- i32.ne $push48=, $pop46, $pop47
- br_if 0, $pop48 # 0: down to label9
+ i64.const $push40=, 369367187520
+ i64.store $discard=, 88($15), $pop40
+ i64.const $push41=, 304942678034
+ i64.store $discard=, 80($15):p2align=4, $pop41
+ i32.const $push83=, 4
+ i32.const $11=, 80
+ i32.add $11=, $15, $11
+ i32.call $push42=, f3@FUNCTION, $pop83, $11
+ i32.const $push43=, 243
+ i32.ne $push44=, $pop42, $pop43
+ br_if 0, $pop44 # 0: down to label9
# BB#8: # %if.end23
- i32.const $push50=, 24
- i32.const $19=, 48
- i32.add $19=, $23, $19
- i32.add $push51=, $19, $pop50
- i64.const $push52=, 4625759767262920704
- i64.store $discard=, 0($pop51), $pop52
- i32.const $push53=, 16
- i32.const $20=, 48
- i32.add $20=, $23, $20
- i32.add $push54=, $20, $pop53
- i32.const $push98=, 16
- i32.store $discard=, 0($pop54):p2align=4, $pop98
- i32.const $push55=, 8
- i32.const $21=, 48
- i32.add $21=, $23, $21
- i32.or $push56=, $21, $pop55
- i64.const $push57=, 4621256167635550208
- i64.store $discard=, 0($pop56), $pop57
- i64.const $push58=, 4618441417868443648
- i64.store $discard=, 48($23):p2align=4, $pop58
- i32.const $push97=, 4
- i32.const $22=, 48
- i32.add $22=, $23, $22
- call f4@FUNCTION, $pop97, $22
- i32.const $push96=, 0
- i32.load $push59=, x($pop96)
- i32.const $push60=, 43
- i32.ne $push61=, $pop59, $pop60
- br_if 0, $pop61 # 0: down to label9
+ i32.const $push46=, 24
+ i32.const $12=, 48
+ i32.add $12=, $15, $12
+ i32.add $push47=, $12, $pop46
+ i64.const $push48=, 4625759767262920704
+ i64.store $discard=, 0($pop47), $pop48
+ i32.const $push49=, 16
+ i32.const $13=, 48
+ i32.add $13=, $15, $13
+ i32.add $push50=, $13, $pop49
+ i32.const $push86=, 16
+ i32.store $discard=, 0($pop50):p2align=4, $pop86
+ i64.const $push51=, 4621256167635550208
+ i64.store $discard=, 56($15), $pop51
+ i64.const $push52=, 4618441417868443648
+ i64.store $discard=, 48($15):p2align=4, $pop52
+ i32.const $push85=, 4
+ i32.const $14=, 48
+ i32.add $14=, $15, $14
+ call f4@FUNCTION, $pop85, $14
+ i32.const $push84=, 0
+ i32.load $push53=, x($pop84)
+ i32.const $push54=, 43
+ i32.ne $push55=, $pop53, $pop54
+ br_if 0, $pop55 # 0: down to label9
# BB#9: # %if.end23
- i32.const $push99=, 0
- i32.load $push49=, y($pop99)
- i32.const $push62=, 6
- i32.ne $push63=, $pop49, $pop62
- br_if 0, $pop63 # 0: down to label9
+ i32.const $push87=, 0
+ i32.load $push45=, y($pop87)
+ i32.const $push56=, 6
+ i32.ne $push57=, $pop45, $pop56
+ br_if 0, $pop57 # 0: down to label9
# BB#10: # %if.end28
- i32.const $push65=, 32
- i32.add $push66=, $23, $pop65
- i64.const $push67=, 4638566878703255552
+ i32.const $push59=, 32
+ i32.add $push60=, $15, $pop59
+ i64.const $push61=, 4638566878703255552
+ i64.store $discard=, 0($pop60):p2align=4, $pop61
+ i32.const $push62=, 24
+ i32.add $push63=, $15, $pop62
+ i32.const $push64=, 17
+ i32.store $discard=, 0($pop63):p2align=3, $pop64
+ i32.const $push65=, 16
+ i32.add $push66=, $15, $pop65
+ i64.const $push67=, 4607182418800017408
i64.store $discard=, 0($pop66):p2align=4, $pop67
- i32.const $push68=, 24
- i32.add $push69=, $23, $pop68
- i32.const $push70=, 17
- i32.store $discard=, 0($pop69):p2align=3, $pop70
- i32.const $push71=, 16
- i32.add $push72=, $23, $pop71
- i64.const $push73=, 4607182418800017408
- i64.store $discard=, 0($pop72):p2align=4, $pop73
- i32.const $push74=, 8
- i32.or $push75=, $23, $pop74
- i64.const $push76=, 4626604192193052672
- i64.store $discard=, 0($pop75), $pop76
- i64.const $push77=, 4619567317775286272
- i64.store $discard=, 0($23):p2align=4, $pop77
- i32.const $push78=, 5
- call f4@FUNCTION, $pop78, $23
- i32.const $push100=, 0
- i32.load $push79=, x($pop100)
- i32.const $push80=, 144
- i32.ne $push81=, $pop79, $pop80
- br_if 0, $pop81 # 0: down to label9
+ i64.const $push68=, 4626604192193052672
+ i64.store $discard=, 8($15), $pop68
+ i64.const $push69=, 4619567317775286272
+ i64.store $discard=, 0($15):p2align=4, $pop69
+ i32.const $push70=, 5
+ call f4@FUNCTION, $pop70, $15
+ i32.const $push88=, 0
+ i32.load $push71=, x($pop88)
+ i32.const $push72=, 144
+ i32.ne $push73=, $pop71, $pop72
+ br_if 0, $pop73 # 0: down to label9
# BB#11: # %if.end28
- i32.const $push101=, 0
- i32.load $push64=, y($pop101)
- i32.const $push82=, 28
- i32.ne $push83=, $pop64, $pop82
- br_if 0, $pop83 # 0: down to label9
+ i32.const $push89=, 0
+ i32.load $push58=, y($pop89)
+ i32.const $push74=, 28
+ i32.ne $push75=, $pop58, $pop74
+ br_if 0, $pop75 # 0: down to label9
# BB#12: # %if.end33
- i32.const $push84=, 0
- i32.const $4=, 224
- i32.add $23=, $23, $4
- i32.const $4=, __stack_pointer
- i32.store $23=, 0($4), $23
- return $pop84
+ i32.const $push76=, 0
+ i32.const $push94=, 224
+ i32.add $15=, $15, $pop94
+ i32.const $push95=, __stack_pointer
+ i32.store $discard=, 0($pop95), $15
+ return $pop76
.LBB7_13: # %if.then32
end_block # label9:
call abort@FUNCTION