[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / coff-relocations-offset.s
blob1408ba826dea7a147fa3f2fd898fb0c34bc4260c
1 // RUN: llvm-mc -triple aarch64-windows -filetype obj -o %t.obj %s
2 // RUN: llvm-objdump -d -r %t.obj | FileCheck %s
3 // RUN: llvm-readobj --syms %t.obj | FileCheck %s --check-prefix=SYMBOLS
5 .text
6 main:
7 adrp x0, .Ltmp0
8 adrp x0, .Ltmp1
9 adrp x0, .Ltmp2+8
11 .section .rdata
12 .word 1
13 .Ltmp0:
14 .word 2
15 .fill 1048576
16 .Ltmp1: // 1 MB + 8 bytes
17 .fill (1048576-8-4)
18 .Ltmp2: // 2 MB - 4 bytes
19 .word 3
20 // 2 MB here
21 .word 4
22 // .Ltmp2+8 points here
23 .word 5
25 // CHECK: 0: 90000020 adrp x0, 0x4000
26 // CHECK-NEXT: 0000000000000000: IMAGE_REL_ARM64_PAGEBASE_REL21 .rdata
27 // CHECK-NEXT: 4: 90000040 adrp x0, 0x8000
28 // CHECK-NEXT: 0000000000000004: IMAGE_REL_ARM64_PAGEBASE_REL21 $L.rdata_1
29 // CHECK-NEXT: 8: 90000020 adrp x0, 0x4000
30 // CHECK-NEXT: 0000000000000008: IMAGE_REL_ARM64_PAGEBASE_REL21 $L.rdata_2
32 // SYMBOLS: Symbol {
33 // SYMBOLS: Name: $L.rdata_1
34 // SYMBOLS-NEXT: Value: 1048576
35 // SYMBOLS-NEXT: Section: .rdata (4)
36 // SYMBOLS-NEXT: BaseType: Null (0x0)
37 // SYMBOLS-NEXT: ComplexType: Null (0x0)
38 // SYMBOLS-NEXT: StorageClass: Label (0x6)
39 // SYMBOLS-NEXT: AuxSymbolCount: 0
40 // SYMBOLS-NEXT: }
41 // SYMBOLS-NEXT: Symbol {
42 // SYMBOLS-NEXT: Name: $L.rdata_2
43 // SYMBOLS-NEXT: Value: 2097152
44 // SYMBOLS-NEXT: Section: .rdata (4)
45 // SYMBOLS-NEXT: BaseType: Null (0x0)
46 // SYMBOLS-NEXT: ComplexType: Null (0x0)
47 // SYMBOLS-NEXT: StorageClass: Label (0x6)
48 // SYMBOLS-NEXT: AuxSymbolCount: 0
49 // SYMBOLS-NEXT: }