2014-05-24 20:50:23 +08:00
|
|
|
// RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj %s -o - | \
|
2016-09-19 19:10:18 +08:00
|
|
|
// RUN: llvm-objdump -r -d - | FileCheck -check-prefix=OBJ %s
|
|
|
|
|
|
|
|
// OBJ-LABEL: Disassembly of section .text:
|
2013-01-31 20:12:40 +08:00
|
|
|
|
|
|
|
add x2, x3, #:lo12:some_label
|
2016-09-19 19:10:18 +08:00
|
|
|
// OBJ: [[addr:[0-9a-f]+]]: 62 00 00 91 add x2, x3, #0
|
|
|
|
// OBJ-NEXT: [[addr]]: R_AARCH64_ADD_ABS_LO12_NC some_label
|
|
|
|
|
|
|
|
add x2, x3, #:lo12:some_label, lsl #12
|
|
|
|
// OBJ: [[addr:[0-9a-f]+]]: 62 00 40 91 add x2, x3, #0, lsl #12
|
|
|
|
// OBJ-NEXT: [[addr]]: R_AARCH64_ADD_ABS_LO12_NC some_label
|
2013-01-31 20:12:40 +08:00
|
|
|
|