summaryrefslogtreecommitdiff
path: root/test/torture-s/vprintf-chk-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/vprintf-chk-1.c.s')
-rw-r--r--test/torture-s/vprintf-chk-1.c.s240
1 files changed, 121 insertions, 119 deletions
diff --git a/test/torture-s/vprintf-chk-1.c.s b/test/torture-s/vprintf-chk-1.c.s
index 3a4f34e43..07c1842cb 100644
--- a/test/torture-s/vprintf-chk-1.c.s
+++ b/test/torture-s/vprintf-chk-1.c.s
@@ -34,14 +34,15 @@ inner: # @inner
.param i32, i32
.local i32
# BB#0: # %entry
- i32.const $push100=, __stack_pointer
- i32.const $push97=, __stack_pointer
- i32.load $push98=, 0($pop97)
+ i32.const $push100=, 0
+ i32.const $push97=, 0
+ i32.load $push98=, __stack_pointer($pop97)
i32.const $push99=, 16
i32.sub $push104=, $pop98, $pop99
- i32.store $2=, 0($pop100), $pop104
+ i32.store $push106=, __stack_pointer($pop100), $pop104
+ tee_local $push105=, $2=, $pop106
i32.store $push0=, 12($2), $1
- i32.store $drop=, 8($2), $pop0
+ i32.store $drop=, 8($pop105), $pop0
block
i32.const $push1=, 10
i32.gt_u $push2=, $0, $pop1
@@ -73,19 +74,19 @@ inner: # @inner
.LBB1_2: # %sw.bb
end_block # label13:
i32.const $push88=, 0
- i32.const $push106=, 0
- i32.store $0=, should_optimize($pop88), $pop106
- i32.const $push105=, .L.str
+ i32.const $push108=, 0
+ i32.store $0=, should_optimize($pop88), $pop108
+ i32.const $push107=, .L.str
i32.load $push89=, 12($2)
- i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop105, $pop89
+ i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop107, $pop89
i32.load $push90=, should_optimize($0)
- i32.eqz $push147=, $pop90
- br_if 11, $pop147 # 11: down to label1
+ i32.eqz $push149=, $pop90
+ br_if 11, $pop149 # 11: down to label1
# BB#3: # %if.end
i32.store $drop=, should_optimize($0), $0
- i32.const $push107=, .L.str
+ i32.const $push109=, .L.str
i32.load $push91=, 8($2)
- i32.call $push92=, __vprintf_chk@FUNCTION, $2, $pop107, $pop91
+ i32.call $push92=, __vprintf_chk@FUNCTION, $2, $pop109, $pop91
i32.const $push93=, 5
i32.ne $push94=, $pop92, $pop93
br_if 11, $pop94 # 11: down to label1
@@ -98,23 +99,23 @@ inner: # @inner
unreachable
.LBB1_6: # %sw.bb9
end_block # label12:
- i32.const $push110=, 0
+ i32.const $push112=, 0
i32.const $push79=, 1
- i32.store $drop=, should_optimize($pop110), $pop79
- i32.const $push109=, .L.str.1
+ i32.store $drop=, should_optimize($pop112), $pop79
+ i32.const $push111=, .L.str.1
i32.load $push80=, 12($2)
- i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop109, $pop80
- i32.const $push108=, 0
- i32.load $push81=, should_optimize($pop108)
- i32.eqz $push148=, $pop81
- br_if 10, $pop148 # 10: down to label1
+ i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop111, $pop80
+ i32.const $push110=, 0
+ i32.load $push81=, should_optimize($pop110)
+ i32.eqz $push150=, $pop81
+ br_if 10, $pop150 # 10: down to label1
# BB#7: # %if.end13
- i32.const $push113=, 0
- i32.const $push112=, 0
- i32.store $drop=, should_optimize($pop113), $pop112
- i32.const $push111=, .L.str.1
+ i32.const $push115=, 0
+ i32.const $push114=, 0
+ i32.store $drop=, should_optimize($pop115), $pop114
+ i32.const $push113=, .L.str.1
i32.load $push82=, 8($2)
- i32.call $push83=, __vprintf_chk@FUNCTION, $2, $pop111, $pop82
+ i32.call $push83=, __vprintf_chk@FUNCTION, $2, $pop113, $pop82
i32.const $push84=, 6
i32.ne $push85=, $pop83, $pop84
br_if 10, $pop85 # 10: down to label1
@@ -127,23 +128,23 @@ inner: # @inner
unreachable
.LBB1_10: # %sw.bb21
end_block # label11:
- i32.const $push116=, 0
+ i32.const $push118=, 0
i32.const $push71=, 1
- i32.store $0=, should_optimize($pop116), $pop71
- i32.const $push115=, .L.str.2
+ i32.store $0=, should_optimize($pop118), $pop71
+ i32.const $push117=, .L.str.2
i32.load $push72=, 12($2)
- i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop115, $pop72
- i32.const $push114=, 0
- i32.load $push73=, should_optimize($pop114)
- i32.eqz $push149=, $pop73
- br_if 9, $pop149 # 9: down to label1
+ i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop117, $pop72
+ i32.const $push116=, 0
+ i32.load $push73=, should_optimize($pop116)
+ i32.eqz $push151=, $pop73
+ br_if 9, $pop151 # 9: down to label1
# BB#11: # %if.end25
- i32.const $push119=, 0
- i32.const $push118=, 0
- i32.store $drop=, should_optimize($pop119), $pop118
- i32.const $push117=, .L.str.2
+ i32.const $push121=, 0
+ i32.const $push120=, 0
+ i32.store $drop=, should_optimize($pop121), $pop120
+ i32.const $push119=, .L.str.2
i32.load $push74=, 8($2)
- i32.call $push75=, __vprintf_chk@FUNCTION, $2, $pop117, $pop74
+ i32.call $push75=, __vprintf_chk@FUNCTION, $2, $pop119, $pop74
i32.ne $push76=, $pop75, $0
br_if 9, $pop76 # 9: down to label1
# BB#12: # %if.end29
@@ -155,23 +156,23 @@ inner: # @inner
unreachable
.LBB1_14: # %sw.bb33
end_block # label10:
- i32.const $push122=, 0
+ i32.const $push124=, 0
i32.const $push64=, 1
- i32.store $drop=, should_optimize($pop122), $pop64
- i32.const $push121=, .L.str.3
+ i32.store $drop=, should_optimize($pop124), $pop64
+ i32.const $push123=, .L.str.3
i32.load $push65=, 12($2)
- i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop121, $pop65
- i32.const $push120=, 0
- i32.load $push66=, should_optimize($pop120)
- i32.eqz $push150=, $pop66
- br_if 8, $pop150 # 8: down to label1
+ i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop123, $pop65
+ i32.const $push122=, 0
+ i32.load $push66=, should_optimize($pop122)
+ i32.eqz $push152=, $pop66
+ br_if 8, $pop152 # 8: down to label1
# BB#15: # %if.end37
- i32.const $push125=, 0
- i32.const $push124=, 0
- i32.store $drop=, should_optimize($pop125), $pop124
- i32.const $push123=, .L.str.3
+ i32.const $push127=, 0
+ i32.const $push126=, 0
+ i32.store $drop=, should_optimize($pop127), $pop126
+ i32.const $push125=, .L.str.3
i32.load $push67=, 8($2)
- i32.call $push68=, __vprintf_chk@FUNCTION, $2, $pop123, $pop67
+ i32.call $push68=, __vprintf_chk@FUNCTION, $2, $pop125, $pop67
br_if 8, $pop68 # 8: down to label1
# BB#16: # %if.end41
i32.const $push69=, 0
@@ -183,19 +184,19 @@ inner: # @inner
.LBB1_18: # %sw.bb45
end_block # label9:
i32.const $push55=, 0
- i32.const $push127=, 0
- i32.store $0=, should_optimize($pop55), $pop127
- i32.const $push126=, .L.str.4
+ i32.const $push129=, 0
+ i32.store $0=, should_optimize($pop55), $pop129
+ i32.const $push128=, .L.str.4
i32.load $push56=, 12($2)
- i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop126, $pop56
+ i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop128, $pop56
i32.load $push57=, should_optimize($0)
- i32.eqz $push151=, $pop57
- br_if 7, $pop151 # 7: down to label1
+ i32.eqz $push153=, $pop57
+ br_if 7, $pop153 # 7: down to label1
# BB#19: # %if.end49
i32.store $drop=, should_optimize($0), $0
- i32.const $push128=, .L.str.4
+ i32.const $push130=, .L.str.4
i32.load $push58=, 8($2)
- i32.call $push59=, __vprintf_chk@FUNCTION, $2, $pop128, $pop58
+ i32.call $push59=, __vprintf_chk@FUNCTION, $2, $pop130, $pop58
i32.const $push60=, 5
i32.ne $push61=, $pop59, $pop60
br_if 7, $pop61 # 7: down to label1
@@ -209,19 +210,19 @@ inner: # @inner
.LBB1_22: # %sw.bb57
end_block # label8:
i32.const $push46=, 0
- i32.const $push130=, 0
- i32.store $0=, should_optimize($pop46), $pop130
- i32.const $push129=, .L.str.4
+ i32.const $push132=, 0
+ i32.store $0=, should_optimize($pop46), $pop132
+ i32.const $push131=, .L.str.4
i32.load $push47=, 12($2)
- i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop129, $pop47
+ i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop131, $pop47
i32.load $push48=, should_optimize($0)
- i32.eqz $push152=, $pop48
- br_if 6, $pop152 # 6: down to label1
+ i32.eqz $push154=, $pop48
+ br_if 6, $pop154 # 6: down to label1
# BB#23: # %if.end61
i32.store $drop=, should_optimize($0), $0
- i32.const $push131=, .L.str.4
+ i32.const $push133=, .L.str.4
i32.load $push49=, 8($2)
- i32.call $push50=, __vprintf_chk@FUNCTION, $2, $pop131, $pop49
+ i32.call $push50=, __vprintf_chk@FUNCTION, $2, $pop133, $pop49
i32.const $push51=, 6
i32.ne $push52=, $pop50, $pop51
br_if 6, $pop52 # 6: down to label1
@@ -235,19 +236,19 @@ inner: # @inner
.LBB1_26: # %sw.bb69
end_block # label7:
i32.const $push37=, 0
- i32.const $push133=, 0
- i32.store $0=, should_optimize($pop37), $pop133
- i32.const $push132=, .L.str.4
+ i32.const $push135=, 0
+ i32.store $0=, should_optimize($pop37), $pop135
+ i32.const $push134=, .L.str.4
i32.load $push38=, 12($2)
- i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop132, $pop38
+ i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop134, $pop38
i32.load $push39=, should_optimize($0)
- i32.eqz $push153=, $pop39
- br_if 5, $pop153 # 5: down to label1
+ i32.eqz $push155=, $pop39
+ br_if 5, $pop155 # 5: down to label1
# BB#27: # %if.end73
i32.store $drop=, should_optimize($0), $0
- i32.const $push134=, .L.str.4
+ i32.const $push136=, .L.str.4
i32.load $push40=, 8($2)
- i32.call $push41=, __vprintf_chk@FUNCTION, $2, $pop134, $pop40
+ i32.call $push41=, __vprintf_chk@FUNCTION, $2, $pop136, $pop40
i32.const $push42=, 1
i32.ne $push43=, $pop41, $pop42
br_if 5, $pop43 # 5: down to label1
@@ -261,19 +262,19 @@ inner: # @inner
.LBB1_30: # %sw.bb81
end_block # label6:
i32.const $push30=, 0
- i32.const $push136=, 0
- i32.store $0=, should_optimize($pop30), $pop136
- i32.const $push135=, .L.str.4
+ i32.const $push138=, 0
+ i32.store $0=, should_optimize($pop30), $pop138
+ i32.const $push137=, .L.str.4
i32.load $push31=, 12($2)
- i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop135, $pop31
+ i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop137, $pop31
i32.load $push32=, should_optimize($0)
- i32.eqz $push154=, $pop32
- br_if 4, $pop154 # 4: down to label1
+ i32.eqz $push156=, $pop32
+ br_if 4, $pop156 # 4: down to label1
# BB#31: # %if.end85
i32.store $drop=, should_optimize($0), $0
- i32.const $push137=, .L.str.4
+ i32.const $push139=, .L.str.4
i32.load $push33=, 8($2)
- i32.call $push34=, __vprintf_chk@FUNCTION, $2, $pop137, $pop33
+ i32.call $push34=, __vprintf_chk@FUNCTION, $2, $pop139, $pop33
br_if 4, $pop34 # 4: down to label1
# BB#32: # %if.end89
i32.const $push35=, 0
@@ -285,19 +286,19 @@ inner: # @inner
.LBB1_34: # %sw.bb93
end_block # label5:
i32.const $push21=, 0
- i32.const $push139=, 0
- i32.store $0=, should_optimize($pop21), $pop139
- i32.const $push138=, .L.str.5
+ i32.const $push141=, 0
+ i32.store $0=, should_optimize($pop21), $pop141
+ i32.const $push140=, .L.str.5
i32.load $push22=, 12($2)
- i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop138, $pop22
+ i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop140, $pop22
i32.load $push23=, should_optimize($0)
- i32.eqz $push155=, $pop23
- br_if 3, $pop155 # 3: down to label1
+ i32.eqz $push157=, $pop23
+ br_if 3, $pop157 # 3: down to label1
# BB#35: # %if.end97
i32.store $drop=, should_optimize($0), $0
- i32.const $push140=, .L.str.5
+ i32.const $push142=, .L.str.5
i32.load $push24=, 8($2)
- i32.call $push25=, __vprintf_chk@FUNCTION, $2, $pop140, $pop24
+ i32.call $push25=, __vprintf_chk@FUNCTION, $2, $pop142, $pop24
i32.const $push26=, 1
i32.ne $push27=, $pop25, $pop26
br_if 3, $pop27 # 3: down to label1
@@ -311,19 +312,19 @@ inner: # @inner
.LBB1_38: # %sw.bb105
end_block # label4:
i32.const $push12=, 0
- i32.const $push142=, 0
- i32.store $0=, should_optimize($pop12), $pop142
- i32.const $push141=, .L.str.6
+ i32.const $push144=, 0
+ i32.store $0=, should_optimize($pop12), $pop144
+ i32.const $push143=, .L.str.6
i32.load $push13=, 12($2)
- i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop141, $pop13
+ i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop143, $pop13
i32.load $push14=, should_optimize($0)
- i32.eqz $push156=, $pop14
- br_if 2, $pop156 # 2: down to label1
+ i32.eqz $push158=, $pop14
+ br_if 2, $pop158 # 2: down to label1
# BB#39: # %if.end109
i32.store $drop=, should_optimize($0), $0
- i32.const $push143=, .L.str.6
+ i32.const $push145=, .L.str.6
i32.load $push15=, 8($2)
- i32.call $push16=, __vprintf_chk@FUNCTION, $2, $pop143, $pop15
+ i32.call $push16=, __vprintf_chk@FUNCTION, $2, $pop145, $pop15
i32.const $push17=, 7
i32.ne $push18=, $pop16, $pop17
br_if 2, $pop18 # 2: down to label1
@@ -337,33 +338,33 @@ inner: # @inner
.LBB1_42: # %sw.bb117
end_block # label3:
i32.const $push3=, 0
- i32.const $push145=, 0
- i32.store $0=, should_optimize($pop3), $pop145
- i32.const $push144=, .L.str.7
+ i32.const $push147=, 0
+ i32.store $0=, should_optimize($pop3), $pop147
+ i32.const $push146=, .L.str.7
i32.load $push4=, 12($2)
- i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop144, $pop4
+ i32.call $drop=, __vprintf_chk@FUNCTION, $2, $pop146, $pop4
i32.load $push5=, should_optimize($0)
- i32.eqz $push157=, $pop5
- br_if 1, $pop157 # 1: down to label1
+ i32.eqz $push159=, $pop5
+ br_if 1, $pop159 # 1: down to label1
# BB#43: # %if.end121
i32.store $drop=, should_optimize($0), $0
- i32.const $push146=, .L.str.7
+ i32.const $push148=, .L.str.7
i32.load $push6=, 8($2)
- i32.call $push7=, __vprintf_chk@FUNCTION, $2, $pop146, $pop6
+ i32.call $push7=, __vprintf_chk@FUNCTION, $2, $pop148, $pop6
i32.const $push8=, 2
i32.ne $push9=, $pop7, $pop8
br_if 1, $pop9 # 1: down to label1
# BB#44: # %if.end125
i32.const $push10=, 0
i32.load $push11=, should_optimize($pop10)
- i32.eqz $push158=, $pop11
- br_if 1, $pop158 # 1: down to label1
+ i32.eqz $push160=, $pop11
+ br_if 1, $pop160 # 1: down to label1
.LBB1_45: # %sw.epilog
end_block # label2:
- i32.const $push103=, __stack_pointer
+ i32.const $push103=, 0
i32.const $push101=, 16
i32.add $push102=, $2, $pop101
- i32.store $drop=, 0($pop103), $pop102
+ i32.store $drop=, __stack_pointer($pop103), $pop102
return
.LBB1_46: # %sw.default
end_block # label1:
@@ -381,12 +382,12 @@ main: # @main
.result i32
.local i32, i32
# BB#0: # %entry
- i32.const $push19=, __stack_pointer
- i32.const $push16=, __stack_pointer
- i32.load $push17=, 0($pop16)
+ i32.const $push19=, 0
+ i32.const $push16=, 0
+ i32.load $push17=, __stack_pointer($pop16)
i32.const $push18=, 112
i32.sub $push35=, $pop17, $pop18
- i32.store $1=, 0($pop19), $pop35
+ i32.store $1=, __stack_pointer($pop19), $pop35
i32.const $push0=, 0
i32.const $push40=, 0
call inner@FUNCTION, $pop0, $pop40
@@ -438,11 +439,12 @@ main: # @main
i32.store $0=, 0($1), $pop36
i32.const $push15=, 10
call inner@FUNCTION, $pop15, $1
- i32.const $push22=, __stack_pointer
+ i32.const $push22=, 0
i32.const $push20=, 112
i32.add $push21=, $1, $pop20
- i32.store $drop=, 0($pop22), $pop21
- return $0
+ i32.store $drop=, __stack_pointer($pop22), $pop21
+ copy_local $push41=, $0
+ # fallthrough-return: $pop41
.endfunc
.Lfunc_end2:
.size main, .Lfunc_end2-main