templeos-info/public/Wb/Compiler/BackFA.HC.HTML

639 lines
77 KiB
Plaintext
Raw Normal View History

2024-03-24 21:24:44 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="generator" content="TempleOS V5.03">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/style/templeos.css">
<script src="/script/templeos.js"></script>
<style type="text/css">
.cF0{color:#000000;background-color:#ffffff;}
.cF1{color:#0000aa;background-color:#ffffff;}
.cF2{color:#00aa00;background-color:#ffffff;}
.cF3{color:#00aaaa;background-color:#ffffff;}
.cF4{color:#aa0000;background-color:#ffffff;}
.cF5{color:#aa00aa;background-color:#ffffff;}
.cF6{color:#aa5500;background-color:#ffffff;}
.cF7{color:#aaaaaa;background-color:#ffffff;}
.cF8{color:#555555;background-color:#ffffff;}
.cF9{color:#5555ff;background-color:#ffffff;}
.cFA{color:#55ff55;background-color:#ffffff;}
.cFB{color:#55ffff;background-color:#ffffff;}
.cFC{color:#ff5555;background-color:#ffffff;}
.cFD{color:#ff55ff;background-color:#ffffff;}
.cFE{color:#ffff55;background-color:#ffffff;}
.cFF{color:#ffffff;background-color:#ffffff;}
</style>
</head>
<body>
<pre id="content">
<a name="l1"></a><span class=cF0>#</span><span class=cF1>define</span><span class=cF0> CN_A2 0
<a name="l2"></a>#</span><span class=cF1>define</span><span class=cF0> CN_A1 1
<a name="l3"></a>#</span><span class=cF1>define</span><span class=cF0> CN_INST 2
<a name="l4"></a>#</span><span class=cF1>define</span><span class=cF0> CN_RES 3
<a name="l5"></a>
<a name="l6"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>CmpNoteFloatOp</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,
<a name="l7"></a> </span><span class=cF1>Bool</span><span class=cF0> dont_pushable,</span><span class=cF1>Bool</span><span class=cF0> dont_popable,</span><span class=cF9>I64</span><span class=cF0> pos)
<a name="l8"></a>{
<a name="l9"></a> </span><span class=cF1>Bool</span><span class=cF0> link=</span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l10"></a> </span><span class=cF1>if</span><span class=cF0> (cc-&gt;pass==7 &amp;&amp; cc-&gt;last_float_op_ic &amp;&amp;
<a name="l11"></a> cc-&gt;last_dont_popable &amp;&amp; dont_pushable) </span><span class=cF7>{</span><span class=cF0>
<a name="l12"></a> </span><span class=cF1>switch</span><span class=cF0> [pos] {
<a name="l13"></a> </span><span class=cF1>case</span><span class=cF0> CN_A2:
<a name="l14"></a> </span><span class=cF1>if</span><span class=cF0> (cc-&gt;last_float_op_ic!=tmpi &amp;&amp; cc-&gt;dont_push_float)
<a name="l15"></a> link=</span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l16"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l17"></a> </span><span class=cF1>case</span><span class=cF0> CN_A1:
<a name="l18"></a> </span><span class=cF1>if</span><span class=cF0> (cc-&gt;last_float_op_ic!=tmpi &amp;&amp; cc-&gt;dont_push_float)
<a name="l19"></a> link=</span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l20"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l21"></a> </span><span class=cF1>case</span><span class=cF0> CN_INST:
<a name="l22"></a> </span><span class=cF1>if</span><span class=cF0> (cc-&gt;last_float_op_ic!=tmpi) </span><span class=cF7>{</span><span class=cF0>
<a name="l23"></a> </span><span class=cF1>if</span><span class=cF0> (cc-&gt;dont_push_float) {
<a name="l24"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFD>intermediate_code_table</span><span class=cF0>[tmpi-&gt;ic_code].arg_cnt==</span><span class=cF3>IS_2_ARG</span><span class=cF0> &amp;&amp;
<a name="l25"></a> cc-&gt;last_float_op_ic-&gt;res.</span><span class=cF1>reg</span><span class=cF0>!=</span><span class=cF3>REG_R8</span><span class=cF0>)
<a name="l26"></a> tmpi-&gt;ic_flags|=</span><span class=cF3>ICF_ALT_TEMPLATE</span><span class=cF0>;
<a name="l27"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l28"></a> tmpi-&gt;ic_flags&amp;=~</span><span class=cF3>ICF_ALT_TEMPLATE</span><span class=cF0>;
<a name="l29"></a> link=</span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l30"></a> }
<a name="l31"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l32"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFD>intermediate_code_table</span><span class=cF0>[tmpi-&gt;ic_code].arg_cnt==</span><span class=cF3>IS_2_ARG</span><span class=cF0> &amp;&amp;
<a name="l33"></a> cc-&gt;last_float_op_pos!=CN_A1)
<a name="l34"></a> tmpi-&gt;ic_flags|=</span><span class=cF3>ICF_ALT_TEMPLATE</span><span class=cF0>;
<a name="l35"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l36"></a> tmpi-&gt;ic_flags&amp;=~</span><span class=cF3>ICF_ALT_TEMPLATE</span><span class=cF0>;
<a name="l37"></a> link=</span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l38"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l39"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l40"></a> </span><span class=cF1>case</span><span class=cF0> CN_RES:
<a name="l41"></a> </span><span class=cF1>if</span><span class=cF0> (cc-&gt;last_float_op_ic==tmpi &amp;&amp; cc-&gt;last_float_op_pos==CN_INST)
<a name="l42"></a> link=</span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l43"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l44"></a> }
<a name="l45"></a> </span><span class=cF1>if</span><span class=cF0> (link) {
<a name="l46"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>Bts</span><span class=cF7>(</span><span class=cF0>&amp;cc-&gt;last_float_op_ic-&gt;ic_flags,
<a name="l47"></a> </span><span class=cF3>ICf_DONT_POP_FLOAT0</span><span class=cF0>+cc-&gt;last_ic_float_op_num</span><span class=cF7>)</span><span class=cF0>)
<a name="l48"></a> cc-&gt;last_float_op_ic-&gt;ic_flags&amp;=~</span><span class=cF3>ICF_CODE_FINAL</span><span class=cF0>;
<a name="l49"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>Bts</span><span class=cF7>(</span><span class=cF0>&amp;tmpi-&gt;ic_flags,</span><span class=cF3>ICf_DONT_PUSH_FLOAT0</span><span class=cF0>+cc-&gt;cur_ic_float_op_num</span><span class=cF7>)</span><span class=cF0>)
<a name="l50"></a> tmpi-&gt;ic_flags&amp;=~</span><span class=cF3>ICF_CODE_FINAL</span><span class=cF0>;
<a name="l51"></a> }
<a name="l52"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l53"></a> cc-&gt;last_float_op_ic=tmpi;
<a name="l54"></a> cc-&gt;last_dont_pushable=dont_pushable;
<a name="l55"></a> cc-&gt;last_dont_popable=dont_popable;
<a name="l56"></a> cc-&gt;last_ic_float_op_num=cc-&gt;cur_ic_float_op_num++;
<a name="l57"></a> cc-&gt;last_float_op_pos=pos;
<a name="l58"></a> </span><span class=cF1>if</span><span class=cF0> (cc-&gt;cur_ic_float_op_num&gt;4)
<a name="l59"></a> </span><span class=cF5>throw</span><span class=cF0>(</span><span class=cF6>'Compiler'</span><span class=cF0>);
<a name="l60"></a>}
<a name="l61"></a>
<a name="l62"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>CmpSetFloatOpPushPop</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,
<a name="l63"></a> </span><span class=cF1>Bool</span><span class=cF0> *dont_push_float,</span><span class=cF1>Bool</span><span class=cF0> *dont_pop_float)
<a name="l64"></a>{
<a name="l65"></a> </span><span class=cF1>if</span><span class=cF0> (cc-&gt;pass==7) </span><span class=cF7>{</span><span class=cF0>
<a name="l66"></a> *dont_push_float=</span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l67"></a> *dont_pop_float =</span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l68"></a> tmpi-&gt;ic_flags&amp;=~</span><span class=cF3>ICF_CODE_FINAL</span><span class=cF0>;
<a name="l69"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l70"></a> *dont_push_float=</span><span class=cF5>Bt</span><span class=cF0>(&amp;tmpi-&gt;ic_flags,
<a name="l71"></a> </span><span class=cF3>ICf_DONT_PUSH_FLOAT0</span><span class=cF0>+cc-&gt;cur_ic_float_op_num);
<a name="l72"></a> *dont_pop_float=</span><span class=cF5>Bt</span><span class=cF0>(&amp;tmpi-&gt;ic_flags,
<a name="l73"></a> </span><span class=cF3>ICf_DONT_POP_FLOAT0</span><span class=cF0>+cc-&gt;cur_ic_float_op_num);
<a name="l74"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l75"></a>}
<a name="l76"></a>
<a name="l77"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>ICCopyTemplate</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,</span><span class=cF9>I64</span><span class=cF0> op,
<a name="l78"></a> </span><span class=cF1>Bool</span><span class=cF0> off_the_record,</span><span class=cF1>Bool</span><span class=cF0> dont_pushable,</span><span class=cF1>Bool</span><span class=cF0> dont_popable,</span><span class=cF9>I64</span><span class=cF0> pos)
<a name="l79"></a>{
<a name="l80"></a> </span><span class=cF1>Bool</span><span class=cF0> dont_push_float,dont_pop_float,alt;
<a name="l81"></a> </span><span class=cF1>U8</span><span class=cF0> *ptr;
<a name="l82"></a> </span><span class=cF9>I64</span><span class=cF0> i=0;
<a name="l83"></a> </span><span class=cF1>if</span><span class=cF0> (!off_the_record) </span><span class=cF7>{</span><span class=cF0>
<a name="l84"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;ic_flags&amp;</span><span class=cF3>ICF_ALT_TEMPLATE</span><span class=cF0>)
<a name="l85"></a> alt=</span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l86"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l87"></a> alt=</span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l88"></a> </span><span class=cFD>CmpSetFloatOpPushPop</span><span class=cF0>(cc,tmpi,&amp;dont_push_float,&amp;dont_pop_float);
<a name="l89"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l90"></a> dont_push_float=</span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l91"></a> dont_pop_float=</span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l92"></a> alt=</span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l93"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l94"></a> </span><span class=cF1>if</span><span class=cF0> (alt &amp;&amp; dont_push_float &amp;&amp; !dont_pop_float) </span><span class=cF7>{</span><span class=cF0>
<a name="l95"></a> ptr=</span><span class=cFD>cmp_templates_dont_push2</span><span class=cF0>[op];
<a name="l96"></a> i=</span><span class=cFD>cmp_templates_dont_push2</span><span class=cF0>[op+1]-ptr;
<a name="l97"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l98"></a> </span><span class=cF1>if</span><span class=cF0> (!i) </span><span class=cF7>{</span><span class=cF0>
<a name="l99"></a> </span><span class=cF1>if</span><span class=cF0> (dont_push_float) {
<a name="l100"></a> </span><span class=cF1>if</span><span class=cF0> (dont_pop_float) </span><span class=cF7>{</span><span class=cF0>
<a name="l101"></a> ptr=</span><span class=cFD>cmp_templates_dont_push_pop</span><span class=cF0>[op];
<a name="l102"></a> i=</span><span class=cFD>cmp_templates_dont_push_pop</span><span class=cF0>[op+1]-ptr;
<a name="l103"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l104"></a> ptr=</span><span class=cFD>cmp_templates_dont_push</span><span class=cF0>[op];
<a name="l105"></a> i=</span><span class=cFD>cmp_templates_dont_push</span><span class=cF0>[op+1]-ptr;
<a name="l106"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l107"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l108"></a> </span><span class=cF1>if</span><span class=cF0> (dont_pop_float) </span><span class=cF7>{</span><span class=cF0>
<a name="l109"></a> ptr=</span><span class=cFD>cmp_templates_dont_pop</span><span class=cF0>[op];
<a name="l110"></a> i=</span><span class=cFD>cmp_templates_dont_pop</span><span class=cF0>[op+1]-ptr;
<a name="l111"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l112"></a> ptr=</span><span class=cFD>cmp_templates</span><span class=cF0>[op];
<a name="l113"></a> i=</span><span class=cFD>cmp_templates</span><span class=cF0>[op+1]-ptr;
<a name="l114"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l115"></a> }
<a name="l116"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l117"></a> </span><span class=cF5>MemCpy</span><span class=cF0>(&amp;tmpi-&gt;ic_body[tmpi-&gt;ic_cnt],ptr,i);
<a name="l118"></a> </span><span class=cF1>if</span><span class=cF0> (!off_the_record)
<a name="l119"></a> </span><span class=cFD>CmpNoteFloatOp</span><span class=cF0>(cc,tmpi,dont_pushable,dont_popable,pos);
<a name="l120"></a> tmpi-&gt;ic_cnt+=i;
<a name="l121"></a>}
<a name="l122"></a>
<a name="l123"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>ICFCvt</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,</span><span class=cF9>I64</span><span class=cF0> r1,
<a name="l124"></a> </span><span class=cF9>CICType</span><span class=cF0> t2,</span><span class=cF9>I64</span><span class=cF0> r2,</span><span class=cF9>I64</span><span class=cF0> d2,</span><span class=cF1>Bool</span><span class=cF0> to_int,</span><span class=cF9>I64</span><span class=cF0> pos,</span><span class=cF9>I64</span><span class=cF0> rip)
<a name="l125"></a>{
<a name="l126"></a> </span><span class=cF9>I64</span><span class=cF0> rsp_size=0,op1,op2;
<a name="l127"></a> </span><span class=cF1>Bool</span><span class=cF0> dont_push_float,dont_pop_float;
<a name="l128"></a>
<a name="l129"></a> </span><span class=cF1>if</span><span class=cF0> (to_int) </span><span class=cF7>{</span><span class=cF0>
<a name="l130"></a> op1=SLASH_OP_FLD;
<a name="l131"></a> op2=SLASH_OP_FISTTP;
<a name="l132"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l133"></a> op1=SLASH_OP_FILD;
<a name="l134"></a> op2=SLASH_OP_FSTP;
<a name="l135"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l136"></a>
<a name="l137"></a> </span><span class=cFD>CmpSetFloatOpPushPop</span><span class=cF0>(cc,tmpi,&amp;dont_push_float,&amp;dont_pop_float);
<a name="l138"></a> </span><span class=cF1>if</span><span class=cF0> (!dont_push_float) </span><span class=cF7>{</span><span class=cF0>
<a name="l139"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>t2.raw_type&gt;=</span><span class=cF3>RT_I64</span><span class=cF0> &amp;&amp; t2&amp;</span><span class=cF3>MDG_DISP_SIB_RIP</span><span class=cF7>)</span><span class=cF0>) {
<a name="l140"></a> </span><span class=cFD>ICPush</span><span class=cF0>(tmpi,t2,r2,d2,rip);
<a name="l141"></a> t2=</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>; r2=</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8; d2=0;
<a name="l142"></a> rsp_size=8;
<a name="l143"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l144"></a> </span><span class=cF1>if</span><span class=cF0> (!dont_pop_float) </span><span class=cF7>{</span><span class=cF0>
<a name="l145"></a> rsp_size=8;
<a name="l146"></a> </span><span class=cFD>ICAddRSP</span><span class=cF0>(tmpi,-8);
<a name="l147"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l148"></a> }
<a name="l149"></a> </span><span class=cFD>ICSlashOp</span><span class=cF0>(tmpi,t2,r2,d2,op1,rip);
<a name="l150"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l151"></a> </span><span class=cF1>if</span><span class=cF0> (!dont_pop_float) {
<a name="l152"></a> rsp_size=8;
<a name="l153"></a> </span><span class=cFD>ICAddRSP</span><span class=cF0>(tmpi,-8);
<a name="l154"></a> }
<a name="l155"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l156"></a> </span><span class=cF1>if</span><span class=cF0> (to_int)
<a name="l157"></a> </span><span class=cFD>CmpNoteFloatOp</span><span class=cF0>(cc,tmpi,</span><span class=cF3>TRUE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,pos);
<a name="l158"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l159"></a> </span><span class=cFD>CmpNoteFloatOp</span><span class=cF0>(cc,tmpi,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>TRUE</span><span class=cF0>,pos);
<a name="l160"></a> </span><span class=cF1>if</span><span class=cF0> (dont_pop_float) </span><span class=cF7>{</span><span class=cF0>
<a name="l161"></a> </span><span class=cF1>if</span><span class=cF0> (rsp_size)
<a name="l162"></a> </span><span class=cFD>ICAddRSP</span><span class=cF0>(tmpi,rsp_size);
<a name="l163"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l164"></a> </span><span class=cFD>ICSlashOp</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8,0,op2,rip);
<a name="l165"></a> </span><span class=cFD>ICPop</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,r1,0,rip);
<a name="l166"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l167"></a>}
<a name="l168"></a>
<a name="l169"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>ICFCvt2</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,</span><span class=cF9>I64</span><span class=cF0> r1,
<a name="l170"></a> </span><span class=cF9>CICType</span><span class=cF0> t2,</span><span class=cF9>I64</span><span class=cF0> r2,</span><span class=cF9>I64</span><span class=cF0> d2,</span><span class=cF1>Bool</span><span class=cF0> to_int,</span><span class=cF9>I64</span><span class=cF0> rip)
<a name="l171"></a>{
<a name="l172"></a> </span><span class=cF9>I64</span><span class=cF0> rsp_size=0,op1,op2;
<a name="l173"></a> </span><span class=cF1>if</span><span class=cF0> (to_int) </span><span class=cF7>{</span><span class=cF0>
<a name="l174"></a> op1=SLASH_OP_FLD;
<a name="l175"></a> op2=SLASH_OP_FISTTP;
<a name="l176"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l177"></a> op1=SLASH_OP_FILD;
<a name="l178"></a> op2=SLASH_OP_FSTP;
<a name="l179"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l180"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>t2.raw_type&gt;=</span><span class=cF3>RT_I64</span><span class=cF0> &amp;&amp; t2&amp;</span><span class=cF3>MDG_DISP_SIB_RIP</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l181"></a> </span><span class=cFD>ICPush</span><span class=cF0>(tmpi,t2,r2,d2,rip);
<a name="l182"></a> t2=</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>; r2=</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8; d2=0;
<a name="l183"></a> rsp_size=8;
<a name="l184"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l185"></a> rsp_size=8;
<a name="l186"></a> </span><span class=cFD>ICAddRSP</span><span class=cF0>(tmpi,-8);
<a name="l187"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l188"></a> </span><span class=cFD>ICSlashOp</span><span class=cF0>(tmpi,t2,r2,d2,op1,rip);
<a name="l189"></a> </span><span class=cFD>ICSlashOp</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8,0,op2,rip);
<a name="l190"></a> </span><span class=cFD>ICPop</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,r1,0,rip);
<a name="l191"></a> cc-&gt;last_dont_pushable=cc-&gt;last_dont_popable=</span><span class=cF3>FALSE</span><span class=cF0>; </span><span class=cF2>//TODO: improve this</span><span class=cF0>
<a name="l192"></a>}
<a name="l193"></a>
<a name="l194"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>ICFUnaryMinus</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,</span><span class=cF1>U8</span><span class=cF0> *buf2,</span><span class=cF9>I64</span><span class=cF0> rip)
<a name="l195"></a>{
<a name="l196"></a> </span><span class=cF9>CICArg</span><span class=cF0> *arg1=&amp;tmpi-&gt;arg1;
<a name="l197"></a> </span><span class=cF9>I64</span><span class=cF0> rsp_size=0,builtin1=0,t1,r1,d1;
<a name="l198"></a> </span><span class=cF1>Bool</span><span class=cF0> dont_push_float,dont_pop_float;
<a name="l199"></a>
<a name="l200"></a> </span><span class=cF1>if</span><span class=cF0> (cc-&gt;flags&amp;</span><span class=cF3>CCF_AOT_COMPILE</span><span class=cF0>)
<a name="l201"></a> buf2=cc-&gt;aotc-&gt;rip;
<a name="l202"></a>
<a name="l203"></a> </span><span class=cFD>CmpSetFloatOpPushPop</span><span class=cF0>(cc,tmpi,&amp;dont_push_float,&amp;dont_pop_float);
<a name="l204"></a> </span><span class=cF1>if</span><span class=cF0> (!dont_push_float) </span><span class=cF7>{</span><span class=cF0>
<a name="l205"></a> </span><span class=cF1>if</span><span class=cF0> (arg1-&gt;type.raw_type&gt;=</span><span class=cF3>RT_I64</span><span class=cF0> &amp;&amp; arg1-&gt;type&amp;</span><span class=cF3>MDG_DISP_SIB_RIP</span><span class=cF0>) {
<a name="l206"></a> t1=arg1-&gt;type;
<a name="l207"></a> r1=arg1-&gt;</span><span class=cF1>reg</span><span class=cF0>;
<a name="l208"></a> d1=arg1-&gt;disp;
<a name="l209"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l210"></a> </span><span class=cF1>if</span><span class=cF0> (arg1-&gt;type&amp;</span><span class=cF3>MDF_IMM</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l211"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>builtin1=</span><span class=cFD>ICBuiltInFloatConst</span><span class=cF0>(arg1-&gt;disp</span><span class=cF7>(</span><span class=cF1>F64</span><span class=cF7>)</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>) {
<a name="l212"></a> t1=</span><span class=cF3>MDF_RIP_DISP32</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>;
<a name="l213"></a> r1=</span><span class=cF3>REG_RIP</span><span class=cF0>;
<a name="l214"></a> d1=</span><span class=cFD>COCFloatConstFind</span><span class=cF0>(cc,arg1-&gt;disp</span><span class=cF7>(</span><span class=cF1>F64</span><span class=cF7>)</span><span class=cF0>)+buf2;
<a name="l215"></a> }
<a name="l216"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l217"></a> </span><span class=cFD>ICPush</span><span class=cF0>(tmpi,arg1-&gt;type,arg1-&gt;</span><span class=cF1>reg</span><span class=cF0>,arg1-&gt;disp,rip);
<a name="l218"></a> t1=</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>; r1=</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8; d1=0;
<a name="l219"></a> rsp_size+=8;
<a name="l220"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l221"></a> }
<a name="l222"></a> </span><span class=cF1>if</span><span class=cF0> (builtin1)
<a name="l223"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,builtin1);
<a name="l224"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l225"></a> </span><span class=cFD>ICSlashOp</span><span class=cF0>(tmpi,t1,r1,d1,SLASH_OP_FLD,rip);
<a name="l226"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l227"></a> </span><span class=cF1>if</span><span class=cF0> (!dont_pop_float &amp;&amp; !rsp_size) </span><span class=cF7>{</span><span class=cF0>
<a name="l228"></a> rsp_size=8;
<a name="l229"></a> </span><span class=cFD>ICAddRSP</span><span class=cF0>(tmpi,-8);
<a name="l230"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l231"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xE0D9); </span><span class=cF2>//FCHS</span><span class=cF0>
<a name="l232"></a> </span><span class=cFD>CmpNoteFloatOp</span><span class=cF0>(cc,tmpi,</span><span class=cF3>TRUE</span><span class=cF0>,</span><span class=cF3>TRUE</span><span class=cF0>,CN_INST);
<a name="l233"></a> </span><span class=cF1>if</span><span class=cF0> (dont_pop_float) </span><span class=cF7>{</span><span class=cF0>
<a name="l234"></a> </span><span class=cF1>if</span><span class=cF0> (rsp_size)
<a name="l235"></a> </span><span class=cFD>ICAddRSP</span><span class=cF0>(tmpi,rsp_size);
<a name="l236"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l237"></a> </span><span class=cFD>ICSlashOp</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8,0,SLASH_OP_FSTP,rip);
<a name="l238"></a> </span><span class=cFD>ICPop</span><span class=cF0>(tmpi,tmpi-&gt;res.type,tmpi-&gt;res.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;res.disp,rip);
<a name="l239"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l240"></a>}
<a name="l241"></a>
<a name="l242"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>ICFMod</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,</span><span class=cF9>I64</span><span class=cF0> rip)
<a name="l243"></a>{</span><span class=cF2>//for MOD</span><span class=cF0>
<a name="l244"></a> </span><span class=cF1>Bool</span><span class=cF0> dont_push_float,dont_pop_float;
<a name="l245"></a> </span><span class=cFD>CmpSetFloatOpPushPop</span><span class=cF0>(cc,tmpi,&amp;dont_push_float,&amp;dont_pop_float);
<a name="l246"></a> </span><span class=cF1>if</span><span class=cF0> (dont_push_float) </span><span class=cF7>{</span><span class=cF0>
<a name="l247"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;ic_flags&amp;</span><span class=cF3>ICF_ALT_TEMPLATE</span><span class=cF0>)
<a name="l248"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
<a name="l249"></a> tmpi-&gt;arg1.type,tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg1.disp,rip);
<a name="l250"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l251"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
<a name="l252"></a> tmpi-&gt;arg2.type,tmpi-&gt;arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg2.disp,rip);
<a name="l253"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l254"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
<a name="l255"></a> tmpi-&gt;arg2.type,tmpi-&gt;arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg2.disp,rip);
<a name="l256"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RDX</span><span class=cF0>,0,
<a name="l257"></a> tmpi-&gt;arg1.type,tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg1.disp,rip);
<a name="l258"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l259"></a></span><span class=cF2>//TODO: unpushable,unpop? Not sure</span><span class=cF0>
<a name="l260"></a> </span><span class=cFD>ICCopyTemplate</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_MOD</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,CN_INST);
<a name="l261"></a> </span><span class=cF1>if</span><span class=cF0> (!dont_pop_float)
<a name="l262"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,tmpi-&gt;res.type,tmpi-&gt;res.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;res.disp,
<a name="l263"></a> </span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,rip);
<a name="l264"></a>}
<a name="l265"></a>
<a name="l266"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>ICFPow</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,</span><span class=cF1>U8</span><span class=cF0> *buf,</span><span class=cF9>I64</span><span class=cF0> rip)
<a name="l267"></a>{</span><span class=cF2>//for POW</span><span class=cF0>
<a name="l268"></a> </span><span class=cF9>I64</span><span class=cF0> i;
<a name="l269"></a> </span><span class=cF9>CAOTImportExport</span><span class=cF0> *tmpie;
<a name="l270"></a> </span><span class=cF9>CHashExport</span><span class=cF0> *tmpex=</span><span class=cF5>HashFind</span><span class=cF0>(</span><span class=cF6>&quot;SYS_POW&quot;</span><span class=cF0>,
<a name="l271"></a> cc-&gt;htc.hash_table_lst,</span><span class=cF3>HTT_EXPORT_SYS_SYM</span><span class=cF0>);
<a name="l272"></a>
<a name="l273"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
<a name="l274"></a> tmpi-&gt;arg2.type,tmpi-&gt;arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg2.disp,rip);
<a name="l275"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RDX</span><span class=cF0>,0,
<a name="l276"></a> tmpi-&gt;arg1.type,tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg1.disp,rip);
<a name="l277"></a> </span><span class=cF1>if</span><span class=cF0> (cc-&gt;flags&amp;</span><span class=cF3>CCF_AOT_COMPILE</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l278"></a> </span><span class=cF1>if</span><span class=cF0> (!tmpex) {
<a name="l279"></a> tmpex=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CHashExport</span><span class=cF7>)</span><span class=cF0>);
<a name="l280"></a> tmpex-&gt;str=</span><span class=cF5>StrNew</span><span class=cF0>(</span><span class=cF6>&quot;SYS_POW&quot;</span><span class=cF0>);
<a name="l281"></a> tmpex-&gt;type=</span><span class=cF3>HTT_EXPORT_SYS_SYM</span><span class=cF0>|</span><span class=cF3>HTF_UNRESOLVED</span><span class=cF0>|</span><span class=cF3>HTF_IMPORT</span><span class=cF0>;
<a name="l282"></a> </span><span class=cF5>HashAdd</span><span class=cF0>(tmpex,cc-&gt;htc.glbl_hash_table);
<a name="l283"></a> }
<a name="l284"></a> </span><span class=cF1>if</span><span class=cF0> (tmpex-&gt;type&amp;</span><span class=cF3>HTF_IMPORT</span><span class=cF0>) {
<a name="l285"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>GetOption</span><span class=cF7>(</span><span class=cF3>OPTf_USE_IMM64</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l286"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xBB48);
<a name="l287"></a> </span><span class=cFD>ICU64</span><span class=cF0>(tmpi,0);
<a name="l288"></a> </span><span class=cF1>if</span><span class=cF0> (buf) {
<a name="l289"></a> tmpie=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CAOTImportExport</span><span class=cF7>)</span><span class=cF0>);
<a name="l290"></a> tmpie-&gt;type=</span><span class=cF3>IET_IMM_I64</span><span class=cF0>;
<a name="l291"></a> tmpie-&gt;rip=rip+tmpi-&gt;ic_cnt-8;
<a name="l292"></a> tmpie-&gt;next=tmpex-&gt;ie_lst;
<a name="l293"></a> tmpex-&gt;ie_lst=tmpie;
<a name="l294"></a> }
<a name="l295"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xD3FF);
<a name="l296"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l297"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xE8);
<a name="l298"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,-</span><span class=cF7>(</span><span class=cF0>rip+tmpi-&gt;ic_cnt+4</span><span class=cF7>)</span><span class=cF0>);
<a name="l299"></a> </span><span class=cF1>if</span><span class=cF0> (buf) {
<a name="l300"></a> tmpie=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CAOTImportExport</span><span class=cF7>)</span><span class=cF0>);
<a name="l301"></a> tmpie-&gt;type=</span><span class=cF3>IET_REL_I32</span><span class=cF0>;
<a name="l302"></a> tmpie-&gt;rip=rip+tmpi-&gt;ic_cnt-4;
<a name="l303"></a> tmpie-&gt;next=tmpex-&gt;ie_lst;
<a name="l304"></a> tmpex-&gt;ie_lst=tmpie;
<a name="l305"></a> }
<a name="l306"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l307"></a> } </span><span class=cF1>else</span><span class=cF0> {</span><span class=cF2>//Kernel</span><span class=cF0>
<a name="l308"></a> </span><span class=cF1>if</span><span class=cF0> (tmpex-&gt;type&amp;</span><span class=cF3>HTF_UNRESOLVED</span><span class=cF0>)
<a name="l309"></a> </span><span class=cF5>throw</span><span class=cF0>(</span><span class=cF6>'Compiler'</span><span class=cF0>);
<a name="l310"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l311"></a> i=tmpex-&gt;val-(rip+tmpi-&gt;ic_cnt+5);
<a name="l312"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF3>I32_MIN</span><span class=cF0>&lt;=i&lt;=</span><span class=cF3>I32_MAX</span><span class=cF7>)</span><span class=cF0>) {
<a name="l313"></a> </span><span class=cF5>throw</span><span class=cF0>(</span><span class=cF6>'Compiler'</span><span class=cF0>);
<a name="l314"></a></span><span class=cF2>//</span><span class=cF0> </span><span class=cF2> ICU16(tmpi,0xBB48);</span><span class=cF0>
<a name="l315"></a> </span><span class=cF2>//</span><span class=cF0> </span><span class=cF2> ICU64(tmpi,tmpex-&gt;val);</span><span class=cF0>
<a name="l316"></a> </span><span class=cF2>//</span><span class=cF0> </span><span class=cF2> ICU16(tmpi,0xD3FF);</span><span class=cF0>
<a name="l317"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l318"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xE8);
<a name="l319"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,i);
<a name="l320"></a> }
<a name="l321"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l322"></a> }
<a name="l323"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l324"></a> i=tmpex-&gt;val-(rip+tmpi-&gt;ic_cnt+5);
<a name="l325"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF3>I32_MIN</span><span class=cF0>&lt;=i&lt;=</span><span class=cF3>I32_MAX</span><span class=cF7>)</span><span class=cF0>) {
<a name="l326"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xBB48);
<a name="l327"></a> </span><span class=cFD>ICU64</span><span class=cF0>(tmpi,tmpex-&gt;val);
<a name="l328"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0xD3FF);
<a name="l329"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l330"></a> </span><span class=cFD>ICU8</span><span class=cF0>(tmpi,0xE8);
<a name="l331"></a> </span><span class=cFD>ICU32</span><span class=cF0>(tmpi,i);
<a name="l332"></a> }
<a name="l333"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l334"></a> tmpi-&gt;ic_flags&amp;=~</span><span class=cF3>ICF_CODE_FINAL</span><span class=cF0>;
<a name="l335"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,tmpi-&gt;res.type,tmpi-&gt;res.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;res.disp,
<a name="l336"></a> </span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,rip);
<a name="l337"></a>}
<a name="l338"></a>
<a name="l339"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>ICFOp</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,</span><span class=cF9>I64</span><span class=cF0> op,</span><span class=cF1>U8</span><span class=cF0> *buf2,</span><span class=cF9>I64</span><span class=cF0> rip)
<a name="l340"></a>{</span><span class=cF2>//for ADD,SUB,DIV,MUL</span><span class=cF0>
<a name="l341"></a> </span><span class=cF9>CICArg</span><span class=cF0> *arg1,*arg2;
<a name="l342"></a> </span><span class=cF1>Bool</span><span class=cF0> dont_push_float,dont_pop_float,alt;
<a name="l343"></a> </span><span class=cF9>I64</span><span class=cF0> rsp_size=0,builtin1=0,builtin2=0,t1,r1,d1,t2,r2,d2;
<a name="l344"></a>
<a name="l345"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;ic_flags&amp;</span><span class=cF3>ICF_ALT_TEMPLATE</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l346"></a> arg1=&amp;tmpi-&gt;arg2;
<a name="l347"></a> arg2=&amp;tmpi-&gt;arg1;
<a name="l348"></a> alt=</span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l349"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l350"></a> arg1=&amp;tmpi-&gt;arg1;
<a name="l351"></a> arg2=&amp;tmpi-&gt;arg2;
<a name="l352"></a> alt=</span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l353"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l354"></a>
<a name="l355"></a> </span><span class=cF1>if</span><span class=cF0> (cc-&gt;flags&amp;</span><span class=cF3>CCF_AOT_COMPILE</span><span class=cF0>)
<a name="l356"></a> buf2=cc-&gt;aotc-&gt;rip;
<a name="l357"></a>
<a name="l358"></a> </span><span class=cFD>CmpSetFloatOpPushPop</span><span class=cF0>(cc,tmpi,&amp;dont_push_float,&amp;dont_pop_float);
<a name="l359"></a> </span><span class=cF1>if</span><span class=cF0> (dont_push_float) </span><span class=cF7>{</span><span class=cF0>
<a name="l360"></a> </span><span class=cF1>if</span><span class=cF0> (arg2-&gt;type.raw_type&gt;=</span><span class=cF3>RT_I64</span><span class=cF0> &amp;&amp; arg2-&gt;type&amp;</span><span class=cF3>MDG_DISP_SIB_RIP</span><span class=cF0>) {
<a name="l361"></a> t2=arg2-&gt;type;
<a name="l362"></a> r2=arg2-&gt;</span><span class=cF1>reg</span><span class=cF0>;
<a name="l363"></a> d2=arg2-&gt;disp;
<a name="l364"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l365"></a> </span><span class=cF1>if</span><span class=cF0> (arg2-&gt;type&amp;</span><span class=cF3>MDF_IMM</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l366"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>builtin2=</span><span class=cFD>ICBuiltInFloatConst</span><span class=cF0>(arg2-&gt;disp</span><span class=cF7>(</span><span class=cF1>F64</span><span class=cF7>)</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>) {
<a name="l367"></a> t2=</span><span class=cF3>MDF_RIP_DISP32</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>;
<a name="l368"></a> r2=</span><span class=cF3>REG_RIP</span><span class=cF0>;
<a name="l369"></a> d2=</span><span class=cFD>COCFloatConstFind</span><span class=cF0>(cc,arg2-&gt;disp</span><span class=cF7>(</span><span class=cF1>F64</span><span class=cF7>)</span><span class=cF0>)+buf2;
<a name="l370"></a> }
<a name="l371"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l372"></a> </span><span class=cFD>ICPush</span><span class=cF0>(tmpi,arg2-&gt;type,arg2-&gt;</span><span class=cF1>reg</span><span class=cF0>,arg2-&gt;disp,rip);
<a name="l373"></a> t2=</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>; r2=</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8; d2=0;
<a name="l374"></a> rsp_size+=8;
<a name="l375"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l376"></a> }
<a name="l377"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l378"></a> </span><span class=cF1>if</span><span class=cF0> (alt) {
<a name="l379"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>arg2-&gt;type&amp;</span><span class=cF3>MDF_STK</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l380"></a> </span><span class=cF1>if</span><span class=cF0> (arg1-&gt;type.raw_type&gt;=</span><span class=cF3>RT_I64</span><span class=cF0> &amp;&amp; arg1-&gt;type&amp;</span><span class=cF3>MDG_DISP_SIB_RIP</span><span class=cF0>) {
<a name="l381"></a> t1=arg1-&gt;type;
<a name="l382"></a> r1=arg1-&gt;</span><span class=cF1>reg</span><span class=cF0>;
<a name="l383"></a> d1=arg1-&gt;disp;
<a name="l384"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l385"></a> </span><span class=cF1>if</span><span class=cF0> (arg1-&gt;type&amp;</span><span class=cF3>MDF_IMM</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l386"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>builtin1=</span><span class=cFD>ICBuiltInFloatConst</span><span class=cF0>(arg1-&gt;disp</span><span class=cF7>(</span><span class=cF1>F64</span><span class=cF7>)</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>) {
<a name="l387"></a> t1=</span><span class=cF3>MDF_RIP_DISP32</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>;
<a name="l388"></a> r1=</span><span class=cF3>REG_RIP</span><span class=cF0>;
<a name="l389"></a> d1=</span><span class=cFD>COCFloatConstFind</span><span class=cF0>(cc,arg1-&gt;disp</span><span class=cF7>(</span><span class=cF1>F64</span><span class=cF7>)</span><span class=cF0>)+buf2;
<a name="l390"></a> }
<a name="l391"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l392"></a> </span><span class=cFD>ICPush</span><span class=cF0>(tmpi,arg1-&gt;type,arg1-&gt;</span><span class=cF1>reg</span><span class=cF0>,arg1-&gt;disp,rip);
<a name="l393"></a> t1=</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>; r1=</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8; d1=0;
<a name="l394"></a> rsp_size+=8;
<a name="l395"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l396"></a> }
<a name="l397"></a> </span><span class=cF1>if</span><span class=cF0> (arg2-&gt;type.raw_type&gt;=</span><span class=cF3>RT_I64</span><span class=cF0> &amp;&amp; arg2-&gt;type&amp;</span><span class=cF3>MDG_DISP_SIB_RIP</span><span class=cF0>) {
<a name="l398"></a> t2=arg2-&gt;type;
<a name="l399"></a> r2=arg2-&gt;</span><span class=cF1>reg</span><span class=cF0>;
<a name="l400"></a> d2=arg2-&gt;disp;
<a name="l401"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l402"></a> </span><span class=cF1>if</span><span class=cF0> (arg2-&gt;type&amp;</span><span class=cF3>MDF_IMM</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l403"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>builtin2=</span><span class=cFD>ICBuiltInFloatConst</span><span class=cF0>(arg2-&gt;disp</span><span class=cF7>(</span><span class=cF1>F64</span><span class=cF7>)</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>) {
<a name="l404"></a> t2=</span><span class=cF3>MDF_RIP_DISP32</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>;
<a name="l405"></a> r2=</span><span class=cF3>REG_RIP</span><span class=cF0>;
<a name="l406"></a> d2=</span><span class=cFD>COCFloatConstFind</span><span class=cF0>(cc,arg2-&gt;disp</span><span class=cF7>(</span><span class=cF1>F64</span><span class=cF7>)</span><span class=cF0>)+buf2;
<a name="l407"></a> }
<a name="l408"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l409"></a> </span><span class=cFD>ICPush</span><span class=cF0>(tmpi,arg2-&gt;type,arg2-&gt;</span><span class=cF1>reg</span><span class=cF0>,arg2-&gt;disp,rip);
<a name="l410"></a> t2=</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>; r2=</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8; d2=0;
<a name="l411"></a> rsp_size+=8;
<a name="l412"></a> </span><span class=cF1>if</span><span class=cF0> (r1==</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8)
<a name="l413"></a> d1+=8;
<a name="l414"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l415"></a> }
<a name="l416"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l417"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RDX</span><span class=cF0>,0,arg1-&gt;type,
<a name="l418"></a> arg1-&gt;</span><span class=cF1>reg</span><span class=cF0>,arg1-&gt;disp,rip);
<a name="l419"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,arg2-&gt;type,
<a name="l420"></a> arg2-&gt;</span><span class=cF1>reg</span><span class=cF0>,arg2-&gt;disp,rip);
<a name="l421"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0x5052); </span><span class=cF2>//PUSH EDX PUSH EAX</span><span class=cF0>
<a name="l422"></a> rsp_size=16;
<a name="l423"></a> t1=</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>; r1=</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8; d1=8;
<a name="l424"></a> t2=</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>; r2=</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8; d2=0;
<a name="l425"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l426"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l427"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>arg1-&gt;type&amp;</span><span class=cF3>MDF_STK</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l428"></a> </span><span class=cF1>if</span><span class=cF0> (arg2-&gt;type.raw_type&gt;=</span><span class=cF3>RT_I64</span><span class=cF0> &amp;&amp; arg2-&gt;type&amp;</span><span class=cF3>MDG_DISP_SIB_RIP</span><span class=cF0>) {
<a name="l429"></a> t2=arg2-&gt;type;
<a name="l430"></a> r2=arg2-&gt;</span><span class=cF1>reg</span><span class=cF0>;
<a name="l431"></a> d2=arg2-&gt;disp;
<a name="l432"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l433"></a> </span><span class=cF1>if</span><span class=cF0> (arg2-&gt;type&amp;</span><span class=cF3>MDF_IMM</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l434"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>builtin2=</span><span class=cFD>ICBuiltInFloatConst</span><span class=cF0>(arg2-&gt;disp</span><span class=cF7>(</span><span class=cF1>F64</span><span class=cF7>)</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>) {
<a name="l435"></a> t2=</span><span class=cF3>MDF_RIP_DISP32</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>;
<a name="l436"></a> r2=</span><span class=cF3>REG_RIP</span><span class=cF0>;
<a name="l437"></a> d2=</span><span class=cFD>COCFloatConstFind</span><span class=cF0>(cc,arg2-&gt;disp</span><span class=cF7>(</span><span class=cF1>F64</span><span class=cF7>)</span><span class=cF0>)+buf2;
<a name="l438"></a> }
<a name="l439"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l440"></a> </span><span class=cFD>ICPush</span><span class=cF0>(tmpi,arg2-&gt;type,arg2-&gt;</span><span class=cF1>reg</span><span class=cF0>,arg2-&gt;disp,rip);
<a name="l441"></a> t2=</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>; r2=</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8; d2=0;
<a name="l442"></a> rsp_size+=8;
<a name="l443"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l444"></a> }
<a name="l445"></a> </span><span class=cF1>if</span><span class=cF0> (arg1-&gt;type.raw_type&gt;=</span><span class=cF3>RT_I64</span><span class=cF0> &amp;&amp; arg1-&gt;type&amp;</span><span class=cF3>MDG_DISP_SIB_RIP</span><span class=cF0>) {
<a name="l446"></a> t1=arg1-&gt;type;
<a name="l447"></a> r1=arg1-&gt;</span><span class=cF1>reg</span><span class=cF0>;
<a name="l448"></a> d1=arg1-&gt;disp;
<a name="l449"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l450"></a> </span><span class=cF1>if</span><span class=cF0> (arg1-&gt;type&amp;</span><span class=cF3>MDF_IMM</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l451"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>builtin1=</span><span class=cFD>ICBuiltInFloatConst</span><span class=cF0>(arg1-&gt;disp</span><span class=cF7>(</span><span class=cF1>F64</span><span class=cF7>)</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>) {
<a name="l452"></a> t1=</span><span class=cF3>MDF_RIP_DISP32</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>;
<a name="l453"></a> r1=</span><span class=cF3>REG_RIP</span><span class=cF0>;
<a name="l454"></a> d1=</span><span class=cFD>COCFloatConstFind</span><span class=cF0>(cc,arg1-&gt;disp</span><span class=cF7>(</span><span class=cF1>F64</span><span class=cF7>)</span><span class=cF0>)+buf2;
<a name="l455"></a> }
<a name="l456"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l457"></a> </span><span class=cFD>ICPush</span><span class=cF0>(tmpi,arg1-&gt;type,arg1-&gt;</span><span class=cF1>reg</span><span class=cF0>,arg1-&gt;disp,rip);
<a name="l458"></a> t1=</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>; r1=</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8; d1=0;
<a name="l459"></a> rsp_size+=8;
<a name="l460"></a> </span><span class=cF1>if</span><span class=cF0> (r2==</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8)
<a name="l461"></a> d2+=8;
<a name="l462"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l463"></a> }
<a name="l464"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l465"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,arg2-&gt;type,
<a name="l466"></a> arg2-&gt;</span><span class=cF1>reg</span><span class=cF0>,arg2-&gt;disp,rip);
<a name="l467"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RDX</span><span class=cF0>,0,arg1-&gt;type,
<a name="l468"></a> arg1-&gt;</span><span class=cF1>reg</span><span class=cF0>,arg1-&gt;disp,rip);
<a name="l469"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,0x5052); </span><span class=cF2>//PUSH EDX PUSH EAX</span><span class=cF0>
<a name="l470"></a> rsp_size=16;
<a name="l471"></a> t1=</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>; r1=</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8; d1=8;
<a name="l472"></a> t2=</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>; r2=</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8; d2=0;
<a name="l473"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l474"></a> }
<a name="l475"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l476"></a> </span><span class=cF1>if</span><span class=cF0> (!dont_pop_float &amp;&amp; !rsp_size) </span><span class=cF7>{</span><span class=cF0>
<a name="l477"></a> rsp_size=8;
<a name="l478"></a> </span><span class=cFD>ICAddRSP</span><span class=cF0>(tmpi,-8);
<a name="l479"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l480"></a> </span><span class=cF1>if</span><span class=cF0> (!dont_push_float) </span><span class=cF7>{</span><span class=cF0>
<a name="l481"></a> </span><span class=cF1>if</span><span class=cF0> (builtin2 &amp;&amp; !builtin1) {
<a name="l482"></a> alt=!alt;
<a name="l483"></a> </span><span class=cF5>SwapI64</span><span class=cF0>(&amp;t1,&amp;t2);
<a name="l484"></a> </span><span class=cF5>SwapI64</span><span class=cF0>(&amp;r1,&amp;r2);
<a name="l485"></a> </span><span class=cF5>SwapI64</span><span class=cF0>(&amp;d1,&amp;d2);
<a name="l486"></a> </span><span class=cF5>SwapI64</span><span class=cF0>(&amp;builtin1,&amp;builtin2);
<a name="l487"></a> }
<a name="l488"></a> </span><span class=cF1>if</span><span class=cF0> (builtin1)
<a name="l489"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,builtin1);
<a name="l490"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l491"></a> </span><span class=cFD>ICSlashOp</span><span class=cF0>(tmpi,t1,r1,d1,SLASH_OP_FLD,rip);
<a name="l492"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l493"></a> </span><span class=cF1>if</span><span class=cF0> (alt)
<a name="l494"></a> </span><span class=cF1>switch</span><span class=cF0> (op.u8[0]) </span><span class=cF7>{</span><span class=cF0>
<a name="l495"></a> </span><span class=cF1>case</span><span class=cF0> 4: op=SLASH_OP_FSUBR; </span><span class=cF1>break</span><span class=cF0>;
<a name="l496"></a> </span><span class=cF1>case</span><span class=cF0> 6: op=SLASH_OP_FDIVR; </span><span class=cF1>break</span><span class=cF0>;
<a name="l497"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l498"></a> </span><span class=cF1>if</span><span class=cF0> (builtin2) </span><span class=cF7>{</span><span class=cF0>
<a name="l499"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,builtin2);
<a name="l500"></a> </span><span class=cFD>ICU16</span><span class=cF0>(tmpi,op.u16[2]);
<a name="l501"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0>
<a name="l502"></a> </span><span class=cFD>ICSlashOp</span><span class=cF0>(tmpi,t2,r2,d2,op,rip);
<a name="l503"></a> </span><span class=cFD>CmpNoteFloatOp</span><span class=cF0>(cc,tmpi,</span><span class=cF3>TRUE</span><span class=cF0>,</span><span class=cF3>TRUE</span><span class=cF0>,CN_INST);
<a name="l504"></a> </span><span class=cF1>if</span><span class=cF0> (dont_pop_float) </span><span class=cF7>{</span><span class=cF0>
<a name="l505"></a> </span><span class=cF1>if</span><span class=cF0> (rsp_size)
<a name="l506"></a> </span><span class=cFD>ICAddRSP</span><span class=cF0>(tmpi,rsp_size);
<a name="l507"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l508"></a> </span><span class=cF1>if</span><span class=cF0> (rsp_size==8)
<a name="l509"></a> </span><span class=cFD>ICSlashOp</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8,0,SLASH_OP_FSTP,rip);
<a name="l510"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (rsp_size&gt;8) {
<a name="l511"></a> </span><span class=cFD>ICSlashOp</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_SIB</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RSP</span><span class=cF0>+</span><span class=cF3>REG_RSP</span><span class=cF0>&lt;&lt;8,rsp_size-8,
<a name="l512"></a> SLASH_OP_FSTP,rip);
<a name="l513"></a> </span><span class=cFD>ICAddRSP</span><span class=cF0>(tmpi,rsp_size-8);
<a name="l514"></a> }
<a name="l515"></a> </span><span class=cFD>ICPop</span><span class=cF0>(tmpi,tmpi-&gt;res.type,tmpi-&gt;res.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;res.disp,rip);
<a name="l516"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l517"></a>}
<a name="l518"></a>
<a name="l519"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>ICFCmp</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,</span><span class=cF9>I64</span><span class=cF0> op,</span><span class=cF9>I64</span><span class=cF0> rip)
<a name="l520"></a>{
<a name="l521"></a> </span><span class=cF1>Bool</span><span class=cF0> dont_push_float,dont_pop_float;
<a name="l522"></a> </span><span class=cFD>CmpSetFloatOpPushPop</span><span class=cF0>(cc,tmpi,&amp;dont_push_float,&amp;dont_pop_float);
<a name="l523"></a> </span><span class=cF1>if</span><span class=cF0> (dont_push_float) </span><span class=cF7>{</span><span class=cF0>
<a name="l524"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;ic_flags&amp;</span><span class=cF3>ICF_ALT_TEMPLATE</span><span class=cF0>) {
<a name="l525"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;ic_flags&amp;</span><span class=cF3>ICF_POP_CMP</span><span class=cF0>)
<a name="l526"></a> </span><span class=cFD>ICPopRegs</span><span class=cF0>(tmpi,1&lt;&lt;</span><span class=cF3>REG_RAX</span><span class=cF0>);
<a name="l527"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l528"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
<a name="l529"></a> tmpi-&gt;arg1.type,tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg1.disp,rip);
<a name="l530"></a> } </span><span class=cF1>else</span><span class=cF0>
<a name="l531"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
<a name="l532"></a> tmpi-&gt;arg2.type,tmpi-&gt;arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg2.disp,rip);
<a name="l533"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l534"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
<a name="l535"></a> tmpi-&gt;arg2.type,tmpi-&gt;arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg2.disp,rip);
<a name="l536"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;ic_flags&amp;</span><span class=cF3>ICF_POP_CMP</span><span class=cF0>)
<a name="l537"></a> </span><span class=cFD>ICPopRegs</span><span class=cF0>(tmpi,1&lt;&lt;</span><span class=cF3>REG_RDX</span><span class=cF0>);
<a name="l538"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l539"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RDX</span><span class=cF0>,0,
<a name="l540"></a> tmpi-&gt;arg1.type,tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg1.disp,rip);
<a name="l541"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l542"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;ic_flags&amp;</span><span class=cF3>ICF_PUSH_CMP</span><span class=cF0>)
<a name="l543"></a> </span><span class=cFD>ICPushRegs</span><span class=cF0>(tmpi,1&lt;&lt;</span><span class=cF3>REG_RAX</span><span class=cF0>);
<a name="l544"></a> </span><span class=cFD>ICCopyTemplate</span><span class=cF0>(cc,tmpi,op,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>TRUE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,CN_INST);
<a name="l545"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,tmpi-&gt;res.type,tmpi-&gt;res.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;res.disp,
<a name="l546"></a> </span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,rip);
<a name="l547"></a>}
<a name="l548"></a>
<a name="l549"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>ICFModEqu</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,</span><span class=cF9>I64</span><span class=cF0> rip)
<a name="l550"></a>{
<a name="l551"></a> </span><span class=cF1>Bool</span><span class=cF0> dont_push_float,dont_pop_float;
<a name="l552"></a> </span><span class=cFD>CmpSetFloatOpPushPop</span><span class=cF0>(cc,tmpi,&amp;dont_push_float,&amp;dont_pop_float);
<a name="l553"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;ic_flags &amp; </span><span class=cF3>ICF_BY_VAL</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l554"></a> </span><span class=cF1>if</span><span class=cF0> (dont_push_float) {
<a name="l555"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
<a name="l556"></a> tmpi-&gt;arg1.type&amp;</span><span class=cF3>MDG_MASK</span><span class=cF0>+tmpi-&gt;arg1_type_pointed_to,
<a name="l557"></a> tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg1.disp,rip);
<a name="l558"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;arg1_type_pointed_to!=</span><span class=cF3>RT_F64</span><span class=cF0>)
<a name="l559"></a> </span><span class=cFD>ICFCvt2</span><span class=cF0>(cc,tmpi,</span><span class=cF3>REG_RAX</span><span class=cF0>,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,</span><span class=cF3>FALSE</span><span class=cF0>,rip);
<a name="l560"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l561"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
<a name="l562"></a> tmpi-&gt;arg2.type,tmpi-&gt;arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg2.disp,rip);
<a name="l563"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RDX</span><span class=cF0>,0,
<a name="l564"></a> tmpi-&gt;arg1.type&amp;</span><span class=cF3>MDG_MASK</span><span class=cF0>+tmpi-&gt;arg1_type_pointed_to,
<a name="l565"></a> tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg1.disp,rip);
<a name="l566"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;arg1_type_pointed_to!=</span><span class=cF3>RT_F64</span><span class=cF0>)
<a name="l567"></a> </span><span class=cFD>ICFCvt2</span><span class=cF0>(cc,tmpi,</span><span class=cF3>REG_RDX</span><span class=cF0>,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RDX</span><span class=cF0>,0,</span><span class=cF3>FALSE</span><span class=cF0>,rip);
<a name="l568"></a> }
<a name="l569"></a></span><span class=cF2>//TODO: unpushable,unpop? Not sure</span><span class=cF0>
<a name="l570"></a> </span><span class=cFD>ICCopyTemplate</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_MOD</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,CN_INST);
<a name="l571"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;arg1_type_pointed_to!=</span><span class=cF3>RT_F64</span><span class=cF0>)
<a name="l572"></a> </span><span class=cFD>ICFCvt2</span><span class=cF0>(cc,tmpi,</span><span class=cF3>REG_RAX</span><span class=cF0>,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,</span><span class=cF3>TRUE</span><span class=cF0>,rip);
<a name="l573"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,tmpi-&gt;arg1.type&amp;</span><span class=cF3>MDG_MASK</span><span class=cF0>+tmpi-&gt;arg1_type_pointed_to,
<a name="l574"></a> tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg1.disp,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,rip);
<a name="l575"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;res.type.mode)
<a name="l576"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,tmpi-&gt;res.type,tmpi-&gt;res.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;res.disp,
<a name="l577"></a> tmpi-&gt;arg1.type&amp;</span><span class=cF3>MDG_MASK</span><span class=cF0>+tmpi-&gt;arg1_type_pointed_to,
<a name="l578"></a> tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg1.disp,rip);
<a name="l579"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l580"></a> </span><span class=cF1>if</span><span class=cF0> (dont_push_float) {
<a name="l581"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RCX</span><span class=cF0>,0,tmpi-&gt;arg1.type,
<a name="l582"></a> tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg1.disp,rip);
<a name="l583"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
<a name="l584"></a> </span><span class=cF3>MDF_DISP</span><span class=cF0>+tmpi-&gt;arg1_type_pointed_to,</span><span class=cF3>REG_RCX</span><span class=cF0>,0,rip);
<a name="l585"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;arg1_type_pointed_to!=</span><span class=cF3>RT_F64</span><span class=cF0>)
<a name="l586"></a> </span><span class=cFD>ICFCvt2</span><span class=cF0>(cc,tmpi,</span><span class=cF3>REG_RAX</span><span class=cF0>,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,</span><span class=cF3>FALSE</span><span class=cF0>,rip);
<a name="l587"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l588"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,
<a name="l589"></a> tmpi-&gt;arg2.type,tmpi-&gt;arg2.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg2.disp,rip);
<a name="l590"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RCX</span><span class=cF0>,0,tmpi-&gt;arg1.type,
<a name="l591"></a> tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;arg1.disp,rip);
<a name="l592"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RDX</span><span class=cF0>,0,
<a name="l593"></a> </span><span class=cF3>MDF_DISP</span><span class=cF0>+tmpi-&gt;arg1_type_pointed_to,</span><span class=cF3>REG_RCX</span><span class=cF0>,0,rip);
<a name="l594"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;arg1_type_pointed_to!=</span><span class=cF3>RT_F64</span><span class=cF0>)
<a name="l595"></a> </span><span class=cFD>ICFCvt2</span><span class=cF0>(cc,tmpi,</span><span class=cF3>REG_RDX</span><span class=cF0>,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RDX</span><span class=cF0>,0,</span><span class=cF3>FALSE</span><span class=cF0>,rip);
<a name="l596"></a> }
<a name="l597"></a></span><span class=cF2>//TODO: unpushable,unpop? Not sure</span><span class=cF0>
<a name="l598"></a> </span><span class=cFD>ICCopyTemplate</span><span class=cF0>(cc,tmpi,</span><span class=cF3>CMP_TEMPLATE_MOD</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>,CN_INST);
<a name="l599"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;arg1_type_pointed_to!=</span><span class=cF3>RT_F64</span><span class=cF0>)
<a name="l600"></a> </span><span class=cFD>ICFCvt2</span><span class=cF0>(cc,tmpi,</span><span class=cF3>REG_RAX</span><span class=cF0>,</span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,</span><span class=cF3>TRUE</span><span class=cF0>,rip);
<a name="l601"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,</span><span class=cF3>MDF_DISP</span><span class=cF0>+tmpi-&gt;arg1_type_pointed_to,</span><span class=cF3>REG_RCX</span><span class=cF0>,0,
<a name="l602"></a> </span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,rip);
<a name="l603"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;res.type.mode)
<a name="l604"></a> </span><span class=cFD>ICMov</span><span class=cF0>(tmpi,tmpi-&gt;res.type,tmpi-&gt;res.</span><span class=cF1>reg</span><span class=cF0>,tmpi-&gt;res.disp,
<a name="l605"></a> </span><span class=cF3>MDF_REG</span><span class=cF0>+</span><span class=cF3>RT_I64</span><span class=cF0>,</span><span class=cF3>REG_RAX</span><span class=cF0>,0,rip);
<a name="l606"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l607"></a>}
</span></pre></body>
</html>