1// REQUIRES: ppc 2 3// RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o 4// RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %p/Inputs/shared-ppc64.s -o %t2.o 5// RUN: ld.lld -shared %t2.o -o %t2.so 6// RUN: not ld.lld %t.o %t2.so -o /dev/null 2>&1 | FileCheck %s 7 8// RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o 9// RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %p/Inputs/shared-ppc64.s -o %t2.o 10// RUN: ld.lld -shared %t2.o -o %t2.so 11// RUN: not ld.lld %t.o %t2.so -o /dev/null 2>&1 | FileCheck %s 12 13# Calling external function bar needs a nop 14// CHECK: call to foo lacks nop, can't restore toc 15 .text 16 .abiversion 2 17 18.global _start 19_start: 20 bl foo 21