[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / COFF / arm64-delayimport.yaml
blobabb9f25d5c37954f50f837326f4c69b06910a11c
1 # REQUIRES: aarch64
3 # RUN: yaml2obj %s -o %t.obj
4 # RUN: lld-link /entry:main /subsystem:console /out:%t.exe %t.obj %p/Inputs/library-arm64.lib /alternatename:__delayLoadHelper2=main /delayload:library.dll
5 # RUN: llvm-objdump --no-print-imm-hex -d %t.exe | FileCheck %s --check-prefix DISASM
6 # RUN: llvm-readobj --coff-imports %t.exe | FileCheck %s -check-prefix IMPORTS
8 # DISASM:  140001014:      d0000011        adrp    x17, 0x140003000
9 # DISASM:  140001018:      91002231        add     x17, x17, #8
10 # DISASM:  14000101c:      14000001        b       0x140001020 <.text+0x20>
11 # DISASM:  140001020:      a9b37bfd        stp     x29, x30, [sp, #-208]!
12 # DISASM:  140001024:      910003fd        mov     x29, sp
13 # DISASM:  140001028:      a90107e0        stp     x0, x1, [sp, #16]
14 # DISASM:  14000102c:      a9020fe2        stp     x2, x3, [sp, #32]
15 # DISASM:  140001030:      a90317e4        stp     x4, x5, [sp, #48]
16 # DISASM:  140001034:      a9041fe6        stp     x6, x7, [sp, #64]
17 # DISASM:  140001038:      ad0287e0        stp     q0, q1, [sp, #80]
18 # DISASM:  14000103c:      ad038fe2        stp     q2, q3, [sp, #112]
19 # DISASM:  140001040:      ad0497e4        stp     q4, q5, [sp, #144]
20 # DISASM:  140001044:      ad059fe6        stp     q6, q7, [sp, #176]
21 # DISASM:  140001048:      aa1103e1        mov     x1, x17
22 # DISASM:  14000104c:      b0000000        adrp    x0, 0x140002000
23 # DISASM:  140001050:      91000000        add     x0, x0, #0
24 # DISASM:  140001054:      97ffffeb        bl      0x140001000 <.text>
25 # DISASM:  140001058:      aa0003f0        mov     x16, x0
26 # DISASM:  14000105c:      ad459fe6        ldp     q6, q7, [sp, #176]
27 # DISASM:  140001060:      ad4497e4        ldp     q4, q5, [sp, #144]
28 # DISASM:  140001064:      ad438fe2        ldp     q2, q3, [sp, #112]
29 # DISASM:  140001068:      ad4287e0        ldp     q0, q1, [sp, #80]
30 # DISASM:  14000106c:      a9441fe6        ldp     x6, x7, [sp, #64]
31 # DISASM:  140001070:      a94317e4        ldp     x4, x5, [sp, #48]
32 # DISASM:  140001074:      a9420fe2        ldp     x2, x3, [sp, #32]
33 # DISASM:  140001078:      a94107e0        ldp     x0, x1, [sp, #16]
34 # DISASM:  14000107c:      a8cd7bfd        ldp     x29, x30, [sp], #208
35 # DISASM:  140001080:      d61f0200        br      x16
37 # IMPORTS: Format: COFF-ARM64
38 # IMPORTS: Arch: aarch64
39 # IMPORTS: AddressSize: 64bit
40 # IMPORTS: DelayImport {
41 # IMPORTS:   Name: library.dll
42 # IMPORTS:   Attributes: 0x1
43 # IMPORTS:   ModuleHandle: 0x3000
44 # IMPORTS:   ImportAddressTable: 0x3008
45 # IMPORTS:   ImportNameTable: 0x2040
46 # IMPORTS:   BoundDelayImportTable: 0x0
47 # IMPORTS:   UnloadDelayImportTable: 0x0
48 # IMPORTS:   Import {
49 # IMPORTS:     Symbol: function (0)
50 # IMPORTS:     Address: 0x140001014
51 # IMPORTS:   }
52 # IMPORTS: }
54 --- !COFF
55 header:
56   Machine:         IMAGE_FILE_MACHINE_ARM64
57   Characteristics: [  ]
58 sections:
59   - Name:            .text
60     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
61     Alignment:       4
62     SectionData:     00000094C0035FD6
63     Relocations:
64       - VirtualAddress:  0
65         SymbolName:      function
66         Type:            IMAGE_REL_ARM64_BRANCH26
67 symbols:
68   - Name:            .text
69     Value:           0
70     SectionNumber:   1
71     SimpleType:      IMAGE_SYM_TYPE_NULL
72     ComplexType:     IMAGE_SYM_DTYPE_NULL
73     StorageClass:    IMAGE_SYM_CLASS_STATIC
74     SectionDefinition:
75       Length:          8
76       NumberOfRelocations: 1
77       NumberOfLinenumbers: 0
78       CheckSum:        0
79       Number:          1
80   - Name:            main
81     Value:           0
82     SectionNumber:   1
83     SimpleType:      IMAGE_SYM_TYPE_NULL
84     ComplexType:     IMAGE_SYM_DTYPE_NULL
85     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
86   - Name:            function
87     Value:           0
88     SectionNumber:   0
89     SimpleType:      IMAGE_SYM_TYPE_NULL
90     ComplexType:     IMAGE_SYM_DTYPE_NULL
91     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
92 ...