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
15 lines
250 B
ArmAsm
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
|