2010-11-18 09:35:23 +08:00
|
|
|
; RUN: llc -mtriple=x86_64-apple-darwin -mcpu=nehalem < %s | FileCheck %s
|
|
|
|
|
|
|
|
@a = common global [3 x i64] zeroinitializer, align 16
|
|
|
|
|
|
|
|
define i32 @main() nounwind ssp {
|
|
|
|
; CHECK: movups
|
|
|
|
entry:
|
|
|
|
%retval = alloca i32, align 4
|
|
|
|
store i32 0, i32* %retval
|
2015-11-19 13:56:52 +08:00
|
|
|
call void @llvm.memset.p0i8.i64(i8* bitcast (i64* getelementptr inbounds ([3 x i64], [3 x i64]* @a, i32 0, i64 1) to i8*), i8 0, i64 16, i32 1, i1 false)
|
2015-02-28 05:17:42 +08:00
|
|
|
%0 = load i32, i32* %retval
|
2010-11-18 09:35:23 +08:00
|
|
|
ret i32 %0
|
|
|
|
}
|
|
|
|
|
2015-11-19 13:56:52 +08:00
|
|
|
declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) nounwind
|