2 # RUN: llvm-mc -filetype=obj -triple=powerpc %s -o %t.o
3 # RUN: ld.lld %t.o --defsym=a=0x1234 --defsym=b=0xbcdef -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-prefix=HEX %s
7 .section .R_PPC_ADDR16_HA,"ax",@progbits
9 # CHECK-LABEL: section .R_PPC_ADDR16_HA:
12 .section .R_PPC_ADDR16_HI,"ax",@progbits
14 # CHECK-LABEL: section .R_PPC_ADDR16_HI:
17 .section .R_PPC_ADDR16_LO,"ax",@progbits
19 # CHECK-LABEL: section .R_PPC_ADDR16_LO:
20 # CHECK: addi 4, 4, 4660
22 .section .R_PPC_ADDR24,"ax",@progbits
24 # CHECK-LABEL: section .R_PPC_ADDR24:
27 .section .R_PPC_ADDR32,"a",@progbits
30 # HEX-LABEL: section .R_PPC_ADDR32:
31 # HEX-NEXT: {{.*}} 00001234 000bcdef