[ARM] A predicate cast of a predicate cast is a predicate cast
[llvm-complete.git] / test / tools / llvm-objdump / X86 / elf-disassemble-symbol-labels-exec.test
blob548ee4b182dd13005a67bb506cda7389d214c8fb
1 ## Show which labels are printed in disassembly of an executable.
3 # RUN: yaml2obj %s -o %t
4 # RUN: llvm-objdump %t -d | FileCheck %s --implicit-check-not=stt_section \
5 # RUN:                                   --implicit-check-not=fourth \
6 # RUN:                                   --implicit-check-not=absolute \
7 # RUN:                                   --implicit-check-not=other
9 # CHECK:     0000000000004000 first:
10 # CHECK:     0000000000004001 second:
11 # CHECK:     0000000000004002 third:
13 --- !ELF
14 FileHeader:
15   Class:   ELFCLASS64
16   Data:    ELFDATA2LSB
17   Type:    ET_EXEC
18   Machine: EM_X86_64
19 Sections:
20   - Name:    .text
21     Type:    SHT_PROGBITS
22     Address: 0x4000
23     Flags:   [SHF_ALLOC, SHF_EXECINSTR]
24     Content: '9090909090'
25   - Name:    .text2
26     Type:    SHT_PROGBITS
27     Address: 0x4004
28     Flags:   [SHF_ALLOC, SHF_EXECINSTR]
29     Size:    0
30 Symbols:
31   - Name:    first # Shows, with second, that symbol sizes are not used to delineate functions.
32     Value:   0x4000
33     Section: .text
34     Size:    0x2
35   - Name:    second
36     Value:   0x4001
37     Size:    0x1
38     Section: .text
39   - Name:    third # Shows, with fourth, that first symbol is picked.
40     Value:   0x4002
41     Section: .text
42   - Name:    fourth
43     Value:   0x4002
44     Section: .text
45   - Name:    stt_section # Shows that STT_SECTION symbols are ignored even if no other symbol present.
46     Value:   0x4003
47     Type:    STT_SECTION
48     Section: .text
49   - Name:    absolute # Show that absolute symbols are ignored.
50     Value:   0x4004
51     Index:   SHN_ABS
52   - Name:    other # Show that symbols from other sections are ignored.
53     Value:   0x4004
54     Section: .text2