[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / ppc32-reloc-addr.s
blob9b40bce77aec485595d61a7893ba5d189f6dd7cd
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
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
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
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
22 .section .R_PPC_ADDR24,"ax",@progbits
23 ba a
24 # CHECK-LABEL: section .R_PPC_ADDR24:
25 # CHECK: ba 0x1234
27 .section .R_PPC_ADDR32,"a",@progbits
28 .long a
29 .long b
30 # HEX-LABEL: section .R_PPC_ADDR32:
31 # HEX-NEXT: {{.*}} 00001234 000bcdef