30 lines · plain
1# REQUIRES: ppc2# RUN: llvm-mc -filetype=obj -triple=powerpc %p/Inputs/relocation-copy.s -o %t1.32.o3# RUN: ld.lld -shared %t1.32.o -soname=so -o %t1.32.so4# RUN: llvm-mc -filetype=obj -triple=powerpc %s -o %t.32.o5# RUN: ld.lld %t.32.o %t1.32.so -o %t.326# RUN: llvm-readobj -r %t.32 | FileCheck --check-prefix=REL32 %s7# RUN: llvm-nm -S %t.32 | FileCheck --check-prefix=NM32 %s8 9# RUN: llvm-mc -filetype=obj -triple=powerpc64 %p/Inputs/relocation-copy.s -o %t1.64.o10# RUN: ld.lld -shared %t1.64.o -soname=so -o %t1.64.so11# RUN: llvm-mc -filetype=obj -triple=powerpc64 %s -o %t.64.o12# RUN: ld.lld %t.64.o %t1.64.so -o %t.6413# RUN: llvm-readobj -r %t.64 | FileCheck --check-prefix=REL64 %s14# RUN: llvm-nm -S %t.64 | FileCheck --check-prefix=NM64 %s15 16# REL32: .rela.dyn {17# REL32-NEXT: 0x10030210 R_PPC_COPY x 0x018# REL32-NEXT: }19 20# NM32: 10030210 00000004 B x21 22# REL64: .rela.dyn {23# REL64-NEXT: 0x10030360 R_PPC64_COPY x 0x024# REL64-NEXT: }25 26# NM64: 0000000010030360 0000000000000004 B x27 28lis 3, x@ha29lwz 3, x@l(3)30