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        b somewhere
8        bl somewhere
9
10// OBJ:      Relocations [
11// OBJ-NEXT:   Section {{.*}} .rela.text {
12// OBJ-NEXT:     0x0 R_AARCH64_JUMP26 somewhere 0x0
13// OBJ-NEXT:     0x4 R_AARCH64_CALL26 somewhere 0x0
14// OBJ-NEXT:   }
15// OBJ-NEXT: ]
16
17// OBJ-ILP32:      Relocations [
18// OBJ-ILP32-NEXT:   Section {{.*}} .rela.text {
19// OBJ-ILP32-NEXT:     0x0 R_AARCH64_P32_JUMP26 somewhere 0x0
20// OBJ-ILP32-NEXT:     0x4 R_AARCH64_P32_CALL26 somewhere 0x0
21// OBJ-ILP32-NEXT:   }
22// OBJ-ILP32-NEXT: ]
23