Skip to content

Commit 909087c

Browse files
committed
Replace hard coded numbers from 462d583 with regex so the test passes on downstream projects that may define additional opcodes.
1 parent 5fa5ffe commit 909087c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -550,15 +550,15 @@
550550
# DEBUG-NEXT: .. opcode {{[0-9]+}} is aliased to {{[0-9]+}}
551551
# DEBUG-NEXT: .. type index coverage check SKIPPED: user-defined predicate detected
552552
# DEBUG-NEXT: .. imm index coverage check SKIPPED: user-defined predicate detected
553-
# DEBUG-NEXT: G_GET_FPMODE (opcode 196): 1 type index, 0 imm indices
553+
# DEBUG-NEXT: G_GET_FPMODE (opcode {{[0-9]+}}): 1 type index, 0 imm indices
554554
# DEBUG-NEXT: .. type index coverage check SKIPPED: user-defined predicate detected
555555
# DEBUG-NEXT: .. imm index coverage check SKIPPED: user-defined predicate detected
556-
# DEBUG-NEXT: G_SET_FPMODE (opcode 197): 1 type index, 0 imm indices
557-
# DEBUG-NEXT: .. opcode 197 is aliased to 196
556+
# DEBUG-NEXT: G_SET_FPMODE (opcode {{[0-9]+}}): 1 type index, 0 imm indices
557+
# DEBUG-NEXT: .. opcode {{[0-9]+}} is aliased to {{[0-9]+}}
558558
# DEBUG-NEXT: .. type index coverage check SKIPPED: user-defined predicate detected
559559
# DEBUG-NEXT: .. imm index coverage check SKIPPED: user-defined predicate detected
560-
# DEBUG-NEXT: G_RESET_FPMODE (opcode 198): 0 type indices, 0 imm indices
561-
# DEBUG-NEXT: .. opcode 198 is aliased to 196
560+
# DEBUG-NEXT: G_RESET_FPMODE (opcode {{[0-9]+}}): 0 type indices, 0 imm indices
561+
# DEBUG-NEXT: .. opcode {{[0-9]+}} is aliased to {{[0-9]+}}
562562
# DEBUG-NEXT: .. type index coverage check SKIPPED: user-defined predicate detected
563563
# DEBUG-NEXT: .. imm index coverage check SKIPPED: user-defined predicate detected
564564
# DEBUG-NEXT: G_PTR_ADD (opcode {{[0-9]+}}): 2 type indices, 0 imm indices

0 commit comments

Comments
 (0)