1// RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj %s -o - | \ 2// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ %s 3// RUN: llvm-mc -target-abi=ilp32 -triple=aarch64-none-linux-gnu \ 4// RUN: -filetype=obj %s -o - | \ 5// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ-ILP32 %s 6 7 ldr x0, some_label 8 ldr w3, some_label 9 ldrsw x9, some_label 10 prfm pldl3keep, some_label 11 12// OBJ: Relocations [ 13// OBJ-NEXT: Section {{.*}} .rela.text { 14// OBJ-NEXT: 0x0 R_AARCH64_LD_PREL_LO19 some_label 0x0 15// OBJ-NEXT: 0x4 R_AARCH64_LD_PREL_LO19 some_label 0x0 16// OBJ-NEXT: 0x8 R_AARCH64_LD_PREL_LO19 some_label 0x0 17// OBJ-NEXT: 0xC R_AARCH64_LD_PREL_LO19 some_label 0x0 18// OBJ-NEXT: } 19// OBJ-NEXT: ] 20 21// OBJ-ILP32: Relocations [ 22// OBJ-ILP32-NEXT: Section {{.*}} .rela.text { 23// OBJ-ILP32-NEXT: 0x0 R_AARCH64_P32_LD_PREL_LO19 some_label 0x0 24// OBJ-ILP32-NEXT: 0x4 R_AARCH64_P32_LD_PREL_LO19 some_label 0x0 25// OBJ-ILP32-NEXT: 0x8 R_AARCH64_P32_LD_PREL_LO19 some_label 0x0 26// OBJ-ILP32-NEXT: 0xC R_AARCH64_P32_LD_PREL_LO19 some_label 0x0 27// OBJ-ILP32-NEXT: } 28// OBJ-ILP32-NEXT: ] 29