summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorLouis Gerbarg <lgg@apple.com>2014-06-16 17:35:40 +0000
committerLouis Gerbarg <lgg@apple.com>2014-06-16 17:35:40 +0000
commita5360c4cd887413c386ea678784ab08011764191 (patch)
tree8f2892a67b148be41b1013bad29ca9b412c29a25 /clang/lib/CodeGen
parent89ea9610b3061c4a897fedbe3bec319723e43066 (diff)
downloadbcm5719-llvm-a5360c4cd887413c386ea678784ab08011764191.tar.gz
bcm5719-llvm-a5360c4cd887413c386ea678784ab08011764191.zip
Fix illegal relocations in X86FastISel
On x86_86 the lea instruction can only use a 32 bit immediate value. When the code is compiled statically the RIP register is not used, meaning the immediate is all that can be used for the relocation, which is not sufficient in the case of targets more than +/- 2GB away. This patch bails out of fast isel in those cases and reverts to DAG which does the right thing. Test case included. llvm-svn: 211040
Diffstat (limited to 'clang/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud