Skip to content

Commit 7ef2bd4

Browse files
committed
Relax MC/DC tests
1 parent 99c43e3 commit 7ef2bd4

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

clang/test/Profile/c-mcdc-class.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ Value::~Value(void) {
5959
// MCDCCTOR: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
6060
// MCDCCTOR: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
6161
// MCDCCTOR: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
62-
// MCDCCTOR: %mcdc.bits = load i8, ptr %[[LAB4]], align 1
63-
// MCDCCTOR: %[[LAB8:[0-9]+]] = or i8 %mcdc.bits, %[[LAB7]]
62+
// MCDCCTOR: %[[BITS:.+]] = load i8, ptr %[[LAB4]], align 1
63+
// MCDCCTOR: %[[LAB8:[0-9]+]] = or i8 %[[BITS]], %[[LAB7]]
6464
// MCDCCTOR: store i8 %[[LAB8]], ptr %[[LAB4]], align 1
6565

6666
// MCDCDTOR: @__profbm__ZN5ValueD2Ev = private global [1 x i8] zeroinitializer
@@ -97,6 +97,6 @@ Value::~Value(void) {
9797
// MCDCDTOR: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
9898
// MCDCDTOR: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
9999
// MCDCDTOR: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
100-
// MCDCDTOR: %mcdc.bits = load i8, ptr %[[LAB4]], align 1
101-
// MCDCDTOR: %[[LAB8:[0-9]+]] = or i8 %mcdc.bits, %[[LAB7]]
100+
// MCDCDTOR: %[[BITS:.+]] = load i8, ptr %[[LAB4]], align 1
101+
// MCDCDTOR: %[[LAB8:[0-9]+]] = or i8 %[[BITS]], %[[LAB7]]
102102
// MCDCDTOR: store i8 %[[LAB8]], ptr %[[LAB4]], align 1

clang/test/Profile/c-mcdc-logicalop-ternary.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ int test(int a, int b, int c, int d, int e, int f) {
2525
// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
2626
// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
2727
// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
28-
// MCDC: %[[LAB8:mcdc.bits[0-9]*]] = load i8, ptr %[[LAB4]], align 1
28+
// MCDC: %[[LAB8:.+]] = load i8, ptr %[[LAB4]], align 1
2929
// MCDC: %[[LAB9:[0-9]+]] = or i8 %[[LAB8]], %[[LAB7]]
3030
// MCDC: store i8 %[[LAB9]], ptr %[[LAB4]], align 1
3131

@@ -42,7 +42,7 @@ int test(int a, int b, int c, int d, int e, int f) {
4242
// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
4343
// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
4444
// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
45-
// MCDC: %[[LAB8:mcdc.bits[0-9]*]] = load i8, ptr %[[LAB4]], align 1
45+
// MCDC: %[[LAB8:.+]] = load i8, ptr %[[LAB4]], align 1
4646
// MCDC: %[[LAB9:[0-9]+]] = or i8 %[[LAB8]], %[[LAB7]]
4747
// MCDC: store i8 %[[LAB9]], ptr %[[LAB4]], align 1
4848

@@ -55,7 +55,7 @@ int test(int a, int b, int c, int d, int e, int f) {
5555
// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
5656
// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
5757
// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
58-
// MCDC: %[[LAB8:mcdc.bits[0-9]*]] = load i8, ptr %[[LAB4]], align 1
58+
// MCDC: %[[LAB8:.+]] = load i8, ptr %[[LAB4]], align 1
5959
// MCDC: %[[LAB9:[0-9]+]] = or i8 %[[LAB8]], %[[LAB7]]
6060
// MCDC: store i8 %[[LAB9]], ptr %[[LAB4]], align 1
6161

@@ -72,6 +72,6 @@ int test(int a, int b, int c, int d, int e, int f) {
7272
// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
7373
// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
7474
// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
75-
// MCDC: %[[LAB8:mcdc.bits[0-9]*]] = load i8, ptr %[[LAB4]], align 1
75+
// MCDC: %[[LAB8:.+]] = load i8, ptr %[[LAB4]], align 1
7676
// MCDC: %[[LAB9:[0-9]+]] = or i8 %[[LAB8]], %[[LAB7]]
7777
// MCDC: store i8 %[[LAB9]], ptr %[[LAB4]], align 1

clang/test/Profile/c-mcdc-nested-ternary.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ int test(int b, int c, int d, int e, int f) {
6262
// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
6363
// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
6464
// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
65-
// MCDC: %mcdc.bits = load i8, ptr %[[LAB4]], align 1
66-
// MCDC: %[[LAB8:[0-9]+]] = or i8 %mcdc.bits, %[[LAB7]]
65+
// MCDC: %[[BITS:.+]] = load i8, ptr %[[LAB4]], align 1
66+
// MCDC: %[[LAB8:[0-9]+]] = or i8 %[[BITS]], %[[LAB7]]
6767
// MCDC: store i8 %[[LAB8]], ptr %[[LAB4]], align 1

clang/test/Profile/c-mcdc-not.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ int test(int a, int b, int c, int d, int e, int f) {
8282
// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
8383
// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
8484
// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
85-
// MCDC: %mcdc.bits = load i8, ptr %[[LAB4]], align 1
86-
// MCDC: %[[LAB8:[0-9]+]] = or i8 %mcdc.bits, %[[LAB7]]
85+
// MCDC: %[[BITS:.+]] = load i8, ptr %[[LAB4]], align 1
86+
// MCDC: %[[LAB8:[0-9]+]] = or i8 %[[BITS]], %[[LAB7]]
8787
// MCDC: store i8 %[[LAB8]], ptr %[[LAB4]], align 1

clang/test/Profile/c-mcdc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@ int test(int a, int b, int c, int d, int e, int f) {
9090
// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
9191
// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
9292
// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
93-
// MCDC: %mcdc.bits = load i8, ptr %[[LAB4]], align 1
94-
// MCDC: %[[LAB8:[0-9]+]] = or i8 %mcdc.bits, %[[LAB7]]
93+
// MCDC: %[[BITS:.+]] = load i8, ptr %[[LAB4]], align 1
94+
// MCDC: %[[LAB8:[0-9]+]] = or i8 %[[BITS]], %[[LAB7]]
9595
// MCDC: store i8 %[[LAB8]], ptr %[[LAB4]], align 1

0 commit comments

Comments
 (0)