forked from OSchip/llvm-project
30 lines
1.3 KiB
Plaintext
30 lines
1.3 KiB
Plaintext
RUN: lld -flavor gnu -target hexagon -static -emit-yaml %p/Inputs/branch-test.hexagon %p/Inputs/target-test.hexagon | FileCheck %s -check-prefix hexagon-yaml
|
|
RUN: lld -flavor gnu -target hexagon -e target -o %t1 %p/Inputs/branch-test.hexagon %p/Inputs/target-test.hexagon
|
|
RUN: elf-dump %t1 | FileCheck -check-prefix=hexagon-elfdump %s
|
|
|
|
hexagon-yaml: - name: back
|
|
hexagon-yaml: scope: global
|
|
hexagon-yaml: content: [ 00, C0, 00, 7F, 00, C0, 00, 5A, 00, 00, 00, 00,
|
|
hexagon-yaml: 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 ]
|
|
hexagon-yaml: references:
|
|
hexagon-yaml: - kind:
|
|
hexagon-yaml: offset: 4
|
|
hexagon-yaml: target: target
|
|
|
|
hexagon-yaml: - name: target
|
|
hexagon-yaml: scope: global
|
|
hexagon-yaml: content: [ 00, C0, 00, 5A ]
|
|
hexagon-yaml: references:
|
|
hexagon-yaml: - kind:
|
|
hexagon-yaml: offset: 0
|
|
hexagon-yaml: target: back
|
|
|
|
|
|
hexagon-elfdump: ('e_indent[EI_CLASS]', 0x01)
|
|
hexagon-elfdump: ('e_indent[EI_DATA]', 0x01)
|
|
hexagon-elfdump: ('e_indent[EI_VERSION]', 0x01)
|
|
hexagon-elfdump: ('e_indent[EI_OSABI]', 0x00)
|
|
hexagon-elfdump: ('e_indent[EI_ABIVERSION]', 0x00)
|
|
hexagon-elfdump: ('e_type', 0x0002)
|
|
hexagon-elfdump: ('e_machine', 0x00a4)
|