[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / ppc32-reloc-rel.s
blobd13ebdb7997f7c37f456d5b8d26d3b7f165bae8f
1 # REQUIRES: ppc
2 # RUN: llvm-mc -filetype=obj -triple=powerpc %s -o %t.be.o
3 # RUN: ld.lld %t.be.o -o %t
4 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s
6 # RUN: llvm-mc -filetype=obj -triple=powerpcle %s -o %t.le.o
7 # RUN: ld.lld %t.le.o -o %t
8 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s
9 # RUN: llvm-objdump -s %t | FileCheck %s --check-prefix=HEX
11 .section .R_PPC_REL14,"ax",@progbits
12 beq 1f
14 # CHECK-LABEL: section .R_PPC_REL14:
15 # CHECK: 100100f4: bt 2, 0x100100f8
17 .section .R_PPC_REL24,"ax",@progbits
18 b 1f
20 # CHECK-LABEL: section .R_PPC_REL24:
21 # CHECK: b 0x100100fc
23 .section .R_PPC_REL32,"ax",@progbits
24 .long 1f - .
26 # HEX-LABEL: section .R_PPC_REL32:
27 # HEX-NEXT: 04000000
29 .section .R_PPC_PLTREL24,"ax",@progbits
30 b 1f@PLT+32768
32 # CHECK-LABEL: section .R_PPC_PLTREL24:
33 # CHECK: b 0x10010104
35 .section .R_PPC_LOCAL24PC,"ax",@progbits
36 b 1f@local
38 # CHECK-LABEL: section .R_PPC_LOCAL24PC:
39 # CHECK: b 0x10010108