[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / adr.s
blob3c57461b155c0b79f075ac199d31b44de96b383e
1 // RUN: llvm-mc -triple aarch64-elf -filetype=obj %s -o - | llvm-objdump -d -r - | FileCheck %s
3 // CHECK: adr x0, #100
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
15 adr x0, 100
16 adr x2, Symbol
17 adr x3, Symbol + 0
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
33 adrp x0, Symbol
34 adrp x2, Symbol + 0
35 adrp x3, Symbol + 987136
36 adrp x4, (0xffffffff000f1000 - 0xffffffff00000000 + Symbol)
37 adrp x5, Symbol + (0xffffffff000f1000 - 0xffffffff00000000)