Files
clang-p2996/lld/test/ELF/Inputs/ppc64-func.s
Zaara Syeda 25b488b0ea [PPC64] Fix toc restore nops offset for V2 ABI
The PPC64 V2 ABI restores the toc base by loading from an offset of 24 from r1.
This patch fixes the offset and updates the testcases from V1 to V2. It also
issues an error when a nop is missing after a call to an external function.

Differential Revision: https://reviews.llvm.org/D45892

llvm-svn: 330600
2018-04-23 15:01:24 +00:00

15 lines
250 B
ArmAsm

.text
.abiversion 2
.globl foo_not_shared
.p2align 4
.type foo_not_shared,@function
foo_not_shared:
.Lfunc_begin0:
li 3, 55
blr
.long 0
.quad 0
.Lfunc_end0:
.size foo_not_shared, .Lfunc_end0-.Lfunc_begin0