<div dir="ltr">Got it. I did not check your new MOV_INT64 in this patch which indeed handle int32 to int64.<div style>As to the conversion, we may also need to handle conversion from W/F/DF to int64. Right?</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Aug 7, 2013 at 4:10 PM, Xing, Homer <span dir="ltr"><<a href="mailto:homer.xing@intel.com" target="_blank">homer.xing@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div lang="ZH-CN" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">“MOV_INT64” in this patch is converting short int32 to long int64, maybe its name should be “CONVERT_INT64”. As you see, in this patch, I also
 add converting code. I will do the code renaming.<u></u><u></u></span></p>
<p class="MsoNormal"><a name="14057d411c8e3117__MailEndCompose"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></a></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif""> zhigang gong [mailto:<a href="mailto:zhigang.gong@gmail.com" target="_blank">zhigang.gong@gmail.com</a>]
<br>
<b>Sent:</b> Wednesday, August 7, 2013 4:04 PM<br>
<b>To:</b> Xing, Homer<br>
<b>Cc:</b> <a href="mailto:beignet@lists.freedesktop.org" target="_blank">beignet@lists.freedesktop.org</a><br>
<b>Subject:</b> Re: [Beignet] [PATCH 1/2] support 64bit-integer shifting<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Homer,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">One quick comment for this patch, please see the following change:<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">@@ -2169,6 +2247,8 @@ namespace gbe<br>
       } else if (dst.isdf()) {<br>
         ir::Register r = sel.reg(ir::RegisterFamily::FAMILY_QWORD);<br>
         sel.MOV_DF(dst, src, sel.selReg(r));<br>
+      } else if (dst.isint64()) {<br>
+        sel.MOV_INT64(dst, src);<br>
       } else<br>
         sel.MOV(dst, src);<br>
       return true;<br>
<br>
Here, what we want to do is to convert a different data type to int64 type.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">But according to your previous patch, MOV_INT64 is used to move two<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">int64 type registers, right? So I think it may not be correct, and you may<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">need to add a new instruction to handle similar CVT instruction as MOV_DF<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">or you can extent MOV_DF to support int64 too. Any idea?<u></u><u></u></span></p>
<div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</blockquote>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>