[llvm] 340d3bb - [FileCheck] Create test to highlight the "more than 9 back-references" issue. (#173501)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 29 02:52:28 PST 2025
Author: Thomas Symalla
Date: 2025-12-29T10:52:23Z
New Revision: 340d3bb45dd58fd4ec22f14bd45f93cf774a5512
URL: https://github.com/llvm/llvm-project/commit/340d3bb45dd58fd4ec22f14bd45f93cf774a5512
DIFF: https://github.com/llvm/llvm-project/commit/340d3bb45dd58fd4ec22f14bd45f93cf774a5512.diff
LOG: [FileCheck] Create test to highlight the "more than 9 back-references" issue. (#173501)
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.
Added:
llvm/test/FileCheck/capture-limit.txt
Modified:
Removed:
################################################################################
diff --git a/llvm/test/FileCheck/capture-limit.txt b/llvm/test/FileCheck/capture-limit.txt
new file mode 100644
index 0000000000000..a727be0c781f1
--- /dev/null
+++ b/llvm/test/FileCheck/capture-limit.txt
@@ -0,0 +1,8 @@
+; RUN: FileCheck -input-file %s %s
+; XFAIL: *
+
+; 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]]
More information about the llvm-commits
mailing list