1
+ // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
1
2
// RUN: %clang_cc1 %s -triple hexagon-unknown-elf -O2 -emit-llvm -o - | FileCheck %s
2
3
3
4
typedef union __attribute__ ((aligned (4 ))) {
@@ -7,9 +8,9 @@ typedef union __attribute__((aligned(4))) {
7
8
8
9
void bar (vect32 p [][2 ]);
9
10
10
- // CHECK-LABEL: define dso_local void @fred
11
- // CHECK-SAME: ( i32 noundef [[NUM:%.*]], ptr noundef writeonly captures(none) initializes((0, 8)) [[VEC:%.*]], ptr noundef readonly captures(none) [[INDEX:%.*]], ptr noundef readonly captures(none) [[ARR:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] {
12
- // CHECK-NEXT: entry:
11
+ // CHECK-LABEL: define dso_local void @fred(
12
+ // CHECK-SAME: i32 noundef [[NUM:%.*]], ptr noundef writeonly captures(none) initializes((0, 8)) [[VEC:%.*]], ptr noundef readonly captures(none) [[INDEX:%.*]], ptr noundef readonly captures(none) [[ARR:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] {
13
+ // CHECK-NEXT: [[ENTRY:.*:]]
13
14
// CHECK-NEXT: [[TMP:%.*]] = alloca [4 x [2 x %union.vect32]], align 8
14
15
// CHECK-NEXT: call void @llvm.lifetime.start.p0(ptr nonnull [[TMP]]) #[[ATTR3:[0-9]+]]
15
16
// CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[INDEX]], align 4, !tbaa [[TBAA2:![0-9]+]]
@@ -45,5 +46,10 @@ void fred(unsigned Num, int Vec[2], int *Index, int Arr[4][2]) {
45
46
bar (Tmp );
46
47
}
47
48
48
- // CHECK-DAG: [[CHAR:![0-9]+]] = !{!"omnipotent char"
49
- // CHECK-DAG: [[TBAA6]] = !{[[CHAR]], [[CHAR]], i64 0}
49
+ //.
50
+ // CHECK: [[TBAA2]] = !{[[META3:![0-9]+]], [[META3]], i64 0}
51
+ // CHECK: [[META3]] = !{!"int", [[META4:![0-9]+]], i64 0}
52
+ // CHECK: [[META4]] = !{!"omnipotent char", [[META5:![0-9]+]], i64 0}
53
+ // CHECK: [[META5]] = !{!"Simple C/C++ TBAA"}
54
+ // CHECK: [[TBAA6]] = !{[[META4]], [[META4]], i64 0}
55
+ //.
0 commit comments