blob: 788658cd88379a4cf0ec8a3709abea3937962d56 [file] [log] [blame]
// RUN: llvm-mc -triple=aarch64-darwin -filetype=obj %s -o - | \
// RUN: llvm-objdump -r -d - | FileCheck --check-prefix=OBJ %s
// OBJ-LABEL: Disassembly of section __TEXT,__text:
add x2, x3, _data@pageoff
// OBJ: [[addr:[0-9a-f]+]]: 91000062 add x2, x3, #0
// OBJ-NEXT: [[addr]]: ARM64_RELOC_PAGEOFF12 _data
add x2, x3, #_data@pageoff, lsl #12
// OBJ: [[addr:[0-9a-f]+]]: 91400062 add x2, x3, #0, lsl #12
// OBJ-NEXT: [[addr]]: ARM64_RELOC_PAGEOFF12 _data