]> granicus.if.org Git - llvm/commitdiff
[DebugInfo][X86] Add start-after flags to MIR tests
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Thu, 12 Jul 2018 14:36:48 +0000 (14:36 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Thu, 12 Jul 2018 14:36:48 +0000 (14:36 +0000)
These tests would fail with -verify-machineinstrs because the MI
generated from the IR would be merged with the one already in the MIR
files, and we get the following error:

```
*** Bad machine code: Function has NoVRegs property but there are VReg operands ***
- function:    f
```

Differential Revision: https://reviews.llvm.org/D49191

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336907 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/MIR/X86/diexpr-win32.mir
test/DebugInfo/MIR/X86/bit-piece-dh.mir
test/DebugInfo/MIR/X86/empty-inline.mir

index e8cf98d70bb452ff09284f98bb4ec5b5eca31a90..f8612bb1b37eda23585caf03e7bedf570e8b1259 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llc -filetype=obj -O0 %s -o - | llvm-readobj -codeview | FileCheck %s
+# RUN: llc -start-after=prologepilog -filetype=obj -O0 %s -o - | llvm-readobj -codeview | FileCheck %s
 #
 # (DW_OP_plus_uconst 12)
 # CHECK: LocalSym {
index 4f9c22079bda0048a5b2f302afa91f8e4c35a134..8c74f8395fea0d6c97e2bc29178d8b320f919f19 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: llc -filetype=obj -o - %s | llvm-dwarfdump -v --debug-info - | FileCheck %s
+# RUN: llc -verify-machineinstrs -start-after=prologepilog -filetype=obj -o - %s | llvm-dwarfdump -v --debug-info - | FileCheck %s
 # CHECK: .debug_info contents:
 # CHECK: DW_TAG_variable
 # CHECK-NEXT: DW_AT_location {{.*}}         (DW_OP_reg1 RDX, DW_OP_bit_piece 0x8 0x8)
index 437baacbf88cea9bf0137ec1b1afb45bbfef349c..2930b71f16f5e2dcb9dd7efc192b4eecf7f2a448 100644 (file)
@@ -1,6 +1,6 @@
-# RUN: llc  -filetype=obj -o - %s | llvm-dwarfdump -a - | FileCheck %s
+# RUN: llc -verify-machineinstrs -start-after=virtregrewriter -filetype=obj -o - %s | llvm-dwarfdump -a - | FileCheck %s
 #
-# This testcase has an implicit def pseudo-iunstruction with a debug location.
+# This testcase has an implicit def pseudo-instruction with a debug location.
 #
 # CHECK: .debug_info contents:
 # CHECK: DW_TAG_subprogram