Use vld1 / vst2 for unaligned v2f64 load / store. e.g. Use vld1.16 for 2-byte
[oota-llvm.git] / test / CodeGen / ARM / 2011-10-26-memset-with-neon.ll
1 ; RUN: llc -march=arm -mcpu=cortex-a8 < %s | FileCheck %s
2
3 ; Should trigger a NEON store.
4 ; CHECK: vstr
5 define void @f_0_12(i8* nocapture %c) nounwind optsize {
6 entry:
7   call void @llvm.memset.p0i8.i64(i8* %c, i8 0, i64 12, i32 8, i1 false)
8   ret void
9 }
10
11 ; Trigger multiple NEON stores.
12 ; CHECK:      vst1.64
13 ; CHECK-NEXT: vst1.64
14 define void @f_0_40(i8* nocapture %c) nounwind optsize {
15 entry:
16   call void @llvm.memset.p0i8.i64(i8* %c, i8 0, i64 40, i32 16, i1 false)
17   ret void
18 }
19
20 declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) nounwind