<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 WORKSFORME - Risc-V clang does not recognize floating point registers in inline asm"
   href="https://bugs.llvm.org/show_bug.cgi?id=42976">bug 42976</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;">Resolution</td>
           <td>---
           </td>
           <td>WORKSFORME
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </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 WORKSFORME - Risc-V clang does not recognize floating point registers in inline asm"
   href="https://bugs.llvm.org/show_bug.cgi?id=42976#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Risc-V clang does not recognize floating point registers in inline asm"
   href="https://bugs.llvm.org/show_bug.cgi?id=42976">bug 42976</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 works correctly:

$ cat test.c
void foo() {
    asm ("fadd.s f1, f2, f3");
    asm ("fadd.d fa0, fa1, fa2");
}
$ clang --target=riscv32 -O2 -S test.c -o-
(...)
foo:                                    # @foo
# %bb.0:                                # %entry
        #APP
        fadd.s f1, f2, f3
        #NO_APP
        #APP
        fadd.d fa0, fa1, fa2
        #NO_APP
        ret
(...)

If anything, I wonder if that works more than it should, since we accept that
inline assembly even when not targetting the floating-point extensions.</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>