Disallow matching "i" constraint to symbol addresses when
authorDale Johannesen <dalej@apple.com>
Thu, 24 Jun 2010 20:14:51 +0000 (20:14 +0000)
committerDale Johannesen <dalej@apple.com>
Thu, 24 Jun 2010 20:14:51 +0000 (20:14 +0000)
commite5ff9ef195722cbbf4b6ed7d34412f7277d05eda
tree7e9f5b5b8794b8939c501aaa5bfd33697616ebd4
parentdd6f86a28f1ae77ec2a35598f6a7a934dd5d802f
Disallow matching "i" constraint to symbol addresses when
address requires a register or secondary load to compute
(most PIC modes).  This improves "g" constraint handling.  8015842.

The test from 2007 is attempting to test the fix for PR1761,
but since -relocation-model=static doesn't work on Darwin
x86-64, it was not testing what it was supposed to be testing
and was passing erroneously.  Fixed to use Linux x86-64.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106779 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/2007-11-04-rip-immediate-constant.ll
test/CodeGen/X86/2010-06-24-g-constraint-crash.ll [new file with mode: 0644]