<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 7/2/2017 3:50 AM, Breger, Igor via
      llvm-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:C65DF04FB83D1B44BD2580EF6EEFAB1DEC722701@HASMSX106.ger.corp.intel.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi all,<o:p></o:p></p>
        <p class="MsoNormal">I am working on enabling X86 using
           GLobalIsel framework.<o:p></o:p></p>
        <p class="MsoNormal">I have 32bit platform + float/double
           configuration (-mtriple=i386-linux-gnu -mattr=+sse2 )
          <o:p></o:p></p>
        <p class="MsoNormal">               load i64, i64* %p1      
                      -   illegal, require narrowScalar action<o:p></o:p></p>
        <p class="MsoNormal">               load double, double * %p1  
          -    legal <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">What is the best approach to Legalize this
          case ? Should I mark G_LOAD/G_STORE s64 as Custom?<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
    </blockquote>
    <br>
    In the world of GlobalISel, i64 and double are both s64, so "load
    i64" and "load double" are the same operation; if one is Legal, both
    are Legal.  This should just work, barring any bugs.<br>
    <br>
    The resulting code will probably be low-quality because there isn't
    any good way to lower the resulting transfers between SSE and
    integer registers, but you can put off dealing with that for now.<br>
    <br>
    -Eli<br>
    <pre class="moz-signature" cols="72">-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project</pre>
  </body>
</html>