[llvm] r361491 - [llvm-objdump][test] Make test names consistent
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Thu May 23 05:38:07 PDT 2019
Author: jhenderson
Date: Thu May 23 05:38:06 2019
New Revision: 361491
URL: http://llvm.org/viewvc/llvm-project?rev=361491&view=rev
Log:
[llvm-objdump][test] Make test names consistent
This change renames a number of the disassembly tests to standardise
disasm/diassemble/disassembly to disassemble. Requested in
https://reviews.llvm.org/D62255.
Added:
llvm/trunk/test/tools/llvm-objdump/X86/disassemble-functions-mangled-name.test
- copied unchanged from r361489, llvm/trunk/test/tools/llvm-objdump/X86/disasm-specific-funcs-mangled-name.test
llvm/trunk/test/tools/llvm-objdump/X86/disassemble-functions.test
- copied unchanged from r361489, llvm/trunk/test/tools/llvm-objdump/X86/disasm-specific-funcs.test
llvm/trunk/test/tools/llvm-objdump/X86/disassemble-show-raw.test
- copied unchanged from r361469, llvm/trunk/test/tools/llvm-objdump/X86/disassembly-show-raw.test
llvm/trunk/test/tools/llvm-objdump/X86/disassemble-text.test
- copied unchanged from r361469, llvm/trunk/test/tools/llvm-objdump/X86/disasm-text.test
llvm/trunk/test/tools/llvm-objdump/X86/disassemble-zeroes-relocations.test
- copied unchanged from r361469, llvm/trunk/test/tools/llvm-objdump/X86/disasm-zeroes-relocations.test
Removed:
llvm/trunk/test/tools/llvm-objdump/X86/disasm-specific-funcs-mangled-name.test
llvm/trunk/test/tools/llvm-objdump/X86/disasm-specific-funcs.test
llvm/trunk/test/tools/llvm-objdump/X86/disasm-text.test
llvm/trunk/test/tools/llvm-objdump/X86/disasm-zeroes-relocations.test
llvm/trunk/test/tools/llvm-objdump/X86/disassembly-show-raw.test
Removed: llvm/trunk/test/tools/llvm-objdump/X86/disasm-specific-funcs-mangled-name.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/X86/disasm-specific-funcs-mangled-name.test?rev=361490&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objdump/X86/disasm-specific-funcs-mangled-name.test (original)
+++ llvm/trunk/test/tools/llvm-objdump/X86/disasm-specific-funcs-mangled-name.test (removed)
@@ -1,27 +0,0 @@
-## Show that the --disassemble-functions switch takes mangled names, not
-## demangled names.
-
-# RUN: yaml2obj %s -o %t.o
-# RUN: llvm-objdump -d --disassemble-functions=_Z3foov %t.o | FileCheck %s
-# RUN: llvm-objdump -d --disassemble-functions='foo()' %t.o | FileCheck %s --check-prefix=NOFOO
-# RUN: llvm-objdump -d -C --disassemble-functions='foo()' %t.o | FileCheck %s --check-prefix=NOFOO
-# RUN: llvm-objdump -d --disassemble-functions=foo %t.o | FileCheck %s --check-prefix=NOFOO
-
-# CHECK: _Z3foov:
-
-# NOFOO-NOT: foo
-
---- !ELF
-FileHeader:
- Class: ELFCLASS64
- Data: ELFDATA2LSB
- Type: ET_EXEC
- Machine: EM_X86_64
-Sections:
- - Name: .text
- Type: SHT_PROGBITS
- Flags: [SHF_ALLOC, SHF_EXECINSTR]
- Content: '90'
-Symbols:
- - Name: _Z3foov
- Section: .text
Removed: llvm/trunk/test/tools/llvm-objdump/X86/disasm-specific-funcs.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/X86/disasm-specific-funcs.test?rev=361490&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objdump/X86/disasm-specific-funcs.test (original)
+++ llvm/trunk/test/tools/llvm-objdump/X86/disasm-specific-funcs.test (removed)
@@ -1,25 +0,0 @@
-## Show that the --diassemble-functions switch disassembles only the specified
-## functions.
-
-# RUN: yaml2obj -o %t.out %p/Inputs/simple-executable-x86_64.yaml
-# RUN: llvm-objdump -d %t.out --disassemble-functions=main \
-# RUN: | FileCheck %s --check-prefix=MAIN --implicit-check-not=foo --implicit-check-not=somedata
-# RUN: llvm-objdump -d %t.out --disassemble-functions=main,foo \
-# RUN: | FileCheck %s --check-prefixes=MAIN,FOO --implicit-check-not=somedata
-
-# FOO: foo:
-# MAIN: main:
-
-## Unknown symbol name.
-# RUN: llvm-objdump -d %t.out --disassemble-functions=baz \
-# RUN: | FileCheck %s --implicit-check-not=Disassembly
-
-## Data symbol.
-# RUN: llvm-objdump -d %t.out --disassemble-functions=a \
-# RUN: | FileCheck %s --implicit-check-not=Disassembly
-
-## Data symbol + --disassemble-all.
-# RUN: llvm-objdump -D %t.out --disassemble-functions=a \
-# RUN: | FileCheck %s --check-prefix=DATA
-
-# DATA: a:
Removed: llvm/trunk/test/tools/llvm-objdump/X86/disasm-text.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/X86/disasm-text.test?rev=361490&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objdump/X86/disasm-text.test (original)
+++ llvm/trunk/test/tools/llvm-objdump/X86/disasm-text.test (removed)
@@ -1,11 +0,0 @@
-# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o -| \
-# RUN: llvm-objdump -d - | FileCheck %s
-
-.globl foo
-.type foo, @object
-foo:
-.ascii "this is a test"
-
-# CHECK: foo:
-# CHECK: 0:{{.*}}this is
-# CHECK: 8:{{.*}}a test
Removed: llvm/trunk/test/tools/llvm-objdump/X86/disasm-zeroes-relocations.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/X86/disasm-zeroes-relocations.test?rev=361490&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objdump/X86/disasm-zeroes-relocations.test (original)
+++ llvm/trunk/test/tools/llvm-objdump/X86/disasm-zeroes-relocations.test (removed)
@@ -1,54 +0,0 @@
-# RUN: yaml2obj %s > %t
-
-## Check we do not skip zeroes blocks if have relocations pointed to these places.
-# RUN: llvm-objdump -D --reloc %t
-
-# CHECK: 0000000000000000 .rodata:
-# CHECK-NEXT: 0: 00 00 addb %al, (%rax)
-# CHECK-NEXT: 0000000000000000: R_X86_64_64 *ABS*
-# CHECK-NEXT: 2: 00 00 addb %al, (%rax)
-# CHECK-NEXT: 4: 00 00 addb %al, (%rax)
-# CHECK-NEXT: 6: 00 00 addb %al, (%rax)
-# CHECK-NEXT: 8: 00 00 addb %al, (%rax)
-# CHECK-NEXT: 0000000000000008: R_X86_64_64 *ABS*
-# CHECK-NEXT: a: 00 00 addb %al, (%rax)
-# CHECK-NEXT: c: 00 00 addb %al, (%rax)
-# CHECK-NEXT: e: 00 00 addb %al, (%rax)
-
-## Check that without -reloc all zeroes would be omitted.
-# RUN: llvm-objdump -D %t | FileCheck %s --check-prefix=SKIP
-
-# SKIP: 0000000000000000 .rodata:
-# SKIP-NEXT: ...
-# SKIP-EMPTY:
-# SKIP-NEXT: Disassembly of section .rela.rodata:
-
---- !ELF
-FileHeader:
- Class: ELFCLASS64
- Data: ELFDATA2LSB
- Type: ET_REL
- Machine: EM_X86_64
-Sections:
- - Name: .rodata
- Type: SHT_PROGBITS
- Flags: [ SHF_ALLOC ]
- AddressAlign: 0x0000000000000001
- Content: '00000000000000000000000000000000'
- - Name: .rela.rodata
- Type: SHT_RELA
- Flags: [ SHF_INFO_LINK ]
- Link: .symtab
- AddressAlign: 0x0000000000000008
- EntSize: 0x0000000000000018
- Info: .rodata
- Relocations:
- - Offset: 0x0000000000000000
- Symbol: x
- Type: R_X86_64_64
- - Offset: 0x0000000000000008
- Symbol: x
- Type: R_X86_64_64
-Symbols:
- - Name: x
- Binding: STB_GLOBAL
Removed: llvm/trunk/test/tools/llvm-objdump/X86/disassembly-show-raw.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/X86/disassembly-show-raw.test?rev=361490&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objdump/X86/disassembly-show-raw.test (original)
+++ llvm/trunk/test/tools/llvm-objdump/X86/disassembly-show-raw.test (removed)
@@ -1,14 +0,0 @@
-// RUN: llvm-objdump -d %p/Inputs/trivial.obj.elf-i386 \
-// RUN: | FileCheck %s -check-prefix=WITHRAW
-// RUN: llvm-objdump -d -no-show-raw-insn %p/Inputs/trivial.obj.elf-i386 \
-// RUN: | FileCheck %s -check-prefix=NORAW
-
-// Expect to find the raw incoding when run with raw output (default), but not
-// when run explicitly with -no-show-raw-insn
-
-WITHRAW: a1 00 00 00 00 movl
-
-NORAW: movl
-NORAW-NOT: a1 00
-
-
More information about the llvm-commits
mailing list