[llvm] 909087c - Replace hard coded numbers from 462d583 with regex so the test passes on downstream projects that may define additional opcodes.

Douglas Yung via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 9 23:44:10 PDT 2023


Author: Douglas Yung
Date: 2023-10-09T23:43:59-07:00
New Revision: 909087c7276a34eb3236c77460465b885b439acf

URL: https://github.com/llvm/llvm-project/commit/909087c7276a34eb3236c77460465b885b439acf
DIFF: https://github.com/llvm/llvm-project/commit/909087c7276a34eb3236c77460465b885b439acf.diff

LOG: Replace hard coded numbers from 462d583 with regex so the test passes on downstream projects that may define additional opcodes.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir b/llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir
index 9253035dd99e0fd..bb915153c53a147 100644
--- a/llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir
+++ b/llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir
@@ -550,15 +550,15 @@
 # DEBUG-NEXT: .. opcode {{[0-9]+}} is aliased to {{[0-9]+}}
 # DEBUG-NEXT: .. type index coverage check SKIPPED: user-defined predicate detected
 # DEBUG-NEXT: .. imm index coverage check SKIPPED: user-defined predicate detected
-# DEBUG-NEXT: G_GET_FPMODE (opcode 196): 1 type index, 0 imm indices
+# DEBUG-NEXT: G_GET_FPMODE (opcode {{[0-9]+}}): 1 type index, 0 imm indices
 # DEBUG-NEXT: .. type index coverage check SKIPPED: user-defined predicate detected
 # DEBUG-NEXT: .. imm index coverage check SKIPPED: user-defined predicate detected
-# DEBUG-NEXT: G_SET_FPMODE (opcode 197): 1 type index, 0 imm indices
-# DEBUG-NEXT: .. opcode 197 is aliased to 196
+# DEBUG-NEXT: G_SET_FPMODE (opcode {{[0-9]+}}): 1 type index, 0 imm indices
+# DEBUG-NEXT: .. opcode {{[0-9]+}} is aliased to {{[0-9]+}}
 # DEBUG-NEXT: .. type index coverage check SKIPPED: user-defined predicate detected
 # DEBUG-NEXT: .. imm index coverage check SKIPPED: user-defined predicate detected
-# DEBUG-NEXT: G_RESET_FPMODE (opcode 198): 0 type indices, 0 imm indices
-# DEBUG-NEXT: .. opcode 198 is aliased to 196
+# DEBUG-NEXT: G_RESET_FPMODE (opcode {{[0-9]+}}): 0 type indices, 0 imm indices
+# DEBUG-NEXT: .. opcode {{[0-9]+}} is aliased to {{[0-9]+}}
 # DEBUG-NEXT: .. type index coverage check SKIPPED: user-defined predicate detected
 # DEBUG-NEXT: .. imm index coverage check SKIPPED: user-defined predicate detected
 # DEBUG-NEXT: G_PTR_ADD (opcode {{[0-9]+}}): 2 type indices, 0 imm indices


        


More information about the llvm-commits mailing list