[PATCH] D36152: [ARM] Add registers to debuginfo MIR test cases.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 2 06:44:53 PDT 2017


fhahn updated this revision to Diff 109336.
fhahn added a comment.

Using -start-before=livedebugvalues . I had to adjust the offset, but I don't think the exact offset is crucial for the test case. Maybe @aprantl can confirm that?


https://reviews.llvm.org/D36152

Files:
  test/DebugInfo/MIR/ARM/split-superreg-complex.mir
  test/DebugInfo/MIR/ARM/split-superreg-piece.mir
  test/DebugInfo/MIR/ARM/split-superreg.mir


Index: test/DebugInfo/MIR/ARM/split-superreg.mir
===================================================================
--- test/DebugInfo/MIR/ARM/split-superreg.mir
+++ 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
 --- |
Index: test/DebugInfo/MIR/ARM/split-superreg-piece.mir
===================================================================
--- test/DebugInfo/MIR/ARM/split-superreg-piece.mir
+++ 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
 --- |
Index: test/DebugInfo/MIR/ARM/split-superreg-complex.mir
===================================================================
--- test/DebugInfo/MIR/ARM/split-superreg-complex.mir
+++ 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36152.109336.patch
Type: text/x-patch
Size: 2643 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170802/2831c656/attachment.bin>


More information about the llvm-commits mailing list