21 lines · plain
1// REQUIRES: ppc2 3// RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o4// RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %p/Inputs/shared-ppc64.s -o %t2.o5// RUN: ld.lld -shared %t2.o -o %t2.so6// RUN: not ld.lld %t.o %t2.so -o /dev/null 2>&1 | FileCheck %s7 8// RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o9// RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %p/Inputs/shared-ppc64.s -o %t2.o10// RUN: ld.lld -shared %t2.o -o %t2.so11// RUN: not ld.lld %t.o %t2.so -o /dev/null 2>&1 | FileCheck %s12 13# Calling external function bar needs a nop14// CHECK: call to foo lacks nop, can't restore toc15 .text16 .abiversion 217 18.global _start19_start:20 bl foo21