55 lines · plain
1; RUN: llc -mtriple thumbv5-none-linux-gnueabi < %s | FileCheck %s2 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]+}}, [{{.*}}], #19;CHECK-NOT: strb r{{[0-9]+}}, [{{.*}}], #110define void @pass_C() #0 {11entry:12 %c = alloca %struct.C, align 113 call void @llvm.lifetime.start.p0(i64 1000, ptr %c) #114 call void @use_C(ptr byval(%struct.C) %c) #315 call void @llvm.lifetime.end.p0(i64 1000, ptr %c) #116 ret void17}18 19;CHECK-LABEL: pass_S:20;CHECK-NOT: ldrh r{{[0-9]+}}, [{{.*}}], #221;CHECK-NOT: strh r{{[0-9]+}}, [{{.*}}], #222define void @pass_S() #0 {23entry:24 %s = alloca %struct.S, align 225 call void @llvm.lifetime.start.p0(i64 2000, ptr %s) #126 call void @use_S(ptr byval(%struct.S) %s) #327 call void @llvm.lifetime.end.p0(i64 2000, ptr %s) #128 ret void29}30 31;CHECK-LABEL: pass_I:32;CHECK-NOT: ldr r{{[0-9]+}}, [{{.*}}], #433;CHECK-NOT: str r{{[0-9]+}}, [{{.*}}], #434define void @pass_I() #0 {35entry:36 %i = alloca %struct.I, align 437 call void @llvm.lifetime.start.p0(i64 4000, ptr %i) #138 call void @use_I(ptr byval(%struct.I) %i) #339 call void @llvm.lifetime.end.p0(i64 4000, ptr %i) #140 ret void41}42 43declare void @use_C(ptr byval(%struct.C)) #244declare void @use_S(ptr byval(%struct.S)) #245declare void @use_I(ptr byval(%struct.I)) #246 47declare void @llvm.lifetime.start.p0(i64, ptr nocapture) #148declare void @llvm.lifetime.end.p0(i64, ptr nocapture) #149 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" "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" "use-soft-float"="false" }54attributes #3 = { nounwind optsize }55