[llvm] r371005 - [mir-canon][NFC] Adding -verify-machineinstrs to mir-canon tests.
Puyan Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 4 19:10:41 PDT 2019
Author: zer0
Date: Wed Sep 4 19:10:41 2019
New Revision: 371005
URL: http://llvm.org/viewvc/llvm-project?rev=371005&view=rev
Log:
[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.
Modified:
llvm/trunk/test/CodeGen/MIR/AArch64/mirCanonCopyCopyProp.mir
llvm/trunk/test/CodeGen/MIR/AArch64/mirCanonIdempotent.mir
Modified: llvm/trunk/test/CodeGen/MIR/AArch64/mirCanonCopyCopyProp.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/MIR/AArch64/mirCanonCopyCopyProp.mir?rev=371005&r1=371004&r2=371005&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/MIR/AArch64/mirCanonCopyCopyProp.mir (original)
+++ llvm/trunk/test/CodeGen/MIR/AArch64/mirCanonCopyCopyProp.mir Wed Sep 4 19:10:41 2019
@@ -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
Modified: llvm/trunk/test/CodeGen/MIR/AArch64/mirCanonIdempotent.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/MIR/AArch64/mirCanonIdempotent.mir?rev=371005&r1=371004&r2=371005&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/MIR/AArch64/mirCanonIdempotent.mir (original)
+++ llvm/trunk/test/CodeGen/MIR/AArch64/mirCanonIdempotent.mir Wed Sep 4 19:10:41 2019
@@ -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
More information about the llvm-commits
mailing list