brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 849ffaf Raw
23 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-attributes2; RUN: opt -aa-pipeline=basic-aa -passes=attributor -S < %s | FileCheck %s --check-prefixes=CHECK,IS__TUNIT____3; RUN: opt -aa-pipeline=basic-aa -passes=attributor-cgscc -S < %s | FileCheck %s --check-prefixes=CHECK,IS__CGSCC____4 5%struct.RT = type { i8, [10 x [20 x i32]], i8 }6%struct.ST = type { i32, double, %struct.RT }7 8define ptr @foo(ptr %s) nounwind uwtable readnone optsize ssp {9; CHECK: Function Attrs: mustprogress nofree norecurse nosync nounwind optsize ssp willreturn memory(none) uwtable10; CHECK-LABEL: define {{[^@]+}}@foo11; CHECK-SAME: (ptr nofree readnone [[S:%.*]]) #[[ATTR0:[0-9]+]] {12; CHECK-NEXT:  entry:13; CHECK-NEXT:    [[ARRAYIDX:%.*]] = getelementptr inbounds [[STRUCT_ST:%.*]], ptr [[S]], i64 1, i32 2, i32 1, i64 5, i64 1314; CHECK-NEXT:    ret ptr [[ARRAYIDX]]15;16entry:17  %arrayidx = getelementptr inbounds %struct.ST, ptr %s, i64 1, i32 2, i32 1, i64 5, i64 1318  ret ptr %arrayidx19}20;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:21; IS__CGSCC____: {{.*}}22; IS__TUNIT____: {{.*}}23