<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - Integrated arm assembler doesn't accept -mfpu=neon as -Wa argument"
   href="http://llvm.org/bugs/show_bug.cgi?id=20700">20700</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Integrated arm assembler doesn't accept -mfpu=neon as -Wa argument
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </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>Driver
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>nicolasweber@gmx.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Consider that you're trying to detect neon support at runtime, and use neon
code if the processor supports it.

One approach to go about this (used by libvpx, used in chromium) is to build
your c files without -mfpu=neon, and have neon assembly in .S files (and the c
files then call the .S files).

The .S files don't have ".fpu neon" instructions for various reasons (one of
them being that clang didn't support .fpu neon until 2 days ago). The build
system doesn't make it easy to only pass flags .S files.

So one approach would be to pass -Wa,-mfpu=neon. Then all c files are built
without neon instructions, but the neon code in the .S files assemble fine.

That works fine with gnu as, but the integrated assembler doesn't understand
-mfpu=neon as -Wa flag.</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>