diff options
Diffstat (limited to 'test/torture-s/string-opt-5.c.s')
-rw-r--r-- | test/torture-s/string-opt-5.c.s | 455 |
1 files changed, 228 insertions, 227 deletions
diff --git a/test/torture-s/string-opt-5.c.s b/test/torture-s/string-opt-5.c.s index e3b5ed23c..9923c39e4 100644 --- a/test/torture-s/string-opt-5.c.s +++ b/test/torture-s/string-opt-5.c.s @@ -8,262 +8,263 @@ main: # @main .result i32 .local i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $push119=, __stack_pointer - i32.const $push116=, __stack_pointer - i32.load $push117=, 0($pop116) - i32.const $push118=, 64 - i32.sub $push123=, $pop117, $pop118 - i32.store $1=, 0($pop119), $pop123 + i32.const $push123=, 0 + i32.const $push120=, 0 + i32.load $push121=, __stack_pointer($pop120) + i32.const $push122=, 64 + i32.sub $push127=, $pop121, $pop122 + i32.store $2=, __stack_pointer($pop123), $pop127 block - i32.const $push126=, 0 - i32.load $push125=, bar($pop126) - tee_local $push124=, $2=, $pop125 - i32.call $push3=, strlen@FUNCTION, $pop124 - i32.const $push4=, 8 - i32.ne $push5=, $pop3, $pop4 - br_if 0, $pop5 # 0: down to label0 + i32.const $push130=, 0 + i32.load $push129=, bar($pop130) + tee_local $push128=, $3=, $pop129 + i32.call $push5=, strlen@FUNCTION, $pop128 + i32.const $push6=, 8 + i32.ne $push7=, $pop5, $pop6 + br_if 0, $pop7 # 0: down to label0 # BB#1: # %if.end - i32.const $push132=, 0 - i32.const $push131=, 0 - i32.load $push130=, x($pop131) - tee_local $push129=, $4=, $pop130 - i32.const $push6=, 1 - i32.add $push128=, $pop129, $pop6 - tee_local $push127=, $3=, $pop128 - i32.store $0=, x($pop132), $pop127 - i32.const $push7=, 2 - i32.and $push8=, $3, $pop7 - i32.add $push9=, $2, $pop8 - i32.call $push10=, strlen@FUNCTION, $pop9 - i32.const $push11=, 6 - i32.ne $push12=, $pop10, $pop11 - br_if 0, $pop12 # 0: down to label0 -# BB#2: # %if.end4 - i32.const $push13=, 7 - i32.ne $push14=, $0, $pop13 + i32.const $push136=, 0 + i32.const $push135=, 0 + i32.load $push134=, x($pop135) + tee_local $push133=, $4=, $pop134 + i32.const $push8=, 1 + i32.add $push0=, $pop133, $pop8 + i32.store $push132=, x($pop136), $pop0 + tee_local $push131=, $0=, $pop132 + i32.const $push9=, 2 + i32.and $push10=, $pop131, $pop9 + i32.add $push11=, $3, $pop10 + i32.call $push12=, strlen@FUNCTION, $pop11 + i32.const $push13=, 6 + i32.ne $push14=, $pop12, $pop13 br_if 0, $pop14 # 0: down to label0 +# BB#2: # %if.end4 + i32.const $push15=, 7 + i32.ne $push16=, $0, $pop15 + br_if 0, $pop16 # 0: down to label0 # BB#3: # %if.end26 - i32.const $push133=, 0 - i32.const $push15=, -3 - i32.add $push0=, $4, $pop15 - i32.store $3=, x($pop133), $pop0 - i32.const $push16=, .L.str.1-3 - i32.add $push17=, $4, $pop16 - i32.const $push18=, .L.str.2 - i32.call $push19=, strcmp@FUNCTION, $pop17, $pop18 - br_if 0, $pop19 # 0: down to label0 -# BB#4: # %if.end33 - i32.const $push135=, .L.str.1 - i32.call $push20=, strcmp@FUNCTION, $pop135, $2 - i32.const $push134=, 0 - i32.ge_s $push21=, $pop20, $pop134 + i32.const $push137=, 0 + i32.const $push17=, -3 + i32.add $push1=, $4, $pop17 + i32.store $0=, x($pop137), $pop1 + i32.const $push18=, .L.str.1-3 + i32.add $push19=, $4, $pop18 + i32.const $push20=, .L.str.2 + i32.call $push21=, strcmp@FUNCTION, $pop19, $pop20 br_if 0, $pop21 # 0: down to label0 -# BB#5: # %if.end37 +# BB#4: # %if.end33 + i32.const $push139=, .L.str.1 + i32.call $push22=, strcmp@FUNCTION, $pop139, $3 i32.const $push138=, 0 - i32.const $push22=, -2 - i32.add $push1=, $4, $pop22 - i32.store $0=, x($pop138), $pop1 - i32.const $push137=, .L.str.1 - i32.const $push23=, 1 - i32.and $push24=, $3, $pop23 - i32.add $push25=, $2, $pop24 - i32.call $push26=, strcmp@FUNCTION, $pop137, $pop25 - i32.const $push136=, 0 - i32.ge_s $push27=, $pop26, $pop136 - br_if 0, $pop27 # 0: down to label0 + i32.ge_s $push23=, $pop22, $pop138 + br_if 0, $pop23 # 0: down to label0 +# BB#5: # %if.end37 + i32.const $push142=, 0 + i32.const $push24=, -2 + i32.add $push2=, $4, $pop24 + i32.store $1=, x($pop142), $pop2 + i32.const $push141=, .L.str.1 + i32.const $push25=, 1 + i32.and $push26=, $0, $pop25 + i32.add $push27=, $3, $pop26 + i32.call $push28=, strcmp@FUNCTION, $pop141, $pop27 + i32.const $push140=, 0 + i32.ge_s $push29=, $pop28, $pop140 + br_if 0, $pop29 # 0: down to label0 # BB#6: # %if.end47 - i32.const $push139=, 0 - i32.const $push28=, -1 - i32.add $push2=, $4, $pop28 - i32.store $3=, x($pop139), $pop2 - i32.const $push29=, 7 - i32.and $push30=, $0, $pop29 - i32.const $push31=, .L.str.1 - i32.add $push32=, $pop30, $pop31 - i32.const $push33=, 108 - i32.call $push34=, strchr@FUNCTION, $pop32, $pop33 - i32.const $push35=, .L.str.1+9 - i32.ne $push36=, $pop34, $pop35 - br_if 0, $pop36 # 0: down to label0 + i32.const $push143=, 0 + i32.const $push30=, -1 + i32.add $push3=, $4, $pop30 + i32.store $0=, x($pop143), $pop3 + i32.const $push31=, 7 + i32.and $push32=, $1, $pop31 + i32.const $push33=, .L.str.1 + i32.add $push34=, $pop32, $pop33 + i32.const $push35=, 108 + i32.call $push36=, strchr@FUNCTION, $pop34, $pop35 + i32.const $push37=, .L.str.1+9 + i32.ne $push38=, $pop36, $pop37 + br_if 0, $pop38 # 0: down to label0 # BB#7: # %if.end58 - i32.const $push37=, 111 - i32.call $push141=, strchr@FUNCTION, $2, $pop37 - tee_local $push140=, $0=, $pop141 - i32.const $push38=, 4 - i32.add $push39=, $2, $pop38 - i32.ne $push40=, $pop140, $pop39 - br_if 0, $pop40 # 0: down to label0 + i32.const $push41=, 111 + i32.call $push145=, strchr@FUNCTION, $3, $pop41 + tee_local $push144=, $1=, $pop145 + i32.const $push39=, 4 + i32.add $push40=, $3, $pop39 + i32.ne $push42=, $pop144, $pop40 + br_if 0, $pop42 # 0: down to label0 # BB#8: # %if.end63 - i32.call $push41=, strlen@FUNCTION, $2 - i32.const $push42=, 8 - i32.ne $push43=, $pop41, $pop42 - br_if 0, $pop43 # 0: down to label0 -# BB#9: # %if.end68 - i32.const $push44=, 120 - i32.call $push45=, strrchr@FUNCTION, $2, $pop44 + i32.call $push43=, strlen@FUNCTION, $3 + i32.const $push44=, 8 + i32.ne $push45=, $pop43, $pop44 br_if 0, $pop45 # 0: down to label0 +# BB#9: # %if.end68 + i32.const $push46=, 120 + i32.call $push47=, strrchr@FUNCTION, $3, $pop46 + br_if 0, $pop47 # 0: down to label0 # BB#10: # %if.end72 - i32.const $push46=, 111 - i32.call $push47=, strrchr@FUNCTION, $2, $pop46 - i32.ne $push48=, $pop47, $0 - br_if 0, $pop48 # 0: down to label0 + i32.const $push48=, 111 + i32.call $push49=, strrchr@FUNCTION, $3, $pop48 + i32.ne $push50=, $pop49, $1 + br_if 0, $pop50 # 0: down to label0 # BB#11: # %if.end77 - i32.const $push49=, 0 - i32.load $2=, y($pop49) - i32.const $push146=, 0 - i32.store $drop=, x($pop146), $4 - i32.const $push145=, 0 - i32.const $push54=, -1 - i32.add $push144=, $2, $pop54 - tee_local $push143=, $2=, $pop144 - i32.store $0=, y($pop145), $pop143 - i32.const $push50=, 1 - i32.and $push51=, $3, $pop50 - i32.const $push52=, .L.str.1 - i32.add $push53=, $pop51, $pop52 - i32.const $push142=, 1 - i32.and $push55=, $2, $pop142 - i32.const $push56=, .L.str.3 + i32.const $push51=, 0 + i32.store $3=, x($pop51), $4 + i32.const $push54=, 1 + i32.and $push55=, $0, $pop54 + i32.const $push56=, .L.str.1 i32.add $push57=, $pop55, $pop56 - i32.call $push58=, strcmp@FUNCTION, $pop53, $pop57 - br_if 0, $pop58 # 0: down to label0 + i32.const $push150=, 0 + i32.const $push149=, 0 + i32.load $push52=, y($pop149) + i32.const $push53=, -1 + i32.add $push4=, $pop52, $pop53 + i32.store $push148=, y($pop150), $pop4 + tee_local $push147=, $4=, $pop148 + i32.const $push146=, 1 + i32.and $push58=, $pop147, $pop146 + i32.const $push59=, .L.str.3 + i32.add $push60=, $pop58, $pop59 + i32.call $push61=, strcmp@FUNCTION, $pop57, $pop60 + br_if 0, $pop61 # 0: down to label0 # BB#12: # %if.end86 - br_if 0, $0 # 0: down to label0 + br_if 0, $4 # 0: down to label0 # BB#13: # %if.end86 - i32.const $push147=, 6 - i32.ne $push59=, $4, $pop147 - br_if 0, $pop59 # 0: down to label0 -# BB#14: # %if.end90 - i32.const $push152=, 0 i32.const $push151=, 6 - i32.store $drop=, x($pop152), $pop151 - i32.const $push62=, 1869376613 - i32.store $drop=, 1($1):p2align=0, $pop62 - i32.const $push150=, 0 - i32.const $push61=, 1 - i32.store $2=, y($pop150), $pop61 - i32.const $push60=, 32 - i32.store16 $4=, 5($1):p2align=0, $pop60 - i32.or $push149=, $1, $2 - tee_local $push148=, $2=, $pop149 - i32.const $push63=, .L.str.4 - i32.call $push64=, strcmp@FUNCTION, $pop148, $pop63 - br_if 0, $pop64 # 0: down to label0 + i32.ne $push62=, $3, $pop151 + br_if 0, $pop62 # 0: down to label0 +# BB#14: # %if.end90 + i32.const $push156=, 0 + i32.const $push63=, 1 + i32.store $3=, y($pop156), $pop63 + i32.const $push155=, 0 + i32.const $push154=, 6 + i32.store $drop=, x($pop155), $pop154 + i32.const $push64=, 32 + i32.store16 $4=, 5($2):p2align=0, $pop64 + i32.const $push65=, 1869376613 + i32.store $drop=, 1($2):p2align=0, $pop65 + i32.or $push153=, $2, $3 + tee_local $push152=, $3=, $pop153 + i32.const $push66=, .L.str.4 + i32.call $push67=, strcmp@FUNCTION, $pop152, $pop66 + br_if 0, $pop67 # 0: down to label0 # BB#15: # %if.end108 - i32.const $push67=, 64 - i32.call $4=, memset@FUNCTION, $1, $4, $pop67 - i32.const $push154=, 0 - i32.const $push69=, 2 - i32.store $drop=, y($pop154), $pop69 - i32.const $push153=, 0 - i32.const $push68=, 7 - i32.store $1=, x($pop153), $pop68 - i32.const $push71=, .L.str.5+1 - i32.const $push70=, 10 - i32.call $push72=, strncpy@FUNCTION, $2, $pop71, $pop70 - i32.ne $push73=, $pop72, $2 - br_if 0, $pop73 # 0: down to label0 + i32.const $push70=, 64 + i32.call $4=, memset@FUNCTION, $2, $4, $pop70 + i32.const $push158=, 0 + i32.const $push71=, 2 + i32.store $drop=, y($pop158), $pop71 + i32.const $push157=, 0 + i32.const $push72=, 7 + i32.store $2=, x($pop157), $pop72 + i32.const $push74=, .L.str.5+1 + i32.const $push73=, 10 + i32.call $push75=, strncpy@FUNCTION, $3, $pop74, $pop73 + i32.ne $push76=, $pop75, $3 + br_if 0, $pop76 # 0: down to label0 # BB#16: # %if.end108 - i32.const $push155=, 0 - i32.load $push65=, x($pop155) - i32.ne $push74=, $pop65, $1 - br_if 0, $pop74 # 0: down to label0 + i32.const $push159=, 0 + i32.load $push68=, x($pop159) + i32.ne $push77=, $pop68, $2 + br_if 0, $pop77 # 0: down to label0 # BB#17: # %if.end108 - i32.const $push156=, 0 - i32.load $push66=, y($pop156) - i32.const $push75=, 2 - i32.ne $push76=, $pop66, $pop75 - br_if 0, $pop76 # 0: down to label0 -# BB#18: # %lor.lhs.false125 - i32.const $push77=, .L.str.6 - i32.const $push78=, 12 - i32.call $push79=, memcmp@FUNCTION, $4, $pop77, $pop78 + i32.const $push160=, 0 + i32.load $push69=, y($pop160) + i32.const $push78=, 2 + i32.ne $push79=, $pop69, $pop78 br_if 0, $pop79 # 0: down to label0 +# BB#18: # %lor.lhs.false125 + i32.const $push81=, .L.str.6 + i32.const $push80=, 12 + i32.call $push82=, memcmp@FUNCTION, $4, $pop81, $pop80 + br_if 0, $pop82 # 0: down to label0 # BB#19: # %if.end130 - i32.const $push81=, 32 - i32.const $push80=, 64 - i32.call $2=, memset@FUNCTION, $4, $pop81, $pop80 - i32.const $push82=, .L.str.7 - i32.const $push83=, 8 - i32.call $push84=, strncpy@FUNCTION, $2, $pop82, $pop83 - i32.ne $push85=, $2, $pop84 - br_if 0, $pop85 # 0: down to label0 -# BB#20: # %lor.lhs.false136 - i32.const $push86=, .L.str.8 - i32.const $push87=, 9 - i32.call $push88=, memcmp@FUNCTION, $2, $pop86, $pop87 + i32.const $push84=, 32 + i32.const $push83=, 64 + i32.call $push162=, memset@FUNCTION, $4, $pop84, $pop83 + tee_local $push161=, $3=, $pop162 + i32.const $push86=, .L.str.7 + i32.const $push85=, 8 + i32.call $push87=, strncpy@FUNCTION, $3, $pop86, $pop85 + i32.ne $push88=, $pop161, $pop87 br_if 0, $pop88 # 0: down to label0 +# BB#20: # %lor.lhs.false136 + i32.const $push90=, .L.str.8 + i32.const $push89=, 9 + i32.call $push91=, memcmp@FUNCTION, $3, $pop90, $pop89 + br_if 0, $pop91 # 0: down to label0 # BB#21: # %if.end141 - i32.const $push89=, buf - i32.const $push91=, 32 - i32.const $push90=, 64 - i32.call $4=, memset@FUNCTION, $pop89, $pop91, $pop90 - i32.const $push92=, 0 - i32.load $1=, y($pop92) - i32.const $push161=, 0 - i32.const $push93=, 34 - i32.store $drop=, x($pop161), $pop93 - i32.const $push96=, 33 - i32.const $push160=, 0 - i32.const $push94=, 1 - i32.add $push95=, $1, $pop94 - i32.store $push159=, y($pop160), $pop95 - tee_local $push158=, $1=, $pop159 - i32.call $drop=, memset@FUNCTION, $4, $pop96, $pop158 - i32.const $push157=, 3 - i32.ne $push97=, $1, $pop157 - br_if 0, $pop97 # 0: down to label0 + i32.const $push94=, buf + i32.const $push93=, 32 + i32.const $push92=, 64 + i32.call $4=, memset@FUNCTION, $pop94, $pop93, $pop92 + i32.const $push96=, 0 + i32.const $push95=, 34 + i32.store $drop=, x($pop96), $pop95 + i32.const $push100=, 33 + i32.const $push167=, 0 + i32.const $push166=, 0 + i32.load $push97=, y($pop166) + i32.const $push98=, 1 + i32.add $push99=, $pop97, $pop98 + i32.store $push165=, y($pop167), $pop99 + tee_local $push164=, $2=, $pop165 + i32.call $drop=, memset@FUNCTION, $4, $pop100, $pop164 + i32.const $push163=, 3 + i32.ne $push101=, $2, $pop163 + br_if 0, $pop101 # 0: down to label0 # BB#22: # %lor.lhs.false148 - i32.const $push98=, .L.str.9 - i32.const $push162=, 3 - i32.call $push99=, memcmp@FUNCTION, $4, $pop98, $pop162 - br_if 0, $pop99 # 0: down to label0 + i32.const $push102=, .L.str.9 + i32.const $push168=, 3 + i32.call $push103=, memcmp@FUNCTION, $4, $pop102, $pop168 + br_if 0, $pop103 # 0: down to label0 # BB#23: # %lor.lhs.false158 - i32.const $push165=, 0 - i32.const $push100=, 4 - i32.store $drop=, y($pop165), $pop100 - i32.const $push164=, 0 - i64.const $push101=, 3255307777713450285 - i64.store $drop=, buf+3($pop164):p2align=0, $pop101 - i32.const $push102=, buf - i32.const $push103=, .L.str.10 - i32.const $push163=, 11 - i32.call $push104=, memcmp@FUNCTION, $pop102, $pop103, $pop163 - br_if 0, $pop104 # 0: down to label0 -# BB#24: # %lor.lhs.false171 + i32.const $push171=, 0 + i64.const $push104=, 3255307777713450285 + i64.store $drop=, buf+3($pop171):p2align=0, $pop104 i32.const $push170=, 0 + i32.const $push105=, 4 + i32.store $drop=, y($pop170), $pop105 + i32.const $push107=, buf + i32.const $push106=, .L.str.10 i32.const $push169=, 11 - i32.store $drop=, x($pop170), $pop169 - i32.const $push168=, 0 - i32.const $push105=, 5 - i32.store $drop=, y($pop168), $pop105 - i32.const $push167=, 0 - i32.const $push166=, 0 - i32.store $drop=, buf+11($pop167):p2align=0, $pop166 - i32.const $push108=, buf+8 - i32.const $push106=, .L.str.11 - i32.const $push107=, 7 - i32.call $push109=, memcmp@FUNCTION, $pop108, $pop106, $pop107 - br_if 0, $pop109 # 0: down to label0 -# BB#25: # %lor.lhs.false180 - i32.const $push111=, 0 - i32.const $push110=, 15 - i32.store $drop=, x($pop111), $pop110 - i32.const $push174=, 0 + i32.call $push108=, memcmp@FUNCTION, $pop107, $pop106, $pop169 + br_if 0, $pop108 # 0: down to label0 +# BB#24: # %lor.lhs.false171 + i32.const $push176=, 0 + i32.const $push109=, 5 + i32.store $drop=, y($pop176), $pop109 + i32.const $push175=, 0 + i32.const $push174=, 11 + i32.store $drop=, x($pop175), $pop174 i32.const $push173=, 0 - i32.store16 $push172=, buf+19($pop174):p2align=0, $pop173 - tee_local $push171=, $4=, $pop172 - i32.store $drop=, buf+15($pop171):p2align=0, $4 - i32.const $push114=, buf+10 - i32.const $push112=, .L.str.12 - i32.const $push113=, 11 - i32.call $push115=, memcmp@FUNCTION, $pop114, $pop112, $pop113 - br_if 0, $pop115 # 0: down to label0 + i32.const $push172=, 0 + i32.store $drop=, buf+11($pop173):p2align=0, $pop172 + i32.const $push112=, buf+8 + i32.const $push111=, .L.str.11 + i32.const $push110=, 7 + i32.call $push113=, memcmp@FUNCTION, $pop112, $pop111, $pop110 + br_if 0, $pop113 # 0: down to label0 +# BB#25: # %lor.lhs.false180 + i32.const $push115=, 0 + i32.const $push114=, 15 + i32.store $drop=, x($pop115), $pop114 + i32.const $push180=, 0 + i32.const $push179=, 0 + i32.store16 $push178=, buf+19($pop180):p2align=0, $pop179 + tee_local $push177=, $4=, $pop178 + i32.store $drop=, buf+15($pop177):p2align=0, $4 + i32.const $push118=, buf+10 + i32.const $push117=, .L.str.12 + i32.const $push116=, 11 + i32.call $push119=, memcmp@FUNCTION, $pop118, $pop117, $pop116 + br_if 0, $pop119 # 0: down to label0 # BB#26: # %if.end184 - i32.const $push122=, __stack_pointer - i32.const $push120=, 64 - i32.add $push121=, $2, $pop120 - i32.store $drop=, 0($pop122), $pop121 + i32.const $push126=, 0 + i32.const $push124=, 64 + i32.add $push125=, $3, $pop124 + i32.store $drop=, __stack_pointer($pop126), $pop125 return $4 .LBB0_27: # %if.then183 end_block # label0: |