summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-05-20 01:11:00 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-05-20 01:11:00 +0000
commit65cdee3fd4b66e7a388e66627a1ecaa1131a17d1 (patch)
tree4721b28606db3c56bbacf5aaff6cc488511517fb /test
parenta3035a69f95734ff549f3e12d950bf65400329f7 (diff)
downloadllvm-65cdee3fd4b66e7a388e66627a1ecaa1131a17d1.tar.gz
llvm-65cdee3fd4b66e7a388e66627a1ecaa1131a17d1.tar.bz2
llvm-65cdee3fd4b66e7a388e66627a1ecaa1131a17d1.tar.xz
Cannot use immediate as call absolute target in PIC mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/call-imm.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CodeGen/X86/call-imm.ll b/test/CodeGen/X86/call-imm.ll
index 8233d8698a..b22b65eaea 100644
--- a/test/CodeGen/X86/call-imm.ll
+++ b/test/CodeGen/X86/call-imm.ll
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llc -march=x86 | grep {call.*12345678}
+; RUN: llvm-as < %s | llc -march=x86 -relocation-model=pic | not grep {call.*12345678}
; Call to immediate is not safe on x86-64 unless we *know* that the
; call will be within 32-bits pcrel from the dest immediate.
@@ -7,6 +8,7 @@
; PR3666
; PR3773
+; rdar://6904453
define i32 @main() nounwind {
entry: