[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / ppc-reloc-copy.s
blob7e107065d5d76f240ebcb753745e60dda45d7215
1 # REQUIRES: ppc
2 # RUN: llvm-mc -filetype=obj -triple=powerpc %p/Inputs/relocation-copy.s -o %t1.32.o
3 # RUN: ld.lld -shared %t1.32.o -soname=so -o %t1.32.so
4 # RUN: llvm-mc -filetype=obj -triple=powerpc %s -o %t.32.o
5 # RUN: ld.lld %t.32.o %t1.32.so -o %t.32
6 # RUN: llvm-readobj -r %t.32 | FileCheck --check-prefix=REL32 %s
7 # RUN: llvm-nm -S %t.32 | FileCheck --check-prefix=NM32 %s
9 # RUN: llvm-mc -filetype=obj -triple=powerpc64 %p/Inputs/relocation-copy.s -o %t1.64.o
10 # RUN: ld.lld -shared %t1.64.o -soname=so -o %t1.64.so
11 # RUN: llvm-mc -filetype=obj -triple=powerpc64 %s -o %t.64.o
12 # RUN: ld.lld %t.64.o %t1.64.so -o %t.64
13 # RUN: llvm-readobj -r %t.64 | FileCheck --check-prefix=REL64 %s
14 # RUN: llvm-nm -S %t.64 | FileCheck --check-prefix=NM64 %s
16 # REL32: .rela.dyn {
17 # REL32-NEXT: 0x10030210 R_PPC_COPY x 0x0
18 # REL32-NEXT: }
20 # NM32: 10030210 00000004 B x
22 # REL64: .rela.dyn {
23 # REL64-NEXT: 0x10030360 R_PPC64_COPY x 0x0
24 # REL64-NEXT: }
26 # NM64: 0000000010030360 0000000000000004 B x
28 lis 3, x@ha
29 lwz 3, x@l(3)