1 // RUN
: llvm-mc
-triple aarch64-elf
-filetype
=obj
%s
-o
- | llvm-objdump
-d
-r
- | FileCheck
%s
4 // CHECK-NEXT
: adr x2
, #0
5 // CHECK-NEXT
: R_AARCH64_ADR_PREL_LO21 Symbol
6 // CHECK-NEXT
: adr x3
, #0
7 // CHECK-NEXT
: R_AARCH64_ADR_PREL_LO21 Symbol
8 // CHECK-NEXT
: adr x4
, #0
9 // CHECK-NEXT
: R_AARCH64_ADR_PREL_LO21 Symbol+
987136
10 // CHECK-NEXT
: adr x5
, #0
11 // CHECK-NEXT
: R_AARCH64_ADR_PREL_LO21 Symbol+
987136
12 // CHECK-NEXT
: adr x6
, #0
13 // CHECK-NEXT
: R_AARCH64_ADR_PREL_LO21 Symbol+
987136
18 adr x4
, Symbol
+ 987136
19 adr x5
, (0xffffffff000f1000 - 0xffffffff00000000 + Symbol
)
20 adr x6
, Symbol
+ (0xffffffff000f1000 - 0xffffffff00000000)
22 // CHECK-NEXT
: adrp x0
, #0
23 // CHECK-NEXT
: R_AARCH64_ADR_PREL_PG_HI21 Symbol
24 // CHECK-NEXT
: adrp x2
, #0
25 // CHECK-NEXT
: R_AARCH64_ADR_PREL_PG_HI21 Symbol
26 // CHECK-NEXT
: adrp x3
, #0
27 // CHECK-NEXT
: R_AARCH64_ADR_PREL_PG_HI21 Symbol+
987136
28 // CHECK-NEXT
: adrp x4
, #0
29 // CHECK-NEXT
: R_AARCH64_ADR_PREL_PG_HI21 Symbol+
987136
30 // CHECK-NEXT
: adrp x5
, #0
31 // CHECK-NEXT
: R_AARCH64_ADR_PREL_PG_HI21 Symbol+
987136
35 adrp x3
, Symbol
+ 987136
36 adrp x4
, (0xffffffff000f1000 - 0xffffffff00000000 + Symbol
)
37 adrp x5
, Symbol
+ (0xffffffff000f1000 - 0xffffffff00000000)