[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / ppc64-reloc-addr.s
blobd7b0a3dc7c0fbdff7d22df860d5c9582abb6f8f7
1 # REQUIRES: ppc
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:
8 # HEXLE-NEXT: 10325476
9 # HEXBE-NEXT: 76543210
10 .section .R_PPC64_ADDR32,"a",@progbits
11 .long b
13 # CHECK-LABEL: <.R_PPC64_ADDR16_LO>:
14 # CHECK-NEXT: addi 4, 4, 12816
15 .section .R_PPC64_ADDR16_LO,"ax",@progbits
16 addi 4, 4, b@l
18 # CHECK-LABEL: <.R_PPC64_ADDR16_HI>:
19 # CHECK-NEXT: lis 4, 30292
20 .section .R_PPC64_ADDR16_HI,"ax",@progbits
21 lis 4, b@h
23 # CHECK-LABEL: <.R_PPC64_ADDR16_HA>:
24 # CHECK-NEXT: lis 4, 30292
25 .section .R_PPC64_ADDR16_HA,"ax",@progbits
26 lis 4, b@ha
28 # CHECK-LABEL: <.R_PPC64_ADDR16_HIGH>:
29 # CHECK-NEXT: lis 4, -30293
30 .section .R_PPC64_ADDR16_HIGH,"ax",@progbits
31 lis 4, a@high
33 # CHECK-LABEL: <.R_PPC64_ADDR16_HIGHER>:
34 # CHECK-NEXT: li 3, 17767
35 .section .R_PPC64_ADDR16_HIGHER,"ax",@progbits
36 li 3, a@higher
38 # CHECK-LABEL: <.R_PPC64_ADDR16_HIGHERA>:
39 # CHECK-NEXT: li 3, 17767
40 .section .R_PPC64_ADDR16_HIGHERA,"ax",@progbits
41 li 3, a@highera
43 # CHECK-LABEL: <.R_PPC64_ADDR16_HIGHEST>:
44 # CHECK-NEXT: li 3, 291
45 .section .R_PPC64_ADDR16_HIGHEST,"ax",@progbits
46 li 3, a@highest
48 # CHECK-LABEL: <.R_PPC64_ADDR16_HIGHESTA>:
49 # CHECK-NEXT: li 3, 291
50 .section .R_PPC64_ADDR16_HIGHESTA,"ax",@progbits
51 li 3, a@highesta