From 14c225ae4b30d7770894bdbc3d5938e72d6122fd Mon Sep 17 00:00:00 2001 From: Mandeep Singh Grang Date: Sun, 10 Feb 2019 19:53:43 +0000 Subject: [PATCH] [GlobalISel] Regex the opcodes in unit test to fix non-deterministic ordering Differential Revision: https://reviews.llvm.org/D57988 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353652 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../GlobalISel/legalize-ext-csedebug-output.mir | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/test/CodeGen/AArch64/GlobalISel/legalize-ext-csedebug-output.mir b/test/CodeGen/AArch64/GlobalISel/legalize-ext-csedebug-output.mir index e916146f5f3..00db342a1ed 100644 --- a/test/CodeGen/AArch64/GlobalISel/legalize-ext-csedebug-output.mir +++ b/test/CodeGen/AArch64/GlobalISel/legalize-ext-csedebug-output.mir @@ -19,13 +19,9 @@ body: | ; CHECK: CSEInfo::Found Instr %{{[0-9]+}}:_(s32) = G_CONSTANT ; CHECK: CSEInfo::Found Instr %{{[0-9]+}}:_(s32) = G_TRUNC ; CHECK: CSEInfo::Found Instr %{{[0-9]+}}:_(s32) = G_AND - ; Note - these will be sensitive the opcode numbers. If - ; frequently modifying generic opcodes, we could just regex - ; the opcodes in the following lines instead of checking for - ; specific opcode numbers. - ; CHECK: CSEInfo::CSE Hit for Opc 42 : 1 - ; CHECK: CSEInfo::CSE Hit for Opc 84 : 1 - ; CHECK: CSEInfo::CSE Hit for Opc 83 : 1 + ; CHECK: CSEInfo::CSE Hit for Opc {{[0-9]+}} : 1 + ; CHECK: CSEInfo::CSE Hit for Opc {{[0-9]+}} : 1 + ; CHECK: CSEInfo::CSE Hit for Opc {{[0-9]+}} : 1 %0:_(s64) = COPY $x0 %1:_(s8) = G_TRUNC %0(s64) %19:_(s32) = G_ZEXT %1(s8) -- 2.40.0