From: Francis Visoiu Mistrih Date: Thu, 12 Jul 2018 14:36:48 +0000 (+0000) Subject: [DebugInfo][X86] Add start-after flags to MIR tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ae89b82685eeb5184ae3942a15ff00de97a0875;p=llvm [DebugInfo][X86] Add start-after flags to MIR tests 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 --- diff --git a/test/CodeGen/MIR/X86/diexpr-win32.mir b/test/CodeGen/MIR/X86/diexpr-win32.mir index e8cf98d70bb..f8612bb1b37 100644 --- a/test/CodeGen/MIR/X86/diexpr-win32.mir +++ b/test/CodeGen/MIR/X86/diexpr-win32.mir @@ -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 { diff --git a/test/DebugInfo/MIR/X86/bit-piece-dh.mir b/test/DebugInfo/MIR/X86/bit-piece-dh.mir index 4f9c22079bd..8c74f8395fe 100644 --- a/test/DebugInfo/MIR/X86/bit-piece-dh.mir +++ b/test/DebugInfo/MIR/X86/bit-piece-dh.mir @@ -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) diff --git a/test/DebugInfo/MIR/X86/empty-inline.mir b/test/DebugInfo/MIR/X86/empty-inline.mir index 437baacbf88..2930b71f16f 100644 --- a/test/DebugInfo/MIR/X86/empty-inline.mir +++ b/test/DebugInfo/MIR/X86/empty-inline.mir @@ -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