<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Assertion failure when inline assembly referencing floating point registers is used on soft-float targets"
   href="https://bugs.llvm.org/show_bug.cgi?id=52230">52230</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure when inline assembly referencing floating point registers is used on soft-float targets
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: ARM
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kosov.pavel@huawei.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, smithp352@googlemail.com, Ties.Stuij@arm.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>We have a problem which triggers assertion failure (or UB) when inline assembly
referencing floating point registers is used on soft-float targets
(arm-linux-gnueabi, arm-linux-android). Asserion is triggered in backend which
tries to lower FP register access without FP registers available (target
feature “-fpregs” is passed to backend by clang).

Steps to reproduce:

Given code sample `f.c`

```
float f(float x) { __asm__("vsqrt.f32 %0, %1": "=w"(x) : "t"(x)); return x; }
```

Compile it to arm-linux-gnueabi target with

`clang  -target arm-linux-gnueabi  -c f.c`</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>