Skip to content

[SR-6813] LLVM 3.8+ emits NEON instructions on non-NEON ARMv7 processors #49362

Open
@hpux735

Description

@hpux735
Previous ID SR-6813
Radar None
Original Reporter @hpux735
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, armv7
Assignee None
Priority Medium

md5: 3fa4c23803f5dcaafdadeec6ac73a90a

Issue Description:

Beginning at LLVM 3.8, LLVM will generate NEON instructions regardless of whether the processor targeted supports these instructions.

According to this (otherwise unrelated) bug report, this should be fixed in LLVM 3.9, however, while building Swift on these platforms, LLVM 3.9 still generates illegal instructions.

[163/2690] Building AttributesCompatFunc.inc...
FAILED: cd /root/buildSwiftOnARM/build/buildbot_linux/llvm-linux-armv7/lib/IR && /root/buildSwiftOnARM/build/buildbot_li
nux/llvm-linux-armv7/bin/llvm-tblgen -gen-attrs -I /root/buildSwiftOnARM/llvm/lib/IR -I /root/buildSwiftOnARM/llvm/inclu
de /root/buildSwiftOnARM/llvm/lib/IR/AttributesCompatFunc.td -o /root/buildSwiftOnARM/build/buildbot_linux/llvm-linux-ar
mv7/lib/IR/AttributesCompatFunc.inc.tmp
Illegal instruction

I have a build system that exhibits this bug on "the cloud" and I will provide a username and password to anyone willing and able to help with this bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    armv7Architecture: ARMv7bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions