diff options
author | Florian Hahn <florian.hahn@arm.com> | 2017-08-05 12:13:13 +0000 |
---|---|---|
committer | Florian Hahn <florian.hahn@arm.com> | 2017-08-05 12:13:13 +0000 |
commit | d08104f67e70a2d5d5a55008cdf85673c1017f17 (patch) | |
tree | 6401fc13dc82630e39cbfffb923ba3205e9b4db3 /test/DebugInfo/MIR | |
parent | 0b26163a3b00b7e33df90a92d42abd3199326037 (diff) |
[ARM] Add registers to debuginfo MIR test cases.
Summary:
MIRParserImpl::computeFunctionProperties uses MRI.getNumVirtRegs() to
set the NoVReg property. By adding a bunch of registers to the MIR test
cases, the NoVReg property is not set when importing the MIR. Otherwise
NoVReg is set after instruction selection while the machine instructions
still contain virtual registers, causing expensive checks to fail.
Reviewers: efriedma, MatzeB, aprantl
Reviewed By: MatzeB, aprantl
Subscribers: aemerson, javed.absar, kristof.beyls, llvm-commits
Differential Revision: https://reviews.llvm.org/D36152
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/MIR')
-rw-r--r-- | test/DebugInfo/MIR/ARM/split-superreg-complex.mir | 3 | ||||
-rw-r--r-- | test/DebugInfo/MIR/ARM/split-superreg-piece.mir | 7 | ||||
-rw-r--r-- | test/DebugInfo/MIR/ARM/split-superreg.mir | 7 |
3 files changed, 10 insertions, 7 deletions
diff --git a/test/DebugInfo/MIR/ARM/split-superreg-complex.mir b/test/DebugInfo/MIR/ARM/split-superreg-complex.mir index 0ebde3c1eb3..7aa752e1b19 100644 --- a/test/DebugInfo/MIR/ARM/split-superreg-complex.mir +++ b/test/DebugInfo/MIR/ARM/split-superreg-complex.mir @@ -1,4 +1,5 @@ -# RUN: llc -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s +# RUN: llc -start-before=livedebugvalues -filetype=obj -o - %s | \ +# RUN: llvm-dwarfdump - | FileCheck %s # # This is an artificial example of a debug value residing in a composite # location with a complex expression. Because the semantics of applying a DWARF diff --git a/test/DebugInfo/MIR/ARM/split-superreg-piece.mir b/test/DebugInfo/MIR/ARM/split-superreg-piece.mir index 422e7ed8482..8ac763b0f06 100644 --- a/test/DebugInfo/MIR/ARM/split-superreg-piece.mir +++ b/test/DebugInfo/MIR/ARM/split-superreg-piece.mir @@ -1,11 +1,12 @@ -# RUN: llc -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s +# RUN: llc -start-before=livedebugvalues -filetype=obj -o - %s | \ +# RUN: llvm-dwarfdump - | FileCheck %s # CHECK: .debug_info contents: # CHECK: DW_TAG_variable # CHECK-NEXT: DW_AT_location [DW_FORM_data4] ([[OFS:.*]]) # CHECK-NEXT: DW_AT_name {{.*}}"vec" # CHECK: .debug_loc contents: -# CHECK: [[OFS]]: Beginning address offset: 0x0000000000000016 -# CHECK: Ending address offset: 0x000000000000001e +# CHECK: [[OFS]]: Beginning address offset: 0x0000000000000010 +# CHECK: Ending address offset: 0x0000000000000018 # CHECK: Location description: 93 10 90 80 02 93 08 90 81 02 93 08 # piece 0x00000010, d0, piece 0x00000008, d1, piece 0x00000008 --- | diff --git a/test/DebugInfo/MIR/ARM/split-superreg.mir b/test/DebugInfo/MIR/ARM/split-superreg.mir index 9b56f9f3857..a2c38442da9 100644 --- a/test/DebugInfo/MIR/ARM/split-superreg.mir +++ b/test/DebugInfo/MIR/ARM/split-superreg.mir @@ -1,11 +1,12 @@ -# RUN: llc -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s +# RUN: llc -start-before=livedebugvalues -filetype=obj -o - %s | \ +# RUN: llvm-dwarfdump - | FileCheck %s # CHECK: .debug_info contents: # CHECK: DW_TAG_variable # CHECK-NEXT: DW_AT_location [DW_FORM_data4] ([[OFS:.*]]) # CHECK-NEXT: DW_AT_name {{.*}}"vec" # CHECK: .debug_loc contents: -# CHECK: [[OFS]]: Beginning address offset: 0x0000000000000016 -# CHECK: Ending address offset: 0x000000000000001e +# CHECK: [[OFS]]: Beginning address offset: 0x0000000000000010 +# CHECK: Ending address offset: 0x0000000000000018 # CHECK: Location description: 90 80 02 93 08 90 81 02 93 08 # d0, piece 0x00000008, d1, piece 0x00000008 --- | |