diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-03-28 21:40:47 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-03-28 21:40:47 +0000 |
commit | f3e8b0575d9eacc388bd4e1107828e30a15dc2d9 (patch) | |
tree | b20cf582c20d363e47a68641027d8f6897960adb /test/CodeGen/X86/call-imm.ll | |
parent | 8a21cb2433bcda50fb0434e5377d6bf54fcf16b7 (diff) | |
download | llvm-f3e8b0575d9eacc388bd4e1107828e30a15dc2d9.tar.gz llvm-f3e8b0575d9eacc388bd4e1107828e30a15dc2d9.tar.bz2 llvm-f3e8b0575d9eacc388bd4e1107828e30a15dc2d9.tar.xz |
X86: Disable IsLegalToCallImmediateAddr for Win32
WinCOFF cannot form PC relative relocations to support absolute
MCValues. We should reenable this once WinCOFF supports emission of
IMAGE_REL_I386_REL32 relocations.
This fixes PR19272.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205058 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/call-imm.ll')
-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 8753594df1..898b4ec203 100644 --- a/test/CodeGen/X86/call-imm.ll +++ b/test/CodeGen/X86/call-imm.ll @@ -1,6 +1,7 @@ ; RUN: llc < %s -mtriple=i386-apple-darwin -relocation-model=static | FileCheck -check-prefix X86STA %s ; RUN: llc < %s -mtriple=i386-apple-darwin -relocation-model=pic | FileCheck -check-prefix X86PIC %s ; RUN: llc < %s -mtriple=i386-pc-linux -relocation-model=dynamic-no-pic | FileCheck -check-prefix X86DYN %s +; RUN: llc < %s -mtriple=i386-pc-win32 -relocation-model=static | FileCheck -check-prefix X86WINSTA %s ; 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. @@ -20,4 +21,5 @@ entry: ; X86STA: {{call.*12345678}} ; X86PIC-NOT: {{call.*12345678}} ; X86DYN: {{call.*12345678}} +; X86WINSTA: {{call.*[*]%eax}} ; X64: {{call.*[*]%rax}} |