diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2009-03-04 06:48:53 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2009-03-04 06:48:53 +0000 |
| commit | 9edd616b5945bfd778d078a15fb4e4000a7e6ba3 (patch) | |
| tree | 8e76bbb31ca31831e830ede28d5c0afdc0dbbf24 /llvm/test/CodeGen | |
| parent | 9631e1871e5755d69418126a24a8b601b562bf56 (diff) | |
| download | bcm5719-llvm-9edd616b5945bfd778d078a15fb4e4000a7e6ba3.tar.gz bcm5719-llvm-9edd616b5945bfd778d078a15fb4e4000a7e6ba3.zip | |
Fix PR3666: isel calls to constant addresses.
llvm-svn: 66024
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/X86/call-imm.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/call-imm.ll b/llvm/test/CodeGen/X86/call-imm.ll new file mode 100644 index 00000000000..25b911f5971 --- /dev/null +++ b/llvm/test/CodeGen/X86/call-imm.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | llc -march=x86 | grep call | grep 12345678 +; RUN: llvm-as < %s | llc -march=x86-64 | grep call | grep 12345678 +; PR3666 + +define i32 @main() nounwind { +entry: + %0 = call i32 inttoptr (i32 12345678 to i32 (i32)*)(i32 0) nounwind ; <i32> [#uses=1] + ret i32 %0 +} |

