Skip to content

Commit 4c6ba8a

Browse files
nhaehnlegithub-actions[bot]
authored andcommitted
Automerge: Generalize codegen tests to not hardcode G_MIR opcodes (#162554)
(trivial change, no review expected)
2 parents 18a321e + 5ebb052 commit 4c6ba8a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@
7070
# DEBUG-NEXT: .. the first uncovered type index: 1, OK
7171
# DEBUG-NEXT: .. the first uncovered imm index: 0, OK
7272
#
73-
# DEBUG-NEXT: G_ABDS (opcode 65): 1 type index, 0 imm indices
73+
# DEBUG-NEXT: G_ABDS (opcode [[G_ABDS:[0-9]+]]): 1 type index, 0 imm indices
7474
# DEBUG-NEXT: .. type index coverage check SKIPPED: user-defined predicate detected
7575
# DEBUG-NEXT: .. imm index coverage check SKIPPED: user-defined predicate detected
7676
#
77-
# DEBUG-NEXT: G_ABDU (opcode 66): 1 type index, 0 imm indices
78-
# DEBUG-NEXT: .. opcode {{[0-9]+}} is aliased to {{[0-9]+}}
77+
# DEBUG-NEXT: G_ABDU (opcode [[G_ABDU:[0-9]+]]): 1 type index, 0 imm indices
78+
# DEBUG-NEXT: .. opcode [[G_ABDU]] is aliased to [[G_ABDS]]
7979
# DEBUG-NEXT: .. type index coverage check SKIPPED: user-defined predicate detected
8080
# DEBUG-NEXT: .. imm index coverage check SKIPPED: user-defined predicate detected
8181
#

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@
7272
# DEBUG-NEXT: .. type index coverage check SKIPPED: user-defined predicate detected
7373
# DEBUG-NEXT: .. imm index coverage check SKIPPED: user-defined predicate detected
7474
#
75-
# DEBUG-NEXT: G_ABDS (opcode 65): 1 type index, 0 imm indices
75+
# DEBUG-NEXT: G_ABDS (opcode [[G_ABDS:[0-9]+]]): 1 type index, 0 imm indices
7676
# DEBUG-NEXT:.. type index coverage check SKIPPED: user-defined predicate detected
7777
# DEBUG-NEXT:.. imm index coverage check SKIPPED: user-defined predicate detected
7878
#
79-
# DEBUG-NEXT:G_ABDU (opcode 66): 1 type index, 0 imm indices
80-
# DEBUG-NEXT:.. opcode 66 is aliased to 65
79+
# DEBUG-NEXT:G_ABDU (opcode [[G_ABDU:[0-9]+]]): 1 type index, 0 imm indices
80+
# DEBUG-NEXT:.. opcode [[G_ABDU]] is aliased to [[G_ABDS]]
8181
# DEBUG-NEXT:.. type index coverage check SKIPPED: user-defined predicate detected
8282
# DEBUG-NEXT:.. imm index coverage check SKIPPED: user-defined predicate detected
8383
#

0 commit comments

Comments
 (0)