[llvm-bugs] [Bug 26906] New: -mcmodel=large, Cannot select: t10: i64 = X86ISD::WrapperRIP TargetGlobalTLSAddress:i64
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Mar 10 13:54:49 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26906
Bug ID: 26906
Summary: -mcmodel=large, Cannot select: t10: i64 =
X86ISD::WrapperRIP TargetGlobalTLSAddress:i64
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: eugeni.stepanov at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
With -mcmodel=large, the following code can not be compiled:
$ cat 1.c
extern __thread int x;
int f(void) { return x; }
$ ./bin/clang 1.c -mcmodel=large -c
fatal error: error in backend: Cannot select: t10: i64 = X86ISD::WrapperRIP
TargetGlobalTLSAddress:i64<i32* @x> 0 [TF=10]
t9: i64 = TargetGlobalTLSAddress<i32* @x> 0 [TF=10]
In function: f
clang-3.9: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
--
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/20160310/69f4721d/attachment.html>
More information about the llvm-bugs
mailing list