[PATCH] D49191: [DebugInfo][X86] Add start-after flags to MIR tests
Francis Visoiu Mistrih via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 11 08:33:11 PDT 2018
thegameg created this revision.
thegameg added reviewers: aprantl, MatzeB.
Herald added subscribers: JDevlieghere, eraman.
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
https://reviews.llvm.org/D49191
Files:
test/DebugInfo/MIR/X86/bit-piece-dh.mir
test/DebugInfo/MIR/X86/empty-inline.mir
Index: test/DebugInfo/MIR/X86/empty-inline.mir
===================================================================
--- test/DebugInfo/MIR/X86/empty-inline.mir
+++ 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
Index: test/DebugInfo/MIR/X86/bit-piece-dh.mir
===================================================================
--- test/DebugInfo/MIR/X86/bit-piece-dh.mir
+++ 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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49191.155009.patch
Type: text/x-patch
Size: 1218 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180711/f3cbb8da/attachment.bin>
More information about the llvm-commits
mailing list