From: Thomas Preud'homme Date: Mon, 5 Apr 2021 10:28:35 +0000 (+0100) Subject: [PowerPC, test] Fix use of undef FileCheck var X-Git-Tag: llvmorg-14-init~10260 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73a7d451a2ca7a90fb09b2cd934948ae30cc72c3;p=platform%2Fupstream%2Fllvm.git [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 --- 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 9d4eebb..90e4d24 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: