diff options
author | Thomas Preud'homme <thomasp@graphcore.ai> | 2021-04-05 11:28:35 +0100 |
---|---|---|
committer | Thomas Preud'homme <thomasp@graphcore.ai> | 2021-04-09 12:55:02 +0100 |
commit | 0494b6b6769f9ceda7e019a30e83a472d23afff5 (patch) | |
tree | 53118c31164433e218f31cd3848271ec31f3d73d | |
parent | bb69173ae5d125b5d5238d0b34d8cdc02db4ba69 (diff) | |
download | llvm-c92d1aa44b132597d.tar.gz |
[PowerPC, test] Fix use of undef FileCheck varc92d1aa44b132597d
LLVM test CodeGen/PowerPC/ctrloops-softfloat.ll tries to check for the
absence of sequences 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: nemanjai
Differential Revision: https://reviews.llvm.org/D99881
-rw-r--r-- | llvm/test/CodeGen/PowerPC/ctrloops-softfloat.ll | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/PowerPC/ctrloops-softfloat.ll b/llvm/test/CodeGen/PowerPC/ctrloops-softfloat.ll index 7fe7a911b074..a63246eb2b93 100644 --- a/llvm/test/CodeGen/PowerPC/ctrloops-softfloat.ll +++ b/llvm/test/CodeGen/PowerPC/ctrloops-softfloat.ll @@ -52,8 +52,8 @@ define void @foo1() #0 { br i1 %exitcond, label %1, label %2 ; CHECK: bl __adddf3 ; CHECK: cmplwi - ; CHECK-NOT: li [[REG1:[0-9]+]], 175 - ; CHECK-NOT: mtctr [[REG1]] + ; CHECK-NOT: li {{[0-9]+}}, 175 + ; CHECK-NOT: mtctr {{[0-9]+}} } define void @foo2() #0 { @@ -75,8 +75,8 @@ define void @foo2() #0 { br i1 %exitcond, label %1, label %2 ; CHECK: bl __subdf3 ; CHECK: cmplwi - ; CHECK-NOT: li [[REG1:[0-9]+]], 175 - ; CHECK-NOT: mtctr [[REG1]] + ; CHECK-NOT: li {{[0-9]+}}, 175 + ; CHECK-NOT: mtctr {{[0-9]+}} } define void @foo3() #0 { @@ -98,8 +98,8 @@ define void @foo3() #0 { br i1 %exitcond, label %1, label %2 ; CHECK: bl __muldf3 ; CHECK: cmplwi - ; CHECK-NOT: li [[REG1:[0-9]+]], 175 - ; CHECK-NOT: mtctr [[REG1]] + ; CHECK-NOT: li {{[0-9]+}}, 175 + ; CHECK-NOT: mtctr {{[0-9]+}} } define void @foo4() #0 { @@ -121,8 +121,8 @@ define void @foo4() #0 { br i1 %exitcond, label %1, label %2 ; CHECK: bl __divdf3 ; CHECK: cmplwi - ; CHECK-NOT: li [[REG1:[0-9]+]], 175 - ; CHECK-NOT: mtctr [[REG1]] + ; CHECK-NOT: li {{[0-9]+}}, 175 + ; CHECK-NOT: mtctr {{[0-9]+}} } attributes #0 = { "use-soft-float"="true" } |