Rename CODE_OWNERS -> Maintainers (#114544)
[llvm-project.git] / lld / test / COFF / armnt-mov32t-exec.test
blob2a8475479e7867bb30d715b862dd274a6bdd8fc1
1 # REQUIRES: arm
3 # RUN: yaml2obj %s -o %t.obj
4 # RUN: llvm-objdump --no-print-imm-hex -d %t.obj | FileCheck %s --check-prefix BEFORE
5 # RUN: lld-link /out:%t.exe /subsystem:console /entry:get_function %t.obj
6 # RUN: llvm-objdump --no-print-imm-hex -d %t.exe | FileCheck %s --check-prefix AFTER
8 # BEFORE: Disassembly of section .text:
9 # BEFORE-EMPTY:
10 # BEFORE:        0: 4770          bx lr
11 # BEFORE:        2: bf00          nop
12 # BEFORE:        4: f240 0000     movw r0, #0
13 # BEFORE:        8: f2c0 0000     movt r0, #0
14 # BEFORE:        c: 4770          bx lr
16 # AFTER: Disassembly of section .text:
17 # AFTER-EMPTY:
18 # AFTER:     1000: 4770          bx lr
19 # AFTER:     1002: bf00          nop
20 # AFTER:     1004: f241 0001     movw r0, #4097
21 # AFTER:     1008: f2c0 0040     movt r0, #64
22 # AFTER:     100c: 4770          bx lr
24 --- !COFF
25 header:
26   Machine:         IMAGE_FILE_MACHINE_ARMNT
27   Characteristics: [  ]
28 sections:
29   - Name:            .text
30     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_PURGEABLE, IMAGE_SCN_MEM_16BIT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
31     Alignment:       4
32     SectionData:     704700BF40F20000C0F200007047
33     Relocations:
34       - VirtualAddress:  4
35         SymbolName:      function
36         Type:            IMAGE_REL_ARM_MOV32T
37 symbols:
38   - Name:            .text
39     Value:           0
40     SectionNumber:   1
41     SimpleType:      IMAGE_SYM_TYPE_NULL
42     ComplexType:     IMAGE_SYM_DTYPE_NULL
43     StorageClass:    IMAGE_SYM_CLASS_STATIC
44     SectionDefinition:
45       Length:          14
46       NumberOfRelocations: 1
47       NumberOfLinenumbers: 0
48       CheckSum:        0
49       Number:          1
50   - Name:            function
51     Value:           0
52     SectionNumber:   1
53     SimpleType:      IMAGE_SYM_TYPE_NULL
54     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
55     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
56   - Name:            get_function
57     Value:           4
58     SectionNumber:   1
59     SimpleType:      IMAGE_SYM_TYPE_NULL
60     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
61     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
62 ...