aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/sibcall-4.ll
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@FreeBSD.org>2010-07-15 17:06:11 +0000
committerRoman Divacky <rdivacky@FreeBSD.org>2010-07-15 17:06:11 +0000
commitf3d15b0b3791d746d44d99b05d3bcb2e9bdf0eb3 (patch)
tree5b6d391c72c9875f0065f0e772e872bc8544834b /test/CodeGen/X86/sibcall-4.ll
parent66e41e3c6e8b8fbc48d5d3b4d2bd9ce0be4ecb75 (diff)
downloadsrc-f3d15b0b3791d746d44d99b05d3bcb2e9bdf0eb3.tar.gz
src-f3d15b0b3791d746d44d99b05d3bcb2e9bdf0eb3.zip
Update LLVM to r108428.
Notes
Notes: svn path=/vendor/llvm/dist/; revision=210127
Diffstat (limited to 'test/CodeGen/X86/sibcall-4.ll')
-rw-r--r--test/CodeGen/X86/sibcall-4.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/sibcall-4.ll b/test/CodeGen/X86/sibcall-4.ll
new file mode 100644
index 000000000000..1499e6688024
--- /dev/null
+++ b/test/CodeGen/X86/sibcall-4.ll
@@ -0,0 +1,13 @@
+; RUN: llc < %s -mtriple=i386-pc-linux-gnu | FileCheck %s
+; pr7610
+
+define cc10 void @t(i32* %Base_Arg, i32* %Sp_Arg, i32* %Hp_Arg, i32 %R1_Arg) nounwind {
+cm1:
+; CHECK: t:
+; CHECK: jmpl *%eax
+ %nm3 = getelementptr i32* %Sp_Arg, i32 1
+ %nm9 = load i32* %Sp_Arg
+ %nma = inttoptr i32 %nm9 to void (i32*, i32*, i32*, i32)*
+ tail call cc10 void %nma(i32* %Base_Arg, i32* %nm3, i32* %Hp_Arg, i32 %R1_Arg) nounwind
+ ret void
+}