diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-05-20 01:11:00 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-05-20 01:11:00 +0000 |
commit | 65cdee3fd4b66e7a388e66627a1ecaa1131a17d1 (patch) | |
tree | 4721b28606db3c56bbacf5aaff6cc488511517fb /test/CodeGen | |
parent | a3035a69f95734ff549f3e12d950bf65400329f7 (diff) | |
download | external_llvm-65cdee3fd4b66e7a388e66627a1ecaa1131a17d1.zip external_llvm-65cdee3fd4b66e7a388e66627a1ecaa1131a17d1.tar.gz external_llvm-65cdee3fd4b66e7a388e66627a1ecaa1131a17d1.tar.bz2 |
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/CodeGen')
-rw-r--r-- | test/CodeGen/X86/call-imm.ll | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CodeGen/X86/call-imm.ll b/test/CodeGen/X86/call-imm.ll index 8233d86..b22b65e 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: |