llvm-mirror/test/MC/Mips/cprestore-warning-unused.s
Rafael Espindola 6da3617e7f Don't pass a Reloc::Model to MC.
MC only needs to know if the output is PIC or not. It never has to
decide about creating GOTs and PLTs for example. The only thing that
MC itself uses this information for is expanding "macros" in sparc and
mips. The rest I am pretty sure could be moved to CodeGen.

This is a cleanup and isolates the code from future changes to
Reloc::Model.

llvm-svn: 269909
2016-05-18 11:58:50 +00:00

11 lines
228 B
ArmAsm

# RUN: llvm-mc %s -arch=mips -mcpu=mips32 --position-independent 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