diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:10:56 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:10:56 +0000 |
commit | 044eb2f6afba375a914ac9d8024f8f5142bb912e (patch) | |
tree | 1475247dc9f9fe5be155ebd4c9069c75aadf8c20 /test/MC/ELF | |
parent | eb70dddbd77e120e5d490bd8fbe7ff3f8fa81c6b (diff) | |
download | src-044eb2f6afba375a914ac9d8024f8f5142bb912e.tar.gz src-044eb2f6afba375a914ac9d8024f8f5142bb912e.zip |
Vendor import of llvm trunk r321017:vendor/llvm/llvm-trunk-r321017
Notes
Notes:
svn path=/vendor/llvm/dist/; revision=326938
svn path=/vendor/llvm/llvm-trunk-r321017/; revision=326939; tag=vendor/llvm/llvm-trunk-r321017
Diffstat (limited to 'test/MC/ELF')
-rw-r--r-- | test/MC/ELF/ARM/clang-section.s | 12 | ||||
-rw-r--r-- | test/MC/ELF/basic-elf-32.s | 2 | ||||
-rw-r--r-- | test/MC/ELF/basic-elf-64.s | 2 | ||||
-rw-r--r-- | test/MC/ELF/call-abs.s | 2 | ||||
-rw-r--r-- | test/MC/ELF/cfi-large-model.s | 2 | ||||
-rw-r--r-- | test/MC/ELF/cfi-version.ll | 8 | ||||
-rw-r--r-- | test/MC/ELF/comp-dir.s | 4 | ||||
-rw-r--r-- | test/MC/ELF/compression.s | 4 | ||||
-rw-r--r-- | test/MC/ELF/debug-line.s | 10 | ||||
-rw-r--r-- | test/MC/ELF/debug-line2.s | 10 | ||||
-rw-r--r-- | test/MC/ELF/debug-loc.s | 2 | ||||
-rw-r--r-- | test/MC/ELF/discriminator.s | 8 | ||||
-rw-r--r-- | test/MC/ELF/empty-dwarf-lines.s | 2 | ||||
-rw-r--r-- | test/MC/ELF/fde.s | 2 |
14 files changed, 35 insertions, 35 deletions
diff --git a/test/MC/ELF/ARM/clang-section.s b/test/MC/ELF/ARM/clang-section.s index 0b0d27c4ceb1..73bae69aa26b 100644 --- a/test/MC/ELF/ARM/clang-section.s +++ b/test/MC/ELF/ARM/clang-section.s @@ -23,12 +23,12 @@ .code 32 @ @foo foo: .fnstart -@ BB#0: @ %entry +@ %bb.0: @ %entry ldr r0, .LCPI0_0 ldr r0, [r0] mov pc, lr .p2align 2 -@ BB#1: +@ %bb.1: .LCPI0_0: .long b .Lfunc_end0: @@ -43,7 +43,7 @@ foo: .code 32 @ @goo goo: .fnstart -@ BB#0: @ %entry +@ %bb.0: @ %entry .save {r11, lr} push {r11, lr} ldr r0, .LCPI1_0 @@ -52,7 +52,7 @@ goo: pop {r11, lr} mov pc, lr .p2align 2 -@ BB#1: +@ %bb.1: .LCPI1_0: .long _ZL1g .LCPI1_1: @@ -69,12 +69,12 @@ goo: .code 32 @ @hoo hoo: .fnstart -@ BB#0: @ %entry +@ %bb.0: @ %entry ldr r0, .LCPI2_0 ldr r0, [r0] mov pc, lr .p2align 2 -@ BB#1: +@ %bb.1: .LCPI2_0: .long b .Lfunc_end2: diff --git a/test/MC/ELF/basic-elf-32.s b/test/MC/ELF/basic-elf-32.s index 1036b04a747b..d4aab27d29c6 100644 --- a/test/MC/ELF/basic-elf-32.s +++ b/test/MC/ELF/basic-elf-32.s @@ -5,7 +5,7 @@ .align 16, 0x90 .type main,@function main: # @main -# BB#0: +# %bb.0: subl $4, %esp movl $.L.str1, (%esp) calll puts diff --git a/test/MC/ELF/basic-elf-64.s b/test/MC/ELF/basic-elf-64.s index b93f9aebd3a0..01f020bd64bb 100644 --- a/test/MC/ELF/basic-elf-64.s +++ b/test/MC/ELF/basic-elf-64.s @@ -5,7 +5,7 @@ .align 16, 0x90 .type main,@function main: # @main -# BB#0: +# %bb.0: subq $8, %rsp movl $.L.str1, %edi callq puts diff --git a/test/MC/ELF/call-abs.s b/test/MC/ELF/call-abs.s index 81265a1b075d..145b9a7da2f5 100644 --- a/test/MC/ELF/call-abs.s +++ b/test/MC/ELF/call-abs.s @@ -4,7 +4,7 @@ .globl f .type f,@function f: # @f -# BB#0: # %entry +# %bb.0: # %entry subl $4, %esp calll 42 incl %eax diff --git a/test/MC/ELF/cfi-large-model.s b/test/MC/ELF/cfi-large-model.s index 2fb63d183712..790d75eee1fa 100644 --- a/test/MC/ELF/cfi-large-model.s +++ b/test/MC/ELF/cfi-large-model.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -code-model=large %s \ +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -large-code-model %s \ // RUN: -o - | llvm-readobj -s -sd | FileCheck %s // CHECK: Section { diff --git a/test/MC/ELF/cfi-version.ll b/test/MC/ELF/cfi-version.ll index 7087944a6a44..61383a8d3060 100644 --- a/test/MC/ELF/cfi-version.ll +++ b/test/MC/ELF/cfi-version.ll @@ -1,7 +1,7 @@ -; RUN: %llc_dwarf %s -o - -dwarf-version 2 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF2 -; RUN: %llc_dwarf %s -o - -dwarf-version 3 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF3 -; RUN: %llc_dwarf %s -o - -dwarf-version 4 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF4 -; RUN: %llc_dwarf %s -o - -dwarf-version 5 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF4 +; RUN: %llc_dwarf %s -o - -dwarf-version 2 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF2 +; RUN: %llc_dwarf %s -o - -dwarf-version 3 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF3 +; RUN: %llc_dwarf %s -o - -dwarf-version 4 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF4 +; RUN: %llc_dwarf %s -o - -dwarf-version 5 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF4 ; .debug_frame is not emitted for targeting Windows x64. ; REQUIRES: debug_frame diff --git a/test/MC/ELF/comp-dir.s b/test/MC/ELF/comp-dir.s index c8d996faf326..e80822296c83 100644 --- a/test/MC/ELF/comp-dir.s +++ b/test/MC/ELF/comp-dir.s @@ -1,6 +1,6 @@ // REQUIRES: shell // RUN: llvm-mc -triple=x86_64-linux-unknown -g -fdebug-compilation-dir=/test/comp/dir %s -filetype=obj -o %t.o -// RUN: llvm-dwarfdump -debug-dump=info %t.o | FileCheck %s +// RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s // CHECK: DW_AT_comp_dir [DW_FORM_string] ("{{([A-Za-z]:.*)?}}/test/comp/dir") @@ -8,7 +8,7 @@ // RUN: ln -sf %t.foo %t.bar // RUN: cd %t.foo // RUN: env PWD=%t.bar llvm-mc -triple=x86_64-linux-unknown -g %s -filetype=obj -o %t.o -// RUN: llvm-dwarfdump -debug-dump=info %t.o | FileCheck --check-prefix=PWD %s +// RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck --check-prefix=PWD %s // PWD: DW_AT_comp_dir [DW_FORM_string] ("{{.*}}.bar") diff --git a/test/MC/ELF/compression.s b/test/MC/ELF/compression.s index 0777ee3f9032..ed385517b3a8 100644 --- a/test/MC/ELF/compression.s +++ b/test/MC/ELF/compression.s @@ -1,14 +1,14 @@ // Check zlib-gnu style // RUN: llvm-mc -filetype=obj -compress-debug-sections=zlib-gnu -triple x86_64-pc-linux-gnu < %s -o %t // RUN: llvm-objdump -s %t | FileCheck --check-prefix=CHECK-GNU-STYLE %s -// RUN: llvm-dwarfdump -debug-dump=str %t | FileCheck --check-prefix=STR %s +// RUN: llvm-dwarfdump -debug-str %t | FileCheck --check-prefix=STR %s // RUN: llvm-mc -filetype=obj -compress-debug-sections=zlib-gnu -triple i386-pc-linux-gnu < %s \ // RUN: | llvm-readobj -symbols - | FileCheck --check-prefix=386-SYMBOLS-GNU %s // Check zlib style // RUN: llvm-mc -filetype=obj -compress-debug-sections=zlib -triple x86_64-pc-linux-gnu < %s -o %t // RUN: llvm-objdump -s %t | FileCheck --check-prefix=CHECK-ZLIB-STYLE %s -// RUN: llvm-dwarfdump -debug-dump=str %t | FileCheck --check-prefix=STR %s +// RUN: llvm-dwarfdump -debug-str %t | FileCheck --check-prefix=STR %s // RUN: llvm-mc -filetype=obj -compress-debug-sections=zlib -triple i386-pc-linux-gnu < %s \ // RUN: | llvm-readobj -symbols - | FileCheck --check-prefix=386-SYMBOLS-ZLIB %s // RUN: llvm-readobj -sections %t | FileCheck --check-prefix=ZLIB-STYLE-FLAGS %s diff --git a/test/MC/ELF/debug-line.s b/test/MC/ELF/debug-line.s index 072265c5c701..c831eb915711 100644 --- a/test/MC/ELF/debug-line.s +++ b/test/MC/ELF/debug-line.s @@ -18,17 +18,17 @@ // CHECK-NEXT: ] // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: -// CHECK-NEXT: Size: 57 +// CHECK-NEXT: Size: 58 // CHECK-NEXT: Link: 0 // CHECK-NEXT: Info: 0 // CHECK-NEXT: AddressAlignment: 1 // CHECK-NEXT: EntrySize: 0 // CHECK-NEXT: SectionData ( -// 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: 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: ) // CHECK-NEXT: } diff --git a/test/MC/ELF/debug-line2.s b/test/MC/ELF/debug-line2.s index 71b0b1647886..809b976824a0 100644 --- a/test/MC/ELF/debug-line2.s +++ b/test/MC/ELF/debug-line2.s @@ -10,16 +10,16 @@ // CHECK-NEXT: ] // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: -// CHECK-NEXT: Size: 56 +// 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: 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: 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: ) // CHECK-NEXT: } diff --git a/test/MC/ELF/debug-loc.s b/test/MC/ELF/debug-loc.s index 4f1487284231..21eac60d896d 100644 --- a/test/MC/ELF/debug-loc.s +++ b/test/MC/ELF/debug-loc.s @@ -15,7 +15,7 @@ // CHECK-NEXT: ] // CHECK-NEXT: Address: 0x0 // CHECK-NEXT: Offset: -// CHECK-NEXT: Size: 61 +// CHECK-NEXT: Size: 62 // CHECK-NEXT: Link: 0 // CHECK-NEXT: Info: 0 // CHECK-NEXT: AddressAlignment: 1 diff --git a/test/MC/ELF/discriminator.s b/test/MC/ELF/discriminator.s index 75e4e86cee0f..2aab2404dfb8 100644 --- a/test/MC/ELF/discriminator.s +++ b/test/MC/ELF/discriminator.s @@ -1,6 +1,6 @@ # RUN: llvm-mc -triple i386-unknown-unknown %s -filetype=obj -o %t.o # RUN: llvm-readobj -r %t.o | FileCheck %s -# RUN: llvm-dwarfdump -debug-dump=line %t.o | FileCheck %s -check-prefix=DWARF-DUMP +# RUN: llvm-dwarfdump -debug-line %t.o | FileCheck %s -check-prefix=DWARF-DUMP .file 1 "foo.c" .text @@ -17,7 +17,7 @@ foo: .long 34 # Length of Unit .short 4 # DWARF version number .long .L.debug_abbrev_begin # Offset Into Abbrev. Section - .byte 8 # Address Size (in bytes) + .byte 4 # Address Size (in bytes) .byte 1 # Abbrev [1] 0xb:0x1b DW_TAG_compile_unit .long info_string0 # DW_AT_producer .short 12 # DW_AT_language @@ -53,9 +53,9 @@ foo: # CHECK: Relocations [ # CHECK: Section ({{[^ ]+}}) .rel.debug_line { -# CHECK-NEXT: 0x2D R_386_32 .text 0x0 +# CHECK-NEXT: 0x2E R_386_32 .text 0x0 # CHECK-NEXT: } # DWARF-DUMP: Address Line Column File ISA Discriminator Flags # DWARF-DUMP: ------------------ ------ ------ ------ --- ------------- ------------- -# DWARF-DUMP: 0x0001021300000000 1 0 1 0 1 is_stmt +# DWARF-DUMP: 0x0000000000000000 2 0 1 0 1 is_stmt diff --git a/test/MC/ELF/empty-dwarf-lines.s b/test/MC/ELF/empty-dwarf-lines.s index 19305709cda6..3b14fe0e6c5c 100644 --- a/test/MC/ELF/empty-dwarf-lines.s +++ b/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: 39 +// CHECK-NEXT: Size: 40 // CHECK-NEXT: Link: 0 // CHECK-NEXT: Info: 0 // CHECK-NEXT: AddressAlignment: 1 diff --git a/test/MC/ELF/fde.s b/test/MC/ELF/fde.s index 52ee33f16fbc..09be34b5303a 100644 --- a/test/MC/ELF/fde.s +++ b/test/MC/ELF/fde.s @@ -10,7 +10,7 @@ __cxx_global_var_init: # @__cxx_global_var_init .cfi_startproc .Lfunc_begin0: -# BB#0: # %entry +# %bb.0: # %entry pushq %rbp .Ltmp2: .cfi_def_cfa_offset 16 |