Skip to content

Commit 225d8fc

Browse files
authored
Replace hard coded opcodes from #93841 with regexes to be more flexible. (#96277)
This change removes the hard coded opcode values and replaces them with regexes so that the test can deal with different opcode numbers being assigned and unbreak a ton of bots.
1 parent beba2e7 commit 225d8fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,10 +822,10 @@
822822
# DEBUG-NEXT: .. opcode {{[0-9]+}} is aliased to {{[0-9]+}}
823823
# DEBUG-NEXT: .. type index coverage check SKIPPED: user-defined predicate detected
824824
# DEBUG-NEXT: .. imm index coverage check SKIPPED: user-defined predicate detected
825-
# DEBUG-NEXT: G_VECREDUCE_FMAXIMUMNUM (opcode 276): 2 type indices, 0 imm indices
825+
# DEBUG-NEXT: G_VECREDUCE_FMAXIMUMNUM (opcode {{[0-9]+}}): 2 type indices, 0 imm indices
826826
# DEBUG-NEXT: .. type index coverage check SKIPPED: no rules defined
827827
# DEBUG-NEXT: .. imm index coverage check SKIPPED: no rules defined
828-
# DEBUG-NEXT: G_VECREDUCE_FMINIMUMNUM (opcode 277): 2 type indices, 0 imm indices
828+
# DEBUG-NEXT: G_VECREDUCE_FMINIMUMNUM (opcode {{[0-9]+}}): 2 type indices, 0 imm indices
829829
# DEBUG-NEXT: .. type index coverage check SKIPPED: no rules defined
830830
# DEBUG-NEXT: .. imm index coverage check SKIPPED: no rules defined
831831
# DEBUG-NEXT: G_VECREDUCE_ADD (opcode {{[0-9]+}}): 2 type indices, 0 imm indices

0 commit comments

Comments
 (0)