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
    Classification: Unclassified

>From `lib/Target/ARM/` 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.
llvm-bugs mailing list

Reply via email to