1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/tools/llvm-objdump/X86/disassemble-demangle.test
Fangrui Song d68dfedd72 [test] Use yaml2obj -o %t instead of > %t
To improve consistency and avoid unneeded shell feature (output
redirection).

While here, make other changes to improve consistency

--docnum 1 => --docnum=1
-docnum=x => --docnum=x
2020-01-21 17:20:18 -08:00

41 lines
1.1 KiB
Plaintext

# RUN: yaml2obj %s -o %t
# RUN: llvm-objdump -d -C %t | FileCheck --check-prefix=DEMANGLE %s
# RUN: llvm-objdump -d --demangle %t | FileCheck --check-prefix=DEMANGLE %s
# RUN: llvm-objdump -d %t | FileCheck --check-prefix=NO-DEMANGLE %s
!ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_EXEC
Machine: EM_X86_64
Sections:
- Name: .text1
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Address: 0x1000
AddressAlign: 0x0000000000000010
Content: "0000000000000000"
- Name: .text2
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Address: 0x1010
AddressAlign: 0x0000000000000010
Content: "0000000000000000"
Symbols:
- Name: _Z3fooi
Type: STT_FUNC
Section: .text1
Value: 0x1000
- Name: _Z3foov
Type: STT_FUNC
Section: .text2
Value: 0x1010
# We just want to check that the symbols are demangled
# DEMANGLE: foo(int)
# DEMANGLE: foo()
# NO-DEMANGLE: _Z3fooi
# NO-DEMANGLE: _Z3foov