[llvm] 262f487 - [Hexagon, test] Fix use of undef FileCheck var

Thomas Preud'homme via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 2 10:47:48 PDT 2021


Author: Thomas Preud'homme
Date: 2021-04-02T18:47:49+01:00
New Revision: 262f4872aea2e9593cc7ee20f4fe5691fb9f0386

URL: https://github.com/llvm/llvm-project/commit/262f4872aea2e9593cc7ee20f4fe5691fb9f0386
DIFF: https://github.com/llvm/llvm-project/commit/262f4872aea2e9593cc7ee20f4fe5691fb9f0386.diff

LOG: [Hexagon, test] Fix use of undef FileCheck var

LLVM test CodeGen/Hexagon/hwloop3.ll tries to check for the absence of a
sequence of consecutive 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 merges the two CHECK-NOT into a single CHECK-NOT that
matches the content of two successive non-blank lines, thereby allowing
to preserve the intent of the test.

Reviewed By: bcahoon

Differential Revision: https://reviews.llvm.org/D99778

Added: 
    

Modified: 
    llvm/test/CodeGen/Hexagon/hwloop3.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/Hexagon/hwloop3.ll b/llvm/test/CodeGen/Hexagon/hwloop3.ll
index 1135e06a0c435..21778f93c6636 100644
--- a/llvm/test/CodeGen/Hexagon/hwloop3.ll
+++ b/llvm/test/CodeGen/Hexagon/hwloop3.ll
@@ -3,8 +3,7 @@
 ; Remove the unconditional jump to following instruction.
 
 ; CHECK: endloop0
-; CHECK-NOT: jump [[L1:.]]
-; CHECK-NOT: [[L1]]
+; CHECK-NOT: jump [[L1:.]]{{.*[[:space:]]+}}[[L1]]
 
 define void @test(i32* nocapture %a, i32 %n) nounwind {
 entry:


        


More information about the llvm-commits mailing list