# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %t
# RUN: lld -flavor gnu2 %t -o %t2
# RUN: llvm-objdump -d %t2 | FileCheck %s
# REQUIRES: aarch64

.globl _start
_start:
  adr x1,msg
msg:  .asciz  "Hello, world\n"
msgend:

// R_AARCH64_ADR_PREL_LO21
# CHECK: _start:
# CHECK:   11000:       21 00 00 10     adr     x1, #4

# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %t
# RUN: lld -flavor gnu2 %t -o %t2
# RUN: llvm-objdump -d %t2 | FileCheck %s
# REQUIRES: aarch64

.section .R_AARCH64_ADR_PREL_LO21,"ax",@progbits
.globl _start
_start:
  adr x1,msg
msg:  .asciz  "Hello, world\n"
msgend:

# CHECK: Disassembly of section .R_AARCH64_ADR_PREL_LO21:
# CHECK: _start:
# CHECK:        0:       21 00 00 10     adr     x1, #4
# CHECK: msg:
# CHECK:        4:
# #4 is the adr immediate value.

Expand test comment a little bit, use reloc name as section name.
[ELF2] Expand test comment a little bit, use reloc name as section name.


git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@248930 91177308-0d34-0410-b5e6-96231b3b80d8
