[llvm-bugs] [Bug 46527] New: Code generation error with -m32 -fPIC
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jul 1 01:54:04 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46527
Bug ID: 46527
Summary: Code generation error with -m32 -fPIC
Product: clang
Version: 10.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: jjorge at quarkslab.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
Created attachment 23663
--> https://bugs.llvm.org/attachment.cgi?id=23663&action=edit
Reduced test case.
Compiling the attached IR code with the command `clang -m32 -fPIC -c
test-small.ll` produces the following error:
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:4524: virtual void (anonymous
namespace)::X86DAGToDAGISel::Select(llvm::SDNode *): Assertion
`Subtarget->hasSSE41() && "Expected SSE4.1 support!"' failed.
See attached file clang-10-output.log for the full message.
Clang is built from the release/10.x branch.
In my experiments I observed the following:
- the same error occurs with Clang from the release/9.x branch, see the
attached file clang-9-output.log for the output.
- omitting either -fPIC or -m32 prevents the errors.
- there is no error with Clang 10 as provided by Ubuntu 20.04 unless I add
-msse2 or -msse3. See the attached file clang-10-ubuntu-output.log for the full
message. In this case the error is:
error in backend: Cannot select: 0x13cb528: v16i8 = X86ISD::BLENDV
0x13cb250, 0x13c43f0, 0x13cb0b
--
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/20200701/6d059ba7/attachment.html>
More information about the llvm-bugs
mailing list