Skip to content

Commit 1c852eb

Browse files
Thomas Preud'hommememfrob
authored andcommitted
[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
1 parent 08dfb32 commit 1c852eb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/test/CodeGen/Hexagon/hwloop3.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
; Remove the unconditional jump to following instruction.
44

55
; CHECK: endloop0
6-
; CHECK-NOT: jump [[L1:.]]
7-
; CHECK-NOT: [[L1]]
6+
; CHECK-NOT: jump [[L1:.]]{{.*[[:space:]]+}}[[L1]]
87

98
define void @test(i32* nocapture %a, i32 %n) nounwind {
109
entry:

0 commit comments

Comments
 (0)