summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/memset64-on-x86-32.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-08-21 21:00:15 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-08-21 21:00:15 +0000
commit1887c1c2f99903d13406e723f2dcbab4511e3f49 (patch)
treea41725c80694a8834cd1eb9557d175b2880cb389 /test/CodeGen/X86/memset64-on-x86-32.ll
parent66b17ba0d263442b8b4e82aaa08acc0df85e1787 (diff)
downloadllvm-1887c1c2f99903d13406e723f2dcbab4511e3f49.tar.gz
llvm-1887c1c2f99903d13406e723f2dcbab4511e3f49.tar.bz2
llvm-1887c1c2f99903d13406e723f2dcbab4511e3f49.tar.xz
Fix a number of byval / memcpy / memset related codegen issues.
1. x86-64 byval alignment should be max of 8 and alignment of type. Previously the code was not doing what the commit message was saying. 2. Do not use byte repeat move and store operations. These are slow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/memset64-on-x86-32.ll')
-rw-r--r--test/CodeGen/X86/memset64-on-x86-32.ll12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/CodeGen/X86/memset64-on-x86-32.ll b/test/CodeGen/X86/memset64-on-x86-32.ll
index 7045c0faf0..d76d4d4792 100644
--- a/test/CodeGen/X86/memset64-on-x86-32.ll
+++ b/test/CodeGen/X86/memset64-on-x86-32.ll
@@ -1,12 +1,10 @@
-; RUN: llvm-as < %s | llc -march=x86 | grep stosb
+; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin | grep stosl
+; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin | grep movq | count 10
-target triple = "i386-apple-darwin9"
- %struct.S = type { [80 x i8] }
-
-define %struct.S* @bork() {
+define void @bork() nounwind {
entry:
- call void @llvm.memset.i64( i8* null, i8 0, i64 80, i32 1 )
- ret %struct.S* null
+ call void @llvm.memset.i64( i8* null, i8 0, i64 80, i32 4 )
+ ret void
}
declare void @llvm.memset.i64(i8*, i8, i64, i32) nounwind