From 6d3ea2d9b60baf8db2dfeb3230bd8364a27fae30 Mon Sep 17 00:00:00 2001 From: Puyan Lotfi Date: Thu, 5 Sep 2019 02:10:41 +0000 Subject: [PATCH] [mir-canon][NFC] Adding -verify-machineinstrs to mir-canon tests. In the review process for some of the refactoring of MIRCanonicalizationPass it was noted that some of the tests didn't have verifier enabled. Enabling here. llvm-svn: 371005 --- llvm/test/CodeGen/MIR/AArch64/mirCanonCopyCopyProp.mir | 6 +++--- llvm/test/CodeGen/MIR/AArch64/mirCanonIdempotent.mir | 13 +++++++------ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/llvm/test/CodeGen/MIR/AArch64/mirCanonCopyCopyProp.mir b/llvm/test/CodeGen/MIR/AArch64/mirCanonCopyCopyProp.mir index b10a9eb..f39de6c 100644 --- a/llvm/test/CodeGen/MIR/AArch64/mirCanonCopyCopyProp.mir +++ b/llvm/test/CodeGen/MIR/AArch64/mirCanonCopyCopyProp.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=arm64-apple-ios11.0.0 -o - -run-pass mir-canonicalizer %s | FileCheck %s +# RUN: llc -mtriple=arm64-apple-ios11.0.0 -o - -verify-machineinstrs -run-pass mir-canonicalizer %s | FileCheck %s ... --- @@ -40,8 +40,8 @@ body: | %42:gpr32 = LDRWui %stack.0, 0 :: (dereferenceable load 8) ;CHECK: %namedVReg1352:gpr32 = LDRWui %stack.0, 0 :: (dereferenceable load 8) - ;CHECK: $w0 = COPY %namedVReg1352 - ;CHECK: RET_ReallyLR implicit $w0 + ;CHECK-NEXT: $w0 = COPY %namedVReg1352 + ;CHECK-NEXT: RET_ReallyLR implicit $w0 %vreg1234:gpr32 = COPY %42 %vreg1235:gpr32 = COPY %vreg1234 diff --git a/llvm/test/CodeGen/MIR/AArch64/mirCanonIdempotent.mir b/llvm/test/CodeGen/MIR/AArch64/mirCanonIdempotent.mir index 2d4c9f5..3a32303 100644 --- a/llvm/test/CodeGen/MIR/AArch64/mirCanonIdempotent.mir +++ b/llvm/test/CodeGen/MIR/AArch64/mirCanonIdempotent.mir @@ -1,11 +1,12 @@ -# RUN: llc -mtriple=arm64-apple-ios11.0.0 -o - -run-pass mir-canonicalizer %s | FileCheck %s +# RUN: llc -mtriple=arm64-apple-ios11.0.0 -o - -verify-machineinstrs -run-pass mir-canonicalizer %s | FileCheck %s # These Idempotent instructions are sorted alphabetically (based on after the '=') # CHECK: %namedVReg4352:gpr64 = MOVi64imm 4617315517961601024 -# CHECK: %namedVReg4353:gpr32 = MOVi32imm 408 -# CHECK: %namedVReg4354:gpr32 = MOVi32imm 408 -# CHECK: %namedVReg4355:gpr64all = IMPLICIT_DEF -# CHECK: %namedVReg4356:fpr64 = FMOVDi 20 -# CHECK: %namedVReg4357:fpr64 = FMOVDi 112 +# CHECK-NEXT: %namedVReg4353:gpr32 = MOVi32imm 408 +# CHECK-NEXT: %namedVReg4354:gpr32 = MOVi32imm 408 +# CHECK-NEXT: %namedVReg4355:gpr64all = IMPLICIT_DEF +# CHECK-NEXT: %namedVReg4356:fpr64 = FMOVDi 20 +# CHECK-NEXT: %namedVReg4357:fpr64 = FMOVDi 112 + ... --- name: Proc8 -- 2.7.4