mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
76a0f98726
Summary: This assembler directive is used in O32 PIC to restore the current function's $gp after executing JAL's. The $gp is first stored on the stack at a user-specified offset. It has the following format: ".cprestore 8" (where 8 is the offset). This fixes llvm.org/PR20967. Patch by Toma Tabacu. Reviewers: seanbruno, tomatabacu Subscribers: brooks, seanbruno, emaste, llvm-commits Differential Revision: http://reviews.llvm.org/D6267 llvm-svn: 247897
11 lines
227 B
ArmAsm
11 lines
227 B
ArmAsm
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -relocation-model=pic 2>%t1
|
|
# RUN: FileCheck %s < %t1
|
|
|
|
.text
|
|
.set noreorder
|
|
.cpload $25
|
|
.set reorder
|
|
|
|
jal $25
|
|
# CHECK: :[[@LINE-1]]:3: warning: no .cprestore used in PIC mode
|