<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:luis@luismarques.eu" title="Luís Marques <luis@luismarques.eu>"> <span class="fn">Luís Marques</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - riscv - error in backend: Cannot select: 0x55d7f7ff1300: f32 = fcopysign 0x55d7f7ff1c58, 0x55d7f7fe9fb8"
   href="https://bugs.llvm.org/show_bug.cgi?id=43040">bug 43040</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>luis@luismarques.eu
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - riscv - error in backend: Cannot select: 0x55d7f7ff1300: f32 = fcopysign 0x55d7f7ff1c58, 0x55d7f7fe9fb8"
   href="https://bugs.llvm.org/show_bug.cgi?id=43040#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - riscv - error in backend: Cannot select: 0x55d7f7ff1300: f32 = fcopysign 0x55d7f7ff1c58, 0x55d7f7fe9fb8"
   href="https://bugs.llvm.org/show_bug.cgi?id=43040">bug 43040</a>
              from <span class="vcard"><a class="email" href="mailto:luis@luismarques.eu" title="Luís Marques <luis@luismarques.eu>"> <span class="fn">Luís Marques</span></a>
</span></b>
        <pre>Thanks for the bug report Khem Raj. This problem was caused by the
implementation of the IEEE 754 copySign operation for RISC-V. The RISC-V
backend only natively supports doing sign copies where the magnitude and sign
operands have the same type. An optimization would remove the conversion of the
sign operand to the correct type, thus triggering the problem. A patch has been
posted for review that solves this problem: <<a href="https://reviews.llvm.org/D66725">https://reviews.llvm.org/D66725</a>>.
Thanks again!</pre>
        </div>
      </p>


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

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>