Author: NAKAMURA Takumi Date: 2024-06-19T15:41:59+09:00 New Revision: 7ef2bd4e447280015803cff7fc91ec4dd09cd4b3
URL: https://github.com/llvm/llvm-project/commit/7ef2bd4e447280015803cff7fc91ec4dd09cd4b3 DIFF: https://github.com/llvm/llvm-project/commit/7ef2bd4e447280015803cff7fc91ec4dd09cd4b3.diff LOG: Relax MC/DC tests Added: Modified: clang/test/Profile/c-mcdc-class.cpp clang/test/Profile/c-mcdc-logicalop-ternary.c clang/test/Profile/c-mcdc-nested-ternary.c clang/test/Profile/c-mcdc-not.c clang/test/Profile/c-mcdc.c Removed: ################################################################################ diff --git a/clang/test/Profile/c-mcdc-class.cpp b/clang/test/Profile/c-mcdc-class.cpp index 748344194ef86..9a56d97d2dde9 100644 --- a/clang/test/Profile/c-mcdc-class.cpp +++ b/clang/test/Profile/c-mcdc-class.cpp @@ -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 @@ -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 diff --git a/clang/test/Profile/c-mcdc-logicalop-ternary.c b/clang/test/Profile/c-mcdc-logicalop-ternary.c index 91174befb5fe5..18ce0b4e5dc14 100644 --- a/clang/test/Profile/c-mcdc-logicalop-ternary.c +++ b/clang/test/Profile/c-mcdc-logicalop-ternary.c @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/clang/test/Profile/c-mcdc-nested-ternary.c b/clang/test/Profile/c-mcdc-nested-ternary.c index 8576ba39e583b..e8eadf73504a2 100644 --- a/clang/test/Profile/c-mcdc-nested-ternary.c +++ b/clang/test/Profile/c-mcdc-nested-ternary.c @@ -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 diff --git a/clang/test/Profile/c-mcdc-not.c b/clang/test/Profile/c-mcdc-not.c index ae683c3fe40fe..7083aa226fb95 100644 --- a/clang/test/Profile/c-mcdc-not.c +++ b/clang/test/Profile/c-mcdc-not.c @@ -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 diff --git a/clang/test/Profile/c-mcdc.c b/clang/test/Profile/c-mcdc.c index 7c1d734028364..e8a320d9bc1ab 100644 --- a/clang/test/Profile/c-mcdc.c +++ b/clang/test/Profile/c-mcdc.c @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits