55 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals2; RUN: opt -aa-pipeline=basic-aa -passes=attributor -attributor-manifest-internal -attributor-annotate-decl-cs -S < %s | FileCheck %s --check-prefixes=CHECK,TUNIT3; RUN: opt -aa-pipeline=basic-aa -passes=attributor-cgscc -attributor-manifest-internal -attributor-annotate-decl-cs -S < %s | FileCheck %s --check-prefixes=CHECK,CGSCC4 5define internal fastcc i32 @term_SharingList(ptr %Term, ptr %List) nounwind {6; CGSCC: Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none)7; CGSCC-LABEL: define {{[^@]+}}@term_SharingList8; CGSCC-SAME: () #[[ATTR0:[0-9]+]] {9; CGSCC-NEXT: entry:10; CGSCC-NEXT: br i1 false, label [[BB:%.*]], label [[BB5:%.*]]11; CGSCC: bb:12; CGSCC-NEXT: unreachable13; CGSCC: bb5:14; CGSCC-NEXT: ret i32 undef15;16entry:17 br i1 false, label %bb, label %bb518 19bb: ; preds = %entry20 %0 = call fastcc i32 @term_SharingList( ptr null, ptr %List ) nounwind ; <i32> [#uses=0]21 unreachable22 23bb5: ; preds = %entry24 ret i32 025}26 27define i32 @term_Sharing(ptr %Term) nounwind {28; CHECK: Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none)29; CHECK-LABEL: define {{[^@]+}}@term_Sharing30; CHECK-SAME: (ptr nofree readnone captures(none) [[TERM:%.*]]) #[[ATTR0:[0-9]+]] {31; CHECK-NEXT: entry:32; CHECK-NEXT: br i1 false, label [[BB_I:%.*]], label [[BB14:%.*]]33; CHECK: bb.i:34; CHECK-NEXT: unreachable35; CHECK: bb14:36; CHECK-NEXT: ret i32 037;38entry:39 br i1 false, label %bb.i, label %bb1440 41bb.i: ; preds = %entry42 %0 = call fastcc i32 @term_SharingList( ptr null, ptr null ) nounwind ; <i32> [#uses=0]43 ret i32 144 45bb14: ; preds = %entry46 ret i32 047}48;.49; TUNIT: attributes #[[ATTR0]] = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) }50;.51; CGSCC: attributes #[[ATTR0]] = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) }52;.53;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:54; TUNIT: {{.*}}55