2 # RUN: llvm-mc -filetype=obj -triple=ppc64le %s -o %t.o
3 # RUN: ld.lld %t.o --defsym=a=0x0123456789abcdef --defsym=b=0x76543210 -o %t
4 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s
5 # RUN: llvm-objdump -s --no-show-raw-insn %t | FileCheck --check-prefixes=HEX,HEXLE %s
7 # HEX-LABEL: section .R_PPC64_ADDR32:
10 .section .R_PPC64_ADDR32,"a",@progbits
13 # CHECK-LABEL: <.R_PPC64_ADDR16_LO>:
14 # CHECK-NEXT: addi 4, 4, 12816
15 .section .R_PPC64_ADDR16_LO,"ax",@progbits
18 # CHECK-LABEL: <.R_PPC64_ADDR16_HI>:
19 # CHECK-NEXT: lis 4, 30292
20 .section .R_PPC64_ADDR16_HI,"ax",@progbits
23 # CHECK-LABEL: <.R_PPC64_ADDR16_HA>:
24 # CHECK-NEXT: lis 4, 30292
25 .section .R_PPC64_ADDR16_HA,"ax",@progbits
28 # CHECK-LABEL: <.R_PPC64_ADDR16_HIGH>:
29 # CHECK-NEXT: lis 4, -30293
30 .section .R_PPC64_ADDR16_HIGH,"ax",@progbits
33 # CHECK-LABEL: <.R_PPC64_ADDR16_HIGHER>:
34 # CHECK-NEXT: li 3, 17767
35 .section .R_PPC64_ADDR16_HIGHER,"ax",@progbits
38 # CHECK-LABEL: <.R_PPC64_ADDR16_HIGHERA>:
39 # CHECK-NEXT: li 3, 17767
40 .section .R_PPC64_ADDR16_HIGHERA,"ax",@progbits
43 # CHECK-LABEL: <.R_PPC64_ADDR16_HIGHEST>:
44 # CHECK-NEXT: li 3, 291
45 .section .R_PPC64_ADDR16_HIGHEST,"ax",@progbits
48 # CHECK-LABEL: <.R_PPC64_ADDR16_HIGHESTA>:
49 # CHECK-NEXT: li 3, 291
50 .section .R_PPC64_ADDR16_HIGHESTA,"ax",@progbits