<html>
    <head>
      <base href="https://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 --- - neon instructions emitted for targets without it."
   href="https://llvm.org/bugs/show_bug.cgi?id=30732">30732</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>neon instructions emitted for targets without it.
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>yyc1992@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>From `lib/Target/ARM/ARM.td` it seems that all ARMv7a targets have
`FeatureNEON`. However, this should be an optional feature on armv7-a and for
example the scaleway server uses cortex-a7 without neon instructions.

I initially noticed this in the julia codegen. It can also be reproduced using
clang by compiling `double f(void) { return 0.0; }` with `clang
--target=arm-linux-unknown-gnueabihf -march=armv7-a -mcpu=generic -O2 f.c -S -o
-`. The asm generated has `.fpu    neon` and is using neon instruction
`vmov.i32        d0, #0x0` to construct the return value.</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>