1# REQUIRES: ppc 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 6 7.section .R_PPC_ADDR16_HA,"ax",@progbits 8 lis 4, a@ha 9# CHECK-LABEL: section .R_PPC_ADDR16_HA: 10# CHECK: lis 4, 0 11 12.section .R_PPC_ADDR16_HI,"ax",@progbits 13 lis 4, a@h 14# CHECK-LABEL: section .R_PPC_ADDR16_HI: 15# CHECK: lis 4, 0 16 17.section .R_PPC_ADDR16_LO,"ax",@progbits 18 addi 4, 4, a@l 19# CHECK-LABEL: section .R_PPC_ADDR16_LO: 20# CHECK: addi 4, 4, 4660 21 22.section .R_PPC_ADDR32,"a",@progbits 23 .long a 24 .long b 25# HEX-LABEL: section .R_PPC_ADDR32: 26# HEX-NEXT: 100000b4 00001234 000bcdef 27