2011-11-02 22:52:45 +00:00
|
|
|
; RUN: llc -march=arm -mcpu=cortex-a8 < %s | FileCheck %s
|
|
|
|
|
|
|
|
; Should trigger a NEON store.
|
2011-11-14 23:03:21 +00:00
|
|
|
; CHECK: vstr
|
2011-11-02 22:52:45 +00:00
|
|
|
define void @f_0_12(i8* nocapture %c) nounwind optsize {
|
|
|
|
entry:
|
|
|
|
call void @llvm.memset.p0i8.i64(i8* %c, i8 0, i64 12, i32 8, i1 false)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; Trigger multiple NEON stores.
|
|
|
|
; CHECK: vstmia
|
|
|
|
; CHECK-NEXT: vstmia
|
|
|
|
define void @f_0_40(i8* nocapture %c) nounwind optsize {
|
|
|
|
entry:
|
|
|
|
call void @llvm.memset.p0i8.i64(i8* %c, i8 0, i64 40, i32 16, i1 false)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) nounwind
|