summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/DebugInfo')
-rw-r--r--llvm/test/DebugInfo/Inputs/gmlt.ll2
-rw-r--r--llvm/test/DebugInfo/X86/fission-ranges.ll2
-rw-r--r--llvm/test/DebugInfo/dwarfdump-ranges.test14
3 files changed, 16 insertions, 2 deletions
diff --git a/llvm/test/DebugInfo/Inputs/gmlt.ll b/llvm/test/DebugInfo/Inputs/gmlt.ll
index 82949d2ad17..8de03decd76 100644
--- a/llvm/test/DebugInfo/Inputs/gmlt.ll
+++ b/llvm/test/DebugInfo/Inputs/gmlt.ll
@@ -14,7 +14,7 @@
; describes those subprograms
; CHECK: DW_TAG_compile_unit
-; CHECK: DW_AT_ranges [DW_FORM_sec_offset] (0x00000000)
+; CHECK: DW_AT_ranges [DW_FORM_sec_offset] (0x00000000
; CHECK-NOT: {{DW_TAG|NULL}}
; Omitting the subprograms without inlined subroutines is not possible
diff --git a/llvm/test/DebugInfo/X86/fission-ranges.ll b/llvm/test/DebugInfo/X86/fission-ranges.ll
index 124aa987cd3..f66382a7d2b 100644
--- a/llvm/test/DebugInfo/X86/fission-ranges.ll
+++ b/llvm/test/DebugInfo/X86/fission-ranges.ll
@@ -16,7 +16,7 @@
; CHECK: DW_AT_location [DW_FORM_sec_offset] ([[E:0x[0-9a-z]*]])
; CHECK: DW_AT_location [DW_FORM_sec_offset] ([[B:0x[0-9a-z]*]])
; CHECK: DW_AT_location [DW_FORM_sec_offset] ([[D:0x[0-9a-z]*]])
-; CHECK: DW_AT_ranges [DW_FORM_sec_offset] (0x00000000)
+; CHECK: DW_AT_ranges [DW_FORM_sec_offset] (0x00000000
; CHECK: .debug_loc contents:
; CHECK-NOT: Beginning address offset
; CHECK: .debug_loc.dwo contents:
diff --git a/llvm/test/DebugInfo/dwarfdump-ranges.test b/llvm/test/DebugInfo/dwarfdump-ranges.test
index c9e33dcdc97..710aec6098a 100644
--- a/llvm/test/DebugInfo/dwarfdump-ranges.test
+++ b/llvm/test/DebugInfo/dwarfdump-ranges.test
@@ -1,5 +1,19 @@
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test4.elf-x86-64 | FileCheck %s
+CHECK: .debug_info contents:
+CHECK: DW_TAG_compile_unit
+CHECK-NOT: TAG
+CHECK: DW_AT_ranges [DW_FORM_data4] (0x00000000
+CHECK-NEXT: [0x000000000000062c - 0x0000000000000637)
+CHECK-NEXT: [0x0000000000000637 - 0x000000000000063d))
+
+CHECK: DW_TAG_compile_unit
+CHECK-NOT: TAG
+CHECK: DW_AT_ranges [DW_FORM_data4] (0x00000030
+CHECK-NEXT: [0x0000000000000640 - 0x000000000000064b)
+CHECK-NEXT: [0x0000000000000637 - 0x000000000000063d))
+
+
CHECK: .debug_ranges contents:
CHECK-NEXT: 00000000 000000000000062c 0000000000000637
CHECK-NEXT: 00000000 0000000000000637 000000000000063d
OpenPOWER on IntegriCloud