diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2009-05-20 04:53:57 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2009-05-20 04:53:57 +0000 |
| commit | 960983371cd6590fc9e507331e08cd64d49a1618 (patch) | |
| tree | 5fad879be40c08bd5aaf4cc74078edb36fe6fd03 /llvm/test/CodeGen/X86/call-imm.ll | |
| parent | c21cb44de28cde3eae6797e6ba0d35016d6d92fe (diff) | |
| download | bcm5719-llvm-960983371cd6590fc9e507331e08cd64d49a1618.tar.gz bcm5719-llvm-960983371cd6590fc9e507331e08cd64d49a1618.zip | |
Try again. Allow call to immediate address for ELF or when in static relocation mode.
llvm-svn: 72160
Diffstat (limited to 'llvm/test/CodeGen/X86/call-imm.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/call-imm.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/call-imm.ll b/llvm/test/CodeGen/X86/call-imm.ll index b22b65eaea2..c39c6c09292 100644 --- a/llvm/test/CodeGen/X86/call-imm.ll +++ b/llvm/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 -mtriple=i386-darwin-apple -relocation-model=static | grep {call.*12345678} +; RUN: llvm-as < %s | llc -mtriple=i386-pc-linux -relocation-model=dynamic-no-pic | 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 |

