summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorWolfgang Pieb <Wolfgang.Pieb@sony.com>2018-09-12 14:40:04 +0000
committerWolfgang Pieb <Wolfgang.Pieb@sony.com>2018-09-12 14:40:04 +0000
commit233bc73047f45ace46f080c5e08f14d35c09c137 (patch)
tree88d9269e2e0fa3200b203af5df0e763db500edf8 /llvm/test
parent54d56f274cc93815e83a1dfd0b98c1f958f9706f (diff)
downloadbcm5719-llvm-233bc73047f45ace46f080c5e08f14d35c09c137.tar.gz
bcm5719-llvm-233bc73047f45ace46f080c5e08f14d35c09c137.zip
Reverting r342048, which caused UBSan failures in dsymutil.
llvm-svn: 342056
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/DebugInfo/Generic/cu-ranges.ll24
-rw-r--r--llvm/test/DebugInfo/Inputs/gmlt.ll2
-rw-r--r--llvm/test/DebugInfo/X86/dwarfdump-ranges-baseaddr.s19
-rw-r--r--llvm/test/DebugInfo/X86/dwarfdump-ranges-unrelocated.s11
-rw-r--r--llvm/test/DebugInfo/dwarfdump-ranges.test24
-rw-r--r--llvm/test/MC/ARM/dwarf-asm-multiple-sections.s11
6 files changed, 29 insertions, 62 deletions
diff --git a/llvm/test/DebugInfo/Generic/cu-ranges.ll b/llvm/test/DebugInfo/Generic/cu-ranges.ll
index 5ca6e8a9afd..cb9066fce3a 100644
--- a/llvm/test/DebugInfo/Generic/cu-ranges.ll
+++ b/llvm/test/DebugInfo/Generic/cu-ranges.ll
@@ -4,18 +4,18 @@
; Check that we emit ranges for this which has a non-traditional section and a normal section.
-; CHECK: .debug_info contents:
-; CHECK: DW_TAG_compile_unit
-; CHECK-NOT: DW_TAG
-; CHECK: DW_AT_ranges [DW_FORM_sec_offset] (0x
-; CHECK-NEXT: "__TEXT,__foo"
-; CHECK-NEXT: ".text")
-; CHECK: DW_TAG_subprogram
-; CHECK: DW_AT_low_pc
-; CHECK: DW_AT_high_pc
-; CHECK: DW_TAG_subprogram
-; CHECK: DW_AT_low_pc
-; CHECK: DW_AT_high_pc
+; CHECK: DW_TAG_compile_unit
+; CHECK: DW_AT_ranges
+; CHECK: DW_TAG_subprogram
+; CHECK: DW_AT_low_pc
+; CHECK: DW_AT_high_pc
+; CHECK: DW_TAG_subprogram
+; CHECK: DW_AT_low_pc
+; CHECK: DW_AT_high_pc
+
+; CHECK: .debug_ranges contents:
+; FIXME: When we get better dumping facilities we'll want to elaborate here.
+; CHECK: 00000000 <End of list>
; Function Attrs: nounwind uwtable
define i32 @foo(i32 %a) #0 section "__TEXT,__foo" !dbg !4 {
diff --git a/llvm/test/DebugInfo/Inputs/gmlt.ll b/llvm/test/DebugInfo/Inputs/gmlt.ll
index caff35d7fd8..b6050e2ba6f 100644
--- a/llvm/test/DebugInfo/Inputs/gmlt.ll
+++ b/llvm/test/DebugInfo/Inputs/gmlt.ll
@@ -83,7 +83,7 @@
; written in relocation places (dumper needs to be fixed to read the
; relocations rather than interpret that as the end of a range list))
-; CHECK: 0x00000030: 0x0000000000000000, 0x0000000000000000
+; CHECK: 00000000 <End of list>
; Check that we don't emit any pubnames or pubtypes under -gmlt
diff --git a/llvm/test/DebugInfo/X86/dwarfdump-ranges-baseaddr.s b/llvm/test/DebugInfo/X86/dwarfdump-ranges-baseaddr.s
index a0f5ba577df..25ea30d737c 100644
--- a/llvm/test/DebugInfo/X86/dwarfdump-ranges-baseaddr.s
+++ b/llvm/test/DebugInfo/X86/dwarfdump-ranges-baseaddr.s
@@ -1,6 +1,5 @@
# RUN: llvm-mc -triple x86_64-pc-linux -filetype=obj %s -o %t
# RUN: llvm-dwarfdump -v %t 2>%t.err | FileCheck %s
-# RUN: llvm-dwarfdump --debug-ranges %t | FileCheck --check-prefix=TERSE %s
# RUN: FileCheck %s <%t.err -check-prefix=ERR
# CHECK: .debug_info contents:
@@ -11,24 +10,6 @@
# CHECK-NEXT: [0x0000000000000003, 0x0000000000000006) ".text"
# CHECK-NEXT: [0x0000000000000001, 0x0000000000000002) ".text.foo1")
-# CHECK: .debug_ranges contents:
-# CHECK-NEXT: 0x00000000: 0x0000000000000000, 0x0000000000000001 =>
-# CHECK-SAME: [0x0000000000000000, 0x0000000000000001)
-# CHECK-NEXT: 0x00000010: 0x0000000000000003, 0x0000000000000006 =>
-# CHECK-SAME: [0x0000000000000003, 0x0000000000000006)
-# CHECK-NEXT: 0x00000020: 0xffffffffffffffff, 0x0000000000000000
-# CHECK-NEXT: 0x00000030: 0x0000000000000001, 0x0000000000000002 =>
-# CHECK-SAME: [0x0000000000000001, 0x0000000000000002)
-# CHECK-NEXT: 0x00000040: 0x0000000000000000, 0x0000000000000000
-
-# TERSE: .debug_ranges contents:
-# TERSE-NEXT: [0x0000000000000000, 0x0000000000000001)
-# TERSE-NEXT: [0x0000000000000003, 0x0000000000000006)
-# TERSE-NEXT: [0x0000000000000001, 0x0000000000000002)
-# TERSE-NEXT: <End of list>
-
-
-
.text
.globl foo
.type foo,@function
diff --git a/llvm/test/DebugInfo/X86/dwarfdump-ranges-unrelocated.s b/llvm/test/DebugInfo/X86/dwarfdump-ranges-unrelocated.s
index 4c5f563429c..2bb46707cc8 100644
--- a/llvm/test/DebugInfo/X86/dwarfdump-ranges-unrelocated.s
+++ b/llvm/test/DebugInfo/X86/dwarfdump-ranges-unrelocated.s
@@ -9,13 +9,10 @@
# CHECK-NEXT: [0x0000000000000000, 0x0000000000000003) ".text.foo2" [5])
# CHECK: .debug_ranges contents:
-# CHECK-NEXT: 0x00000000: 0x0000000000000000, 0x0000000000000001 =>
-# CHECK-SAME: [0x0000000000000000, 0x0000000000000001)
-# CHECK-NEXT: 0x00000010: 0x0000000000000000, 0x0000000000000002 =>
-# CHECK-SAME: [0x0000000000000000, 0x0000000000000002)
-# CHECK-NEXT: 0x00000020: 0x0000000000000000, 0x0000000000000003 =>
-# CHECK-SAME: [0x0000000000000000, 0x0000000000000003)
-# CHCKK-NEXT: 0x00000030: 0x0000000000000000, 0x0000000000000000
+# CHECK: 00000000 0000000000000000 0000000000000001
+# CHECK: 00000000 0000000000000000 0000000000000002
+# CHECK: 00000000 0000000000000000 0000000000000003
+# CHECK: 00000000 <End of list>
# RUN: llvm-dwarfdump %t | FileCheck %s --check-prefix=BRIEF
# BRIEF: DW_TAG_compile_unit
diff --git a/llvm/test/DebugInfo/dwarfdump-ranges.test b/llvm/test/DebugInfo/dwarfdump-ranges.test
index 6a98af46d76..54417931f93 100644
--- a/llvm/test/DebugInfo/dwarfdump-ranges.test
+++ b/llvm/test/DebugInfo/dwarfdump-ranges.test
@@ -1,5 +1,4 @@
RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-test4.elf-x86-64 | FileCheck %s
-RUN: llvm-dwarfdump --debug-ranges %p/Inputs/dwarfdump-test4.elf-x86-64 | FileCheck -check-prefix=TERSE %s
CHECK: .debug_info contents:
CHECK: DW_TAG_compile_unit
@@ -16,21 +15,10 @@ CHECK-NEXT: [0x0000000000000637, 0x000000000000063d))
CHECK: .debug_ranges contents:
-CHECK-NEXT: 0x00000000: 0x000000000000062c, 0x0000000000000637 =>
-CHECK-SAME: [0x000000000000062c, 0x0000000000000637)
-CHECK-NEXT: 0x00000010: 0x0000000000000637, 0x000000000000063d =>
-CHECK-SAME: [0x0000000000000637, 0x000000000000063d)
-CHECK-NEXT: 0x00000020: 0x0000000000000000, 0x0000000000000000
-CHECK-NEXT: 0x00000030: 0x0000000000000640, 0x000000000000064b =>
-CHECK-SAME: [0x0000000000000640, 0x000000000000064b)
-CHECK-NEXT: 0x00000040: 0x0000000000000637, 0x000000000000063d =>
-CHECK-SAME: [0x0000000000000637, 0x000000000000063d)
-CHECK-NEXT: 0x00000050: 0x0000000000000000, 0x0000000000000000
+CHECK-NEXT: 00000000 000000000000062c 0000000000000637
+CHECK-NEXT: 00000000 0000000000000637 000000000000063d
+CHECK-NEXT: 00000000 <End of list>
+CHECK-NEXT: 00000030 0000000000000640 000000000000064b
+CHECK-NEXT: 00000030 0000000000000637 000000000000063d
+CHECK-NEXT: 00000030 <End of list>
-TERSE: .debug_ranges contents:
-TERSE-NEXT: [0x000000000000062c, 0x0000000000000637)
-TERSE-NEXT: [0x0000000000000637, 0x000000000000063d)
-TERSE-NEXT: <End of list>
-TERSE-NEXT: [0x0000000000000640, 0x000000000000064b)
-TERSE-NEXT: [0x0000000000000637, 0x000000000000063d)
-TERSE-NEXT: <End of list>
diff --git a/llvm/test/MC/ARM/dwarf-asm-multiple-sections.s b/llvm/test/MC/ARM/dwarf-asm-multiple-sections.s
index 09c781bf991..cff8f000731 100644
--- a/llvm/test/MC/ARM/dwarf-asm-multiple-sections.s
+++ b/llvm/test/MC/ARM/dwarf-asm-multiple-sections.s
@@ -64,11 +64,12 @@ b:
// DWARF: .debug_ranges contents:
-// DWARF-NEXT: 0x00000000: 0xffffffff, 0x00000000
-// DWARF-NEXT: 0x00000008: 0x00000000, 0x00000004 => [0x00000000, 0x00000004)
-// DWARF-NEXT: 0x00000010: 0xffffffff, 0x00000000
-// DWARF-NEXT: 0x00000018: 0x00000000, 0x00000004 => [0x00000000, 0x00000004)
-// DWARF-NEXT: 0x00000020: 0x00000000, 0x00000000
+// DWARF: 00000000 ffffffff 00000000
+// DWARF: 00000000 00000000 00000004
+// DWARF: 00000000 ffffffff 00000000
+// DWARF: 00000000 00000000 00000004
+// DWARF: 00000000 <End of list>
+
// Offsets are different in DWARF v5 due to different header layout.
OpenPOWER on IntegriCloud