<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [jsc][mips] Add missing MacroAssembler functions after r214187"
   href="https://bugs.webkit.org/show_bug.cgi?id=170089#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [jsc][mips] Add missing MacroAssembler functions after r214187"
   href="https://bugs.webkit.org/show_bug.cgi?id=170089">bug 170089</a>
              from <span class="vcard"><a class="email" href="mailto:aperez&#64;igalia.com" title="Adrian Perez &lt;aperez&#64;igalia.com&gt;"> <span class="fn">Adrian Perez</span></a>
</span></b>
        <pre>(In reply to Yusuke Suzuki from <a href="show_bug.cgi?id=170089#c3">comment #3</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=305523&amp;action=diff" name="attach_305523" title="Patch">attachment 305523</a> <a href="attachment.cgi?id=305523&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=305523&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=305523&amp;action=review</a>
&gt; 
&gt; r=me with comment.
&gt; 
&gt; &gt; Source/JavaScriptCore/assembler/MacroAssemblerMIPS.h:2462
&gt; &gt; +    void loadFloat(ImplicitAddress address, FPRegisterID dest)
&gt; &gt; +    {
&gt; &gt; +        if (address.offset &gt;= -32768 &amp;&amp; address.offset &lt;= 32767
&gt; &gt; +            &amp;&amp; !m_fixedWidth) {
&gt; &gt; +            m_assembler.lwc1(dest, address.base, address.offset);
&gt; &gt; +        } else {
&gt; &gt; +            /*
&gt; &gt; +               lui     addrTemp, (offset + 0x8000) &gt;&gt; 16
&gt; &gt; +               addu    addrTemp, addrTemp, base
&gt; &gt; +               lwc1    dest, (offset &amp; 0xffff)(addrTemp)
&gt; &gt; +               */
&gt; &gt; +            m_assembler.lui(addrTempRegister, (address.offset + 0x8000) &gt;&gt; 16);
&gt; &gt; +            m_assembler.addu(addrTempRegister, addrTempRegister, address.base);
&gt; &gt; +            m_assembler.lwc1(dest, addrTempRegister, address.offset);
&gt; &gt; +        }
&gt; &gt; +    }
&gt; 
&gt; Looking the loadDouble code, we can see WTF_MIPS_ISA(1) guard.
&gt; Isn't it required here?</span >

I think Yusuke is right. FPRegisterIDs refer to 64-bit registers. In
MIPS32/MIPS-II “ldc1” can be used to load a 32-bit value directly,
but in MIPS-I it is needed to use two “lwc1” instructions, one for
each 32-bit half of the 64-bit value.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>