<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 INVALID - Floating point arguments are passed in integer registers for risc-v with -march=rv64g"
   href="https://bugs.llvm.org/show_bug.cgi?id=42866">bug 42866</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>INVALID
           </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 INVALID - Floating point arguments are passed in integer registers for risc-v with -march=rv64g"
   href="https://bugs.llvm.org/show_bug.cgi?id=42866#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Floating point arguments are passed in integer registers for risc-v with -march=rv64g"
   href="https://bugs.llvm.org/show_bug.cgi?id=42866">bug 42866</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>This is correct. Targeting the floating-point extensions doesn't necessarily
mean you are using the hardfloat ABIs. To ensure that floating-point arguments
are passed in the floating-point registers for rv64g be sure to also pass to
clang the option `-mabi=lp64d`. I believe you can now also pass the option
--target=riscv64-linux and you'll implicitly get the `march` and `mabi` options
that you intended, and the values will be passed in the floating-point
registers (might require compiling clang from recent sources).</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>