[llvm-bugs] [Bug 30732] New: neon instructions emitted for targets without it.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 18 23:21:12 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30732

            Bug ID: 30732
           Summary: neon instructions emitted for targets without it.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: yyc1992 at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

>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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161019/287472a8/attachment.html>


More information about the llvm-bugs mailing list