summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/fold-call.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/fold-call.ll')
-rw-r--r--test/CodeGen/X86/fold-call.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fold-call.ll b/test/CodeGen/X86/fold-call.ll
new file mode 100644
index 0000000000..53991717c6
--- /dev/null
+++ b/test/CodeGen/X86/fold-call.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=x86 | not grep mov
+; RUN: llvm-as < %s | llc -march=x86-64 | not grep mov
+
+declare void @bar()
+
+define void @foo(i32 %i0, i32 %i1, i32 %i2, i32 %i3, i32 %i4, i32 %i5, void()* %arg) nounwind {
+ call void @bar()
+ call void %arg()
+ ret void
+}