12
12
//.
13
13
// CHECK: Function Attrs: mustprogress nofree noinline norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none)
14
14
// CHECK-LABEL: define dso_local void @escape
15
- // CHECK-SAME: (ptr noundef [[P:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] !pcsections !2 {
15
+ // CHECK-SAME: (ptr noundef [[P:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] !pcsections [[META2:![0-9]+]] {
16
16
// CHECK-NEXT: entry:
17
17
// CHECK-NEXT: ret void
18
18
//
@@ -23,13 +23,13 @@ __attribute__((noinline, not_tail_called)) void escape(const volatile void *p) {
23
23
24
24
// CHECK: Function Attrs: mustprogress nofree norecurse nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: none)
25
25
// CHECK-LABEL: define dso_local i32 @normal_function
26
- // CHECK-SAME: (ptr noundef [[X:%.*]], ptr nocapture noundef readonly [[Y:%.*]]) local_unnamed_addr #[[ATTR1:[0-9]+]] !pcsections !4 {
26
+ // CHECK-SAME: (ptr noundef [[X:%.*]], ptr nocapture noundef readonly [[Y:%.*]]) local_unnamed_addr #[[ATTR1:[0-9]+]] !pcsections [[META4:![0-9]+]] {
27
27
// CHECK-NEXT: entry:
28
28
// CHECK-NEXT: [[X_ADDR:%.*]] = alloca ptr, align 8
29
29
// CHECK-NEXT: store ptr [[X]], ptr [[X_ADDR]], align 8, !tbaa [[TBAA6:![0-9]+]]
30
- // CHECK-NEXT: store atomic i32 1, ptr [[X]] monotonic, align 4, !pcsections !10
30
+ // CHECK-NEXT: store atomic i32 1, ptr [[X]] monotonic, align 4, !pcsections [[META11:![0-9]+]]
31
31
// CHECK-NEXT: notail call void @escape(ptr noundef nonnull [[X_ADDR]])
32
- // CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[Y]], align 4, !tbaa [[TBAA11 :![0-9]+]]
32
+ // CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[Y]], align 4, !tbaa [[TBAA12 :![0-9]+]]
33
33
// CHECK-NEXT: ret i32 [[TMP0]]
34
34
//
35
35
int normal_function (int * x , int * y ) {
@@ -46,7 +46,7 @@ int normal_function(int *x, int *y) {
46
46
// CHECK-NEXT: store ptr [[X]], ptr [[X_ADDR]], align 8, !tbaa [[TBAA6]]
47
47
// CHECK-NEXT: store atomic i32 1, ptr [[X]] monotonic, align 4
48
48
// CHECK-NEXT: notail call void @escape(ptr noundef nonnull [[X_ADDR]])
49
- // CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[Y]], align 4, !tbaa [[TBAA11 ]]
49
+ // CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[Y]], align 4, !tbaa [[TBAA12 ]]
50
50
// CHECK-NEXT: ret i32 [[TMP0]]
51
51
//
52
52
__attribute__((disable_sanitizer_instrumentation )) int test_disable_sanitize_instrumentation (int * x , int * y ) {
@@ -57,13 +57,13 @@ __attribute__((disable_sanitizer_instrumentation)) int test_disable_sanitize_ins
57
57
58
58
// CHECK: Function Attrs: mustprogress nofree norecurse nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: none)
59
59
// CHECK-LABEL: define dso_local i32 @test_no_sanitize_thread
60
- // CHECK-SAME: (ptr noundef [[X:%.*]], ptr nocapture noundef readonly [[Y:%.*]]) local_unnamed_addr #[[ATTR3:[0-9]+]] !pcsections !13 {
60
+ // CHECK-SAME: (ptr noundef [[X:%.*]], ptr nocapture noundef readonly [[Y:%.*]]) local_unnamed_addr #[[ATTR3:[0-9]+]] !pcsections [[META14:![0-9]+]] {
61
61
// CHECK-NEXT: entry:
62
62
// CHECK-NEXT: [[X_ADDR:%.*]] = alloca ptr, align 8
63
63
// CHECK-NEXT: store ptr [[X]], ptr [[X_ADDR]], align 8, !tbaa [[TBAA6]]
64
- // CHECK-NEXT: store atomic i32 1, ptr [[X]] monotonic, align 4, !pcsections !10
64
+ // CHECK-NEXT: store atomic i32 1, ptr [[X]] monotonic, align 4, !pcsections [[META11]]
65
65
// CHECK-NEXT: notail call void @escape(ptr noundef nonnull [[X_ADDR]])
66
- // CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[Y]], align 4, !tbaa [[TBAA11 ]]
66
+ // CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[Y]], align 4, !tbaa [[TBAA12 ]]
67
67
// CHECK-NEXT: ret i32 [[TMP0]]
68
68
//
69
69
__attribute__((no_sanitize ("thread" ))) int test_no_sanitize_thread (int * x , int * y ) {
@@ -74,13 +74,13 @@ __attribute__((no_sanitize("thread"))) int test_no_sanitize_thread(int *x, int *
74
74
75
75
// CHECK: Function Attrs: mustprogress nofree norecurse nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: none)
76
76
// CHECK-LABEL: define dso_local i32 @test_no_sanitize_all
77
- // CHECK-SAME: (ptr noundef [[X:%.*]], ptr nocapture noundef readonly [[Y:%.*]]) local_unnamed_addr #[[ATTR3]] !pcsections !13 {
77
+ // CHECK-SAME: (ptr noundef [[X:%.*]], ptr nocapture noundef readonly [[Y:%.*]]) local_unnamed_addr #[[ATTR3]] !pcsections [[META14]] {
78
78
// CHECK-NEXT: entry:
79
79
// CHECK-NEXT: [[X_ADDR:%.*]] = alloca ptr, align 8
80
80
// CHECK-NEXT: store ptr [[X]], ptr [[X_ADDR]], align 8, !tbaa [[TBAA6]]
81
- // CHECK-NEXT: store atomic i32 1, ptr [[X]] monotonic, align 4, !pcsections !10
81
+ // CHECK-NEXT: store atomic i32 1, ptr [[X]] monotonic, align 4, !pcsections [[META11]]
82
82
// CHECK-NEXT: notail call void @escape(ptr noundef nonnull [[X_ADDR]])
83
- // CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[Y]], align 4, !tbaa [[TBAA11 ]]
83
+ // CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[Y]], align 4, !tbaa [[TBAA12 ]]
84
84
// CHECK-NEXT: ret i32 [[TMP0]]
85
85
//
86
86
__attribute__((no_sanitize ("all" ))) int test_no_sanitize_all (int * x , int * y ) {
@@ -89,23 +89,9 @@ __attribute__((no_sanitize("all"))) int test_no_sanitize_all(int *x, int *y) {
89
89
return * y ;
90
90
}
91
91
//.
92
- // CHECK: attributes #0 = { mustprogress nofree noinline norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none) "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87" }
93
- // CHECK: attributes #1 = { mustprogress nofree norecurse nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: none) "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87" }
94
- // CHECK: attributes #2 = { disable_sanitizer_instrumentation mustprogress nofree norecurse nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: none) "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87" }
95
- // CHECK: attributes #3 = { mustprogress nofree norecurse nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: none) "min-legal-vector-width"="0" "no-trapping-math"="true" "no_sanitize_thread" "stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87" }
96
- // CHECK: attributes #4 = { nounwind "target-features"="+cx8,+mmx,+sse,+sse2,+x87" }
97
- //.
98
- // CHECK: !2 = !{!"sanmd_covered2!C", !3}
99
- // CHECK: !3 = !{i64 0}
100
- // CHECK: !4 = !{!"sanmd_covered2!C", !5}
101
- // CHECK: !5 = !{i64 3}
102
- // CHECK: !6 = !{!7, !7, i64 0}
103
- // CHECK: !7 = !{!"any pointer", !8, i64 0}
104
- // CHECK: !8 = !{!"omnipotent char", !9, i64 0}
105
- // CHECK: !9 = !{!"Simple C/C++ TBAA"}
106
- // CHECK: !10 = !{!"sanmd_atomics2!C"}
107
- // CHECK: !11 = !{!12, !12, i64 0}
108
- // CHECK: !12 = !{!"int", !8, i64 0}
109
- // CHECK: !13 = !{!"sanmd_covered2!C", !14}
110
- // CHECK: !14 = !{i64 2}
92
+ // CHECK: attributes #[[ATTR0]] = { mustprogress nofree noinline norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none) "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87" }
93
+ // CHECK: attributes #[[ATTR1]] = { mustprogress nofree norecurse nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: none) "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87" }
94
+ // CHECK: attributes #[[ATTR2]] = { disable_sanitizer_instrumentation mustprogress nofree norecurse nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: none) "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87" }
95
+ // CHECK: attributes #[[ATTR3]] = { mustprogress nofree norecurse nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: none) "min-legal-vector-width"="0" "no-trapping-math"="true" "no_sanitize_thread" "stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87" }
96
+ // CHECK: attributes #[[ATTR4:[0-9]+]] = { nounwind "target-features"="+cx8,+mmx,+sse,+sse2,+x87" }
111
97
//.
0 commit comments