[llvm] 73a7d45 - [PowerPC, test] Fix use of undef FileCheck var
Thomas Preud'homme via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 7 01:45:20 PDT 2021
Author: Thomas Preud'homme
Date: 2021-04-07T09:45:21+01:00
New Revision: 73a7d451a2ca7a90fb09b2cd934948ae30cc72c3
URL: https://github.com/llvm/llvm-project/commit/73a7d451a2ca7a90fb09b2cd934948ae30cc72c3
DIFF: https://github.com/llvm/llvm-project/commit/73a7d451a2ca7a90fb09b2cd934948ae30cc72c3.diff
LOG: [PowerPC, test] Fix use of undef FileCheck var
LLVM test CodeGen/PowerPC/ppc-disable-non-volatile-cr.ll tries to check
for the absence of a sequence of instructions with several CHECK-NOT
with one of those directives using a variable defined in another.
However CHECK-NOT are checked independently so that is using a variable
defined in a pattern that should not occur in the input.
This commit changes occurence of the variable for the regex used in its
definition, thereby making each CHECK-NOT independent.
Reviewed By: NeHuang, nemanjai
Differential Revision: https://reviews.llvm.org/D99880
Added:
Modified:
llvm/test/CodeGen/PowerPC/ppc-disable-non-volatile-cr.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/PowerPC/ppc-disable-non-volatile-cr.ll b/llvm/test/CodeGen/PowerPC/ppc-disable-non-volatile-cr.ll
index 9d4eebb3b0de..90e4d2427768 100644
--- a/llvm/test/CodeGen/PowerPC/ppc-disable-non-volatile-cr.ll
+++ b/llvm/test/CodeGen/PowerPC/ppc-disable-non-volatile-cr.ll
@@ -8,8 +8,8 @@
define dso_local signext i32 @DisableNonVolatileCR(i32 signext %a, i32 signext %b) {
; CHECK-DISABLE-LABEL: DisableNonVolatileCR:
; CHECK-DISABLE: # %bb.0: # %entry
-; CHECK-DISABLE-NOT: mfocrf [[REG1:r[0-9]+]]
-; CHECK-DISABLE-NOT: stw [[REG1]]
+; CHECK-DISABLE-NOT: mfocrf {{r[0-9]+}}
+; CHECK-DISABLE-NOT: stw {{r[0-9]+}}
; CHECK-DISABLE: stdu r1
; CHECK-DISABLE-DAG: mfocrf [[REG2:r[0-9]+]]
; CHECK-DISABLE-DAG: stw [[REG2]]
@@ -20,8 +20,8 @@ define dso_local signext i32 @DisableNonVolatileCR(i32 signext %a, i32 signext %
; CHECK-ENABLE-DAG: mfocrf [[REG1:r[0-9]+]]
; CHECK-ENABLE-DAG: stw [[REG1]]
; CHECK-ENABLE: stdu r1
-; CHECK-ENABLE-NOT: mfocrf [[REG2:r[0-9]+]]
-; CHECK-ENABLE-NOT: stw [[REG2]]
+; CHECK-ENABLE-NOT: mfocrf {{r[0-9]+}}
+; CHECK-ENABLE-NOT: stw {{r[0-9]+}}
; CHECK-ENABLE: # %bb.1: # %if.then
entry:
More information about the llvm-commits
mailing list