Skip to content

Commit

Permalink
Relax MC/DC tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chapuni committed Jun 19, 2024
1 parent 99c43e3 commit 7ef2bd4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions clang/test/Profile/c-mcdc-class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ Value::~Value(void) {
// MCDCCTOR: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
// MCDCCTOR: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
// MCDCCTOR: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
// MCDCCTOR: %mcdc.bits = load i8, ptr %[[LAB4]], align 1
// MCDCCTOR: %[[LAB8:[0-9]+]] = or i8 %mcdc.bits, %[[LAB7]]
// MCDCCTOR: %[[BITS:.+]] = load i8, ptr %[[LAB4]], align 1
// MCDCCTOR: %[[LAB8:[0-9]+]] = or i8 %[[BITS]], %[[LAB7]]
// MCDCCTOR: store i8 %[[LAB8]], ptr %[[LAB4]], align 1

// MCDCDTOR: @__profbm__ZN5ValueD2Ev = private global [1 x i8] zeroinitializer
Expand Down Expand Up @@ -97,6 +97,6 @@ Value::~Value(void) {
// MCDCDTOR: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
// MCDCDTOR: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
// MCDCDTOR: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
// MCDCDTOR: %mcdc.bits = load i8, ptr %[[LAB4]], align 1
// MCDCDTOR: %[[LAB8:[0-9]+]] = or i8 %mcdc.bits, %[[LAB7]]
// MCDCDTOR: %[[BITS:.+]] = load i8, ptr %[[LAB4]], align 1
// MCDCDTOR: %[[LAB8:[0-9]+]] = or i8 %[[BITS]], %[[LAB7]]
// MCDCDTOR: store i8 %[[LAB8]], ptr %[[LAB4]], align 1
8 changes: 4 additions & 4 deletions clang/test/Profile/c-mcdc-logicalop-ternary.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ int test(int a, int b, int c, int d, int e, int f) {
// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
// MCDC: %[[LAB8:mcdc.bits[0-9]*]] = load i8, ptr %[[LAB4]], align 1
// MCDC: %[[LAB8:.+]] = load i8, ptr %[[LAB4]], align 1
// MCDC: %[[LAB9:[0-9]+]] = or i8 %[[LAB8]], %[[LAB7]]
// MCDC: store i8 %[[LAB9]], ptr %[[LAB4]], align 1

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

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

Expand All @@ -72,6 +72,6 @@ int test(int a, int b, int c, int d, int e, int f) {
// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
// MCDC: %[[LAB8:mcdc.bits[0-9]*]] = load i8, ptr %[[LAB4]], align 1
// MCDC: %[[LAB8:.+]] = load i8, ptr %[[LAB4]], align 1
// MCDC: %[[LAB9:[0-9]+]] = or i8 %[[LAB8]], %[[LAB7]]
// MCDC: store i8 %[[LAB9]], ptr %[[LAB4]], align 1
4 changes: 2 additions & 2 deletions clang/test/Profile/c-mcdc-nested-ternary.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ int test(int b, int c, int d, int e, int f) {
// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
// MCDC: %mcdc.bits = load i8, ptr %[[LAB4]], align 1
// MCDC: %[[LAB8:[0-9]+]] = or i8 %mcdc.bits, %[[LAB7]]
// MCDC: %[[BITS:.+]] = load i8, ptr %[[LAB4]], align 1
// MCDC: %[[LAB8:[0-9]+]] = or i8 %[[BITS]], %[[LAB7]]
// MCDC: store i8 %[[LAB8]], ptr %[[LAB4]], align 1
4 changes: 2 additions & 2 deletions clang/test/Profile/c-mcdc-not.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ int test(int a, int b, int c, int d, int e, int f) {
// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
// MCDC: %mcdc.bits = load i8, ptr %[[LAB4]], align 1
// MCDC: %[[LAB8:[0-9]+]] = or i8 %mcdc.bits, %[[LAB7]]
// MCDC: %[[BITS:.+]] = load i8, ptr %[[LAB4]], align 1
// MCDC: %[[LAB8:[0-9]+]] = or i8 %[[BITS]], %[[LAB7]]
// MCDC: store i8 %[[LAB8]], ptr %[[LAB4]], align 1
4 changes: 2 additions & 2 deletions clang/test/Profile/c-mcdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ int test(int a, int b, int c, int d, int e, int f) {
// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
// MCDC: %mcdc.bits = load i8, ptr %[[LAB4]], align 1
// MCDC: %[[LAB8:[0-9]+]] = or i8 %mcdc.bits, %[[LAB7]]
// MCDC: %[[BITS:.+]] = load i8, ptr %[[LAB4]], align 1
// MCDC: %[[LAB8:[0-9]+]] = or i8 %[[BITS]], %[[LAB7]]
// MCDC: store i8 %[[LAB8]], ptr %[[LAB4]], align 1

0 comments on commit 7ef2bd4

Please sign in to comment.