aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-29 19:42:22 +0000
committerDan Gohman <gohman@apple.com>2008-05-29 19:42:22 +0000
commit21323f3a829df0e6d9b4566a551619a01e269ba6 (patch)
treeb1236f491c1de258e4588884afd05e23282dee2a /test/CodeGen/X86
parent0b85642898bd81209e56e8098c065e2975d455a0 (diff)
downloadexternal_llvm-21323f3a829df0e6d9b4566a551619a01e269ba6.zip
external_llvm-21323f3a829df0e6d9b4566a551619a01e269ba6.tar.gz
external_llvm-21323f3a829df0e6d9b4566a551619a01e269ba6.tar.bz2
Expand small memmovs using inline code. Set the X86 threshold for expanding
memmove to a more plausible value, now that it's actually being used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r--test/CodeGen/X86/memmove-4.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/memmove-4.ll b/test/CodeGen/X86/memmove-4.ll
new file mode 100644
index 0000000..f23c7d5
--- /dev/null
+++ b/test/CodeGen/X86/memmove-4.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | llc | not grep call
+
+target triple = "i686-pc-linux-gnu"
+
+define void @a(i8* %a, i8* %b) nounwind {
+ %tmp2 = bitcast i8* %a to i8*
+ %tmp3 = bitcast i8* %b to i8*
+ tail call void @llvm.memmove.i32( i8* %tmp2, i8* %tmp3, i32 12, i32 4 )
+ ret void
+}
+
+declare void @llvm.memmove.i32(i8*, i8*, i32, i32)