aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-03-12 23:01:35 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-03-12 23:01:35 +0000
commit379e15e9882482c982c4572e724f6b73e35e3a93 (patch)
treec356f2c98f4a31caec51f3223b2322be808f053b
parentbcf8ea9554bbed7590b1e13f93de22ba57b4b853 (diff)
Add this test back.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66838 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/X86/call-imm.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/call-imm.ll b/test/CodeGen/X86/call-imm.ll
new file mode 100644
index 0000000000..b99149b687
--- /dev/null
+++ b/test/CodeGen/X86/call-imm.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc -march=x86 | grep call | not grep {*}
+; RUN: llvm-as < %s | llc -march=x86 | grep call | grep 12345678
+; RUN: llvm-as < %s | llc -march=x86-64 | grep call | grep 12345678
+; PR3666
+; PR3773
+
+define i32 @main() nounwind {
+entry:
+ %0 = call i32 inttoptr (i32 12345678 to i32 (i32)*)(i32 0) nounwind ; <i32> [#uses=1]
+ ret i32 %0
+}