1; RUN: llc < %s -mtriple=thumbv7-apple-ios -mcpu=cortex-a8 -pre-RA-sched=source -disable-post-ra | FileCheck %s
2
3define void @t1(i8* nocapture %c) nounwind optsize {
4entry:
5; CHECK-LABEL: t1:
6; CHECK: movs r1, #0
7; CHECK: strd r1, r1, [r0]
8; CHECK: str r1, [r0, #8]
9  call void @llvm.memset.p0i8.i64(i8* %c, i8 0, i64 12, i32 8, i1 false)
10  ret void
11}
12
13define void @t2() nounwind ssp {
14entry:
15; CHECK-LABEL: t2:
16; CHECK: add.w r1, r0, #10
17; CHECK: vmov.i32 {{q[0-9]+}}, #0x0
18; CHECK: vst1.16 {d{{[0-9]+}}, d{{[0-9]+}}}, [r1]
19; CHECK: vst1.64 {d{{[0-9]+}}, d{{[0-9]+}}}, [r0]
20  %buf = alloca [26 x i8], align 1
21  %0 = getelementptr inbounds [26 x i8], [26 x i8]* %buf, i32 0, i32 0
22  call void @llvm.memset.p0i8.i32(i8* %0, i8 0, i32 26, i32 1, i1 false)
23  call void @something(i8* %0) nounwind
24  ret void
25}
26
27declare void @something(i8*) nounwind
28declare void @llvm.memset.p0i8.i32(i8* nocapture, i8, i32, i32, i1) nounwind
29declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) nounwind
30