Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

fatal error: error in backend: Cannot select: intrinsic %llvm.x86.bmi.pdep.32 #28517

Closed Quuxplusone closed 6 years ago

Quuxplusone commented 8 years ago
Bugzilla Link PR28518
Status RESOLVED INVALID
Importance P normal
Reported by john daintree (johnd@dyalog.com)
Reported on 2016-07-12 05:00:59 -0700
Last modified on 2017-09-16 03:28:01 -0700
Version trunk
Hardware PC Windows NT
CC craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
Fixed by commit(s)
Attachments clang.zip (121625 bytes, application/x-zip-compressed)
Blocks
Blocked by
See also
Created attachment 16726
.cpp and .sh files generated at the time of failure.

Had the error compiling with make probably running 4 instances of clang
concurrently. Full output from the compiler as follows:

fatal error: error in backend: Cannot select: intrinsic %llvm.x86.bmi.pdep.32
clang.exe: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 3.8.243773
Target: i386-unknown-linux
Thread model: posix
clang.exe: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang.exe: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang.exe: note: diagnostic msg: C:\tmp\bmi2-501063.cpp
clang.exe: note: diagnostic msg: C:\tmp\bmi2-501063.sh
clang.exe: note: diagnostic msg:

The .cpp and .sh files are in the attached zip.
Quuxplusone commented 8 years ago

Attached clang.zip (121625 bytes, application/x-zip-compressed): .cpp and .sh files generated at the time of failure.

Quuxplusone commented 8 years ago

Unless I've missed it, the command line doesn't show that you've specified -mbmi2 or a CPU target that would support 'pdep'.

Catching that as an error in the front-end appears to already be fixed in clang trunk. There's also been a lot of builtin removal between 3.8 and trunk, so I'm getting errors trying to compile your preprocessed source with trunk.

Can you try compiling again with clang trunk and/or explicitly specifying -mbmi2? If not, can you attach (a possibly reduced) source file that I can test with?

Quuxplusone commented 6 years ago

I'm going to resolve this as invalid. I think we're pretty good about checking this in trunk.