Skip to content

Conversation

@tsymalla
Copy link
Contributor

When back-referencing more than 9 variables in a CHECK line, FileCheck will fail.

I intend to fix this issue in a later PR by adjusting FileCheck.

@llvmbot
Copy link
Member

llvmbot commented Dec 24, 2025

@llvm/pr-subscribers-testing-tools

Author: Thomas Symalla (tsymalla)

Changes

When back-referencing more than 9 variables in a CHECK line, FileCheck will fail.

I intend to fix this issue in a later PR by adjusting FileCheck.


Full diff: https://github.com/llvm/llvm-project/pull/173501.diff

1 Files Affected:

  • (added) llvm/test/FileCheck/capture-limit.txt (+7)
diff --git a/llvm/test/FileCheck/capture-limit.txt b/llvm/test/FileCheck/capture-limit.txt
new file mode 100644
index 0000000000000..8965c7fea7445
--- /dev/null
+++ b/llvm/test/FileCheck/capture-limit.txt
@@ -0,0 +1,7 @@
+; RUN: not FileCheck -input-file %s %s
+
+; Trying to back-reference more than 9 variables is intended to fail.
+
+r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r9
+
+; CHECK: [[REG1:r0]] [[REG2:r1]] [[REG3:r2]] [[REG4:r3]] [[REG5:r4]] [[REG6:r5]] [[REG7:r6]] [[REG8:r7]] [[REG9:r8]] [[REG10:r9]] [[REG10]]
\ No newline at end of file

… issue.

When back-referencing more than 9 variables in a CHECK line, FileCheck will
fail.
Copy link
Contributor

@boomanaiden154 boomanaiden154 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test looks like it passes based on the CI results?

It should probably be failing/marked xfail?

@tsymalla
Copy link
Contributor Author

This test looks like it passes based on the CI results?

It should probably be failing/marked xfail?

Yeah, XFail might be more suitable here. I'll update the test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants