summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/byval-memcpy.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/byval-memcpy.ll')
-rw-r--r--test/CodeGen/X86/byval-memcpy.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/byval-memcpy.ll b/test/CodeGen/X86/byval-memcpy.ll
new file mode 100644
index 0000000000..3f57f509a0
--- /dev/null
+++ b/test/CodeGen/X86/byval-memcpy.ll
@@ -0,0 +1,10 @@
+; RUN: llc < %s -march=x86-64 | FileCheck %s
+; RUN: llc < %s -march=x86 | FileCheck %s
+; CHECK: _memcpy
+define void @foo([40000 x i32] *%P) nounwind {
+ call void @bar([40000 x i32] * byval align 1 %P)
+ ret void
+}
+
+declare void @bar([40000 x i32] *%P )
+