1; RUN: llc -mtriple thumbv5-none-linux-gnueabi < %s | FileCheck %s 2 3%struct.C = type { [1000 x i8] } 4%struct.S = type { [1000 x i16] } 5%struct.I = type { [1000 x i32] } 6 7;CHECK-LABEL: pass_C: 8;CHECK-NOT: ldrb r{{[0-9]+}}, [{{.*}}], #1 9;CHECK-NOT: strb r{{[0-9]+}}, [{{.*}}], #1 10define void @pass_C() #0 { 11entry: 12 %c = alloca %struct.C, align 1 13 call void @llvm.lifetime.start.p0(i64 1000, ptr %c) #1 14 call void @use_C(ptr byval(%struct.C) %c) #3 15 call void @llvm.lifetime.end.p0(i64 1000, ptr %c) #1 16 ret void 17} 18 19;CHECK-LABEL: pass_S: 20;CHECK-NOT: ldrh r{{[0-9]+}}, [{{.*}}], #2 21;CHECK-NOT: strh r{{[0-9]+}}, [{{.*}}], #2 22define void @pass_S() #0 { 23entry: 24 %s = alloca %struct.S, align 2 25 call void @llvm.lifetime.start.p0(i64 2000, ptr %s) #1 26 call void @use_S(ptr byval(%struct.S) %s) #3 27 call void @llvm.lifetime.end.p0(i64 2000, ptr %s) #1 28 ret void 29} 30 31;CHECK-LABEL: pass_I: 32;CHECK-NOT: ldr r{{[0-9]+}}, [{{.*}}], #4 33;CHECK-NOT: str r{{[0-9]+}}, [{{.*}}], #4 34define void @pass_I() #0 { 35entry: 36 %i = alloca %struct.I, align 4 37 call void @llvm.lifetime.start.p0(i64 4000, ptr %i) #1 38 call void @use_I(ptr byval(%struct.I) %i) #3 39 call void @llvm.lifetime.end.p0(i64 4000, ptr %i) #1 40 ret void 41} 42 43declare void @use_C(ptr byval(%struct.C)) #2 44declare void @use_S(ptr byval(%struct.S)) #2 45declare void @use_I(ptr byval(%struct.I)) #2 46 47declare void @llvm.lifetime.start.p0(i64, ptr nocapture) #1 48declare void @llvm.lifetime.end.p0(i64, ptr nocapture) #1 49 50 51attributes #0 = { nounwind optsize "less-precise-fpmad"="false" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } 52attributes #1 = { nounwind } 53attributes #2 = { optsize "less-precise-fpmad"="false" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } 54attributes #3 = { nounwind optsize } 55