Skip to content

Commit 0494b6b

Browse files
author
Thomas Preud'homme
committed
[PowerPC, test] Fix use of undef FileCheck var
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
1 parent bb69173 commit 0494b6b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

llvm/test/CodeGen/PowerPC/ctrloops-softfloat.ll

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ define void @foo1() #0 {
5252
br i1 %exitcond, label %1, label %2
5353
; CHECK: bl __adddf3
5454
; CHECK: cmplwi
55-
; CHECK-NOT: li [[REG1:[0-9]+]], 175
56-
; CHECK-NOT: mtctr [[REG1]]
55+
; CHECK-NOT: li {{[0-9]+}}, 175
56+
; CHECK-NOT: mtctr {{[0-9]+}}
5757
}
5858

5959
define void @foo2() #0 {
@@ -75,8 +75,8 @@ define void @foo2() #0 {
7575
br i1 %exitcond, label %1, label %2
7676
; CHECK: bl __subdf3
7777
; CHECK: cmplwi
78-
; CHECK-NOT: li [[REG1:[0-9]+]], 175
79-
; CHECK-NOT: mtctr [[REG1]]
78+
; CHECK-NOT: li {{[0-9]+}}, 175
79+
; CHECK-NOT: mtctr {{[0-9]+}}
8080
}
8181

8282
define void @foo3() #0 {
@@ -98,8 +98,8 @@ define void @foo3() #0 {
9898
br i1 %exitcond, label %1, label %2
9999
; CHECK: bl __muldf3
100100
; CHECK: cmplwi
101-
; CHECK-NOT: li [[REG1:[0-9]+]], 175
102-
; CHECK-NOT: mtctr [[REG1]]
101+
; CHECK-NOT: li {{[0-9]+}}, 175
102+
; CHECK-NOT: mtctr {{[0-9]+}}
103103
}
104104

105105
define void @foo4() #0 {
@@ -121,8 +121,8 @@ define void @foo4() #0 {
121121
br i1 %exitcond, label %1, label %2
122122
; CHECK: bl __divdf3
123123
; CHECK: cmplwi
124-
; CHECK-NOT: li [[REG1:[0-9]+]], 175
125-
; CHECK-NOT: mtctr [[REG1]]
124+
; CHECK-NOT: li {{[0-9]+}}, 175
125+
; CHECK-NOT: mtctr {{[0-9]+}}
126126
}
127127

128128
attributes #0 = { "use-soft-float"="true" }

0 commit comments

Comments
 (0)