summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorEkaterina Romanova <katya_romanova@playstation.sony.com>2016-10-27 23:20:19 +0000
committerEkaterina Romanova <katya_romanova@playstation.sony.com>2016-10-27 23:20:19 +0000
commitb7f96d1241f89ecc22efe6365967e79c3ccebafa (patch)
tree8d298572ea00d5e9531fc266cfe7fcb9bdb976cf /llvm/test
parent614dc150ec761140d21f52c9bb1a1c45db38e12f (diff)
downloadbcm5719-llvm-b7f96d1241f89ecc22efe6365967e79c3ccebafa.tar.gz
bcm5719-llvm-b7f96d1241f89ecc22efe6365967e79c3ccebafa.zip
Reverting back r285355: "Update .debug_line section version information to match DWARF version", while I'm investigating a test failure.
llvm-svn: 285362
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/DebugInfo/AArch64/line-header.ll2
-rw-r--r--llvm/test/DebugInfo/Generic/empty.ll2
-rw-r--r--llvm/test/DebugInfo/X86/debug-line-version.s39
-rw-r--r--llvm/test/DebugInfo/X86/empty.ll2
-rw-r--r--llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll6
-rw-r--r--llvm/test/MC/ELF/debug-line.s10
-rw-r--r--llvm/test/MC/ELF/debug-line2.s10
-rw-r--r--llvm/test/MC/ELF/debug-loc.s2
-rw-r--r--llvm/test/MC/ELF/discriminator.s2
-rw-r--r--llvm/test/MC/ELF/empty-dwarf-lines.s2
-rw-r--r--llvm/test/MC/MachO/file.s8
-rw-r--r--llvm/test/MC/MachO/gen-dwarf.s2
-rw-r--r--llvm/test/MC/MachO/loc.s14
13 files changed, 31 insertions, 70 deletions
diff --git a/llvm/test/DebugInfo/AArch64/line-header.ll b/llvm/test/DebugInfo/AArch64/line-header.ll
index de2453d1c25..f8220233faa 100644
--- a/llvm/test/DebugInfo/AArch64/line-header.ll
+++ b/llvm/test/DebugInfo/AArch64/line-header.ll
@@ -3,4 +3,4 @@
; check line table length is correctly calculated for both big and little endian
CHECK-LABEL: .debug_line contents:
-CHECK: total_length: 0x0000003d
+CHECK: total_length: 0x0000003c
diff --git a/llvm/test/DebugInfo/Generic/empty.ll b/llvm/test/DebugInfo/Generic/empty.ll
index 1b22867cf19..82faeca41db 100644
--- a/llvm/test/DebugInfo/Generic/empty.ll
+++ b/llvm/test/DebugInfo/Generic/empty.ll
@@ -9,7 +9,7 @@
; Expect no line table entry since there are no functions and file references in this compile unit
; CHECK: .debug_line contents:
; CHECK: Line table prologue:
-; CHECK: total_length: 0x0000001a
+; CHECK: total_length: 0x00000019
; CHECK-NOT: file_names[
; CHECK: .debug_pubnames contents:
diff --git a/llvm/test/DebugInfo/X86/debug-line-version.s b/llvm/test/DebugInfo/X86/debug-line-version.s
deleted file mode 100644
index 46041097047..00000000000
--- a/llvm/test/DebugInfo/X86/debug-line-version.s
+++ /dev/null
@@ -1,39 +0,0 @@
-// RUN: llvm-mc -g -dwarf-version 2 -triple i686-pc-linux-gnu %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck --check-prefix=DWARF2 %s
-// RUN: llvm-mc -g -dwarf-version 3 -triple i686-pc-linux-gnu %s -filetype=obj -o - |llvm-dwarfdump - | FileCheck --check-prefix=DWARF3 %s
-// RUN: llvm-mc -g -dwarf-version 4 -triple i686-pc-linux-gnu %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck --check-prefix=DWARF4 %s
-
-
-// Check that we generate debug_line version that matches the dwarf version.
-// For DWARF-4, additionally check that maximum_operations_per_instruction
-// field is emitted.
-
- .text
- .globl foo
- .type foo, @function
- .align 4
-foo:
- ret
- .size foo, .-foo
-
-// DWARF2: Compile Unit: length = {{.*}} version = 0x0002
-// DWARF2: Line table prologue:
-// DWARF2-NEXT: total_length: 0x00000077
-// DWARF2-NEXT: version: 2
-// DWARF2-NEXT: prologue_length: 0x00000062
-// DWARF2-NOT: max_ops_per_inst: 1
-
-// DWARF3: Compile Unit: length = {{.*}} version = 0x0003
-// DWARF3: Line table prologue:
-// DWARF3-NEXT: total_length: 0x00000077
-// DWARF3-NEXT: version: 3
-// DWARF3-NEXT: prologue_length: 0x00000062
-// DWARF3-NOT: max_ops_per_inst: 1
-
-
-// DWARF4: Compile Unit: length = {{.*}} version = 0x0004
-// DWARF4: Line table prologue:
-// DWARF4-NEXT: total_length: 0x00000078
-// DWARF4-NEXT: version: 4
-// DWARF4-NEXT: prologue_length: 0x00000063
-// DWARF4: max_ops_per_inst: 1
-
diff --git a/llvm/test/DebugInfo/X86/empty.ll b/llvm/test/DebugInfo/X86/empty.ll
index 6506f5567ad..e156e3bbe5e 100644
--- a/llvm/test/DebugInfo/X86/empty.ll
+++ b/llvm/test/DebugInfo/X86/empty.ll
@@ -4,7 +4,7 @@
; Expect no line table entry since there are no functions and file references in this compile unit
; CHECK: .debug_line contents:
; CHECK: Line table prologue:
-; CHECK: total_length: 0x0000001a
+; CHECK: total_length: 0x00000019
; CHECK-NOT: file_names[
; CHECK: .debug_pubnames contents:
diff --git a/llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll b/llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll
index a60725fe685..527f577134c 100644
--- a/llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll
+++ b/llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll
@@ -15,7 +15,7 @@
; CHECK: DW_AT_high_pc [DW_FORM_data4] (0x00000010)
; CHECK: DW_TAG_compile_unit
-; CHECK: DW_AT_stmt_list [DW_FORM_sec_offset] (0x0000003d)
+; CHECK: DW_AT_stmt_list [DW_FORM_sec_offset] (0x0000003c)
; CHECK: DW_AT_low_pc [DW_FORM_addr] (0x0000000000000010)
; CHECK: DW_AT_high_pc [DW_FORM_data4] (0x00000009)
; CHECK: DW_TAG_subprogram
@@ -25,10 +25,10 @@
; CHECK: .debug_line contents:
; CHECK-NEXT: Line table prologue:
-; CHECK-NEXT: total_length: 0x00000039
+; CHECK-NEXT: total_length: 0x00000038
; CHECK: file_names[ 1] 0 0x00000000 0x00000000 simple.c
; CHECK: Line table prologue:
-; CHECK-NEXT: total_length: 0x0000003a
+; CHECK-NEXT: total_length: 0x00000039
; CHECK: file_names[ 1] 0 0x00000000 0x00000000 simple2.c
; CHECK-NOT: file_names
diff --git a/llvm/test/MC/ELF/debug-line.s b/llvm/test/MC/ELF/debug-line.s
index c831eb91571..072265c5c70 100644
--- a/llvm/test/MC/ELF/debug-line.s
+++ b/llvm/test/MC/ELF/debug-line.s
@@ -18,17 +18,17 @@
// CHECK-NEXT: ]
// CHECK-NEXT: Address: 0x0
// CHECK-NEXT: Offset:
-// CHECK-NEXT: Size: 58
+// CHECK-NEXT: Size: 57
// CHECK-NEXT: Link: 0
// CHECK-NEXT: Info: 0
// CHECK-NEXT: AddressAlignment: 1
// CHECK-NEXT: EntrySize: 0
// CHECK-NEXT: SectionData (
-// CHECK-NEXT: 0000: 36000000 04001D00 00000101 01FB0E0D
-// CHECK-NEXT: 0010: 00010101 01000000 01000001 00666F6F
-// CHECK-NEXT: 0020: 2E630000 00000000 09020000 00000000
-// CHECK-NEXT: 0030: 0000154B 21020800 0101
+// CHECK-NEXT: 0000: 35000000 02001C00 00000101 FB0E0D00
+// CHECK-NEXT: 0010: 01010101 00000001 00000100 666F6F2E
+// CHECK-NEXT: 0020: 63000000 00000009 02000000 00000000
+// CHECK-NEXT: 0030: 00154B21 02080001 01
// CHECK-NEXT: )
// CHECK-NEXT: }
diff --git a/llvm/test/MC/ELF/debug-line2.s b/llvm/test/MC/ELF/debug-line2.s
index 50ca778b10e..71b0b164788 100644
--- a/llvm/test/MC/ELF/debug-line2.s
+++ b/llvm/test/MC/ELF/debug-line2.s
@@ -10,16 +10,16 @@
// CHECK-NEXT: ]
// CHECK-NEXT: Address: 0x0
// CHECK-NEXT: Offset:
-// CHECK-NEXT: Size: 57
+// CHECK-NEXT: Size: 56
// CHECK-NEXT: Link: 0
// CHECK-NEXT: Info: 0
// CHECK-NEXT: AddressAlignment: 1
// CHECK-NEXT: EntrySize: 0
// CHECK-NEXT: SectionData (
-// CHECK-NEXT: 0000: 35000000 04001D00 00000101 01FB0E0D |5...............|
-// CHECK-NEXT: 0010: 00010101 01000000 01000001 00666F6F |.............foo|
-// CHECK-NEXT: 0020: 2E630000 00000000 09020000 00000000 |.c..............|
-// CHECK-NEXT: 0030: 00000113 02010001 01 |.........|
+// CHECK-NEXT: 0000: 34000000 02001C00 00000101 FB0E0D00
+// CHECK-NEXT: 0010: 01010101 00000001 00000100 666F6F2E
+// CHECK-NEXT: 0020: 63000000 00000009 02000000 00000000
+// CHECK-NEXT: 0030: 00011302 01000101
// CHECK-NEXT: )
// CHECK-NEXT: }
diff --git a/llvm/test/MC/ELF/debug-loc.s b/llvm/test/MC/ELF/debug-loc.s
index 21eac60d896..4f148728423 100644
--- a/llvm/test/MC/ELF/debug-loc.s
+++ b/llvm/test/MC/ELF/debug-loc.s
@@ -15,7 +15,7 @@
// CHECK-NEXT: ]
// CHECK-NEXT: Address: 0x0
// CHECK-NEXT: Offset:
-// CHECK-NEXT: Size: 62
+// CHECK-NEXT: Size: 61
// CHECK-NEXT: Link: 0
// CHECK-NEXT: Info: 0
// CHECK-NEXT: AddressAlignment: 1
diff --git a/llvm/test/MC/ELF/discriminator.s b/llvm/test/MC/ELF/discriminator.s
index 9c720210618..75e4e86cee0 100644
--- a/llvm/test/MC/ELF/discriminator.s
+++ b/llvm/test/MC/ELF/discriminator.s
@@ -53,7 +53,7 @@ foo:
# CHECK: Relocations [
# CHECK: Section ({{[^ ]+}}) .rel.debug_line {
-# CHECK-NEXT: 0x2E R_386_32 .text 0x0
+# CHECK-NEXT: 0x2D R_386_32 .text 0x0
# CHECK-NEXT: }
# DWARF-DUMP: Address Line Column File ISA Discriminator Flags
diff --git a/llvm/test/MC/ELF/empty-dwarf-lines.s b/llvm/test/MC/ELF/empty-dwarf-lines.s
index 3b14fe0e6c5..19305709cda 100644
--- a/llvm/test/MC/ELF/empty-dwarf-lines.s
+++ b/llvm/test/MC/ELF/empty-dwarf-lines.s
@@ -15,7 +15,7 @@ c:
// CHECK-NEXT: ]
// CHECK-NEXT: Address: 0x0
// CHECK-NEXT: Offset: 0x44
-// CHECK-NEXT: Size: 40
+// CHECK-NEXT: Size: 39
// CHECK-NEXT: Link: 0
// CHECK-NEXT: Info: 0
// CHECK-NEXT: AddressAlignment: 1
diff --git a/llvm/test/MC/MachO/file.s b/llvm/test/MC/MachO/file.s
index 40f8c4ab87d..108e3bbf173 100644
--- a/llvm/test/MC/MachO/file.s
+++ b/llvm/test/MC/MachO/file.s
@@ -8,7 +8,7 @@
// CHECK-NEXT: Name: __debug_line
// CHECK-NEXT: Segment: __DWARF
// CHECK-NEXT: Address: 0x1
-// CHECK-NEXT: Size: 0x29
+// CHECK-NEXT: Size: 0x28
// CHECK-NEXT: Offset: 237
// CHECK-NEXT: Alignment: 0
// CHECK-NEXT: RelocationOffset: 0x0
@@ -20,8 +20,8 @@
// CHECK-NEXT: Reserved1: 0x0
// CHECK-NEXT: Reserved2: 0x0
// CHECK-NEXT: SectionData (
-// CHECK-NEXT: 0000: 25000000 04001F00 00000101 01FB0E0D |%...............|
-// CHECK-NEXT: 0010: 00010101 01000000 01000001 64697200 |............dir.|
-// CHECK-NEXT: 0020: 00666F6F 00010000 00 |.foo.....|
+// CHECK-NEXT: 0000: 24000000 02001E00 00000101 FB0E0D00
+// CHECK-NEXT: 0010: 01010101 00000001 00000164 69720000
+// CHECK-NEXT: 0020: 666F6F00 01000000
// CHECK-NEXT: )
// CHECK-NEXT: }
diff --git a/llvm/test/MC/MachO/gen-dwarf.s b/llvm/test/MC/MachO/gen-dwarf.s
index 2f9a715dfa7..22a8e93799d 100644
--- a/llvm/test/MC/MachO/gen-dwarf.s
+++ b/llvm/test/MC/MachO/gen-dwarf.s
@@ -89,7 +89,7 @@ _x: .long 1
// CHECK: .debug_line contents:
// CHECK: Line table prologue:
// We don't check the total_length as it includes lengths of temp paths
-// CHECK: version: 4
+// CHECK: version: 2
// We don't check the prologue_length as it too includes lengths of temp paths
// CHECK: min_inst_length: 1
// CHECK: default_is_stmt: 1
diff --git a/llvm/test/MC/MachO/loc.s b/llvm/test/MC/MachO/loc.s
index d38bcf90357..c1a2edd6090 100644
--- a/llvm/test/MC/MachO/loc.s
+++ b/llvm/test/MC/MachO/loc.s
@@ -9,10 +9,10 @@
// CHECK: Name: __debug_line (5F 5F 64 65 62 75 67 5F 6C 69 6E 65 00 00 00 00)
// CHECK: Segment: __DWARF (5F 5F 44 57 41 52 46 00 00 00 00 00 00 00 00 00)
// CHECK: Address: 0x1
-// CHECK: Size: 0x34
+// CHECK: Size: 0x33
// CHECK: Offset: 237
// CHECK: Alignment: 0
-// CHECK: RelocationOffset: 0x124
+// CHECK: RelocationOffset: 0x120
// CHECK: RelocationCount: 1
// CHECK: Type: 0x0
// CHECK: Attributes [ (0x20000)
@@ -21,15 +21,15 @@
// CHECK: Reserved1: 0x0
// CHECK: Reserved2: 0x0
// CHECK: SectionData (
-// CHECK: 0000: 30000000 04001B00 00000101 01FB0E0D |0...............|
-// CHECK: 0010: 00010101 01000000 01000001 00666F6F |.............foo|
-// CHECK: 0020: 00000000 00000502 00000000 033F0102 |.............?..|
-// CHECK: 0030: 01000101
+// CHECK: 0000: 2F000000 02001A00 00000101 FB0E0D00 |/...............|
+// CHECK: 0010: 01010101 00000001 00000100 666F6F00 |............foo.|
+// CHECK: 0020: 00000000 00050200 00000003 3F010201 |............?...|
+// CHECK: 0030: 000101 |...|
// CHECK: )
// CHECK: }
// CHECK: ]
// CHECK: Relocations [
// CHECK: Section __debug_line {
-// CHECK: 0x28 0 2 0 GENERIC_RELOC_VANILLA 0 __text
+// CHECK: 0x27 0 2 0 GENERIC_RELOC_VANILLA 0 __text
// CHECK: }
// CHECK: ]
OpenPOWER on IntegriCloud