1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/CodeGen/X86/memset64-on-x86-32.ll
Evan Cheng ef2509b3ba 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.

llvm-svn: 55139
2008-08-21 21:00:15 +00:00

12 lines
330 B
LLVM

; 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
define void @bork() nounwind {
entry:
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