mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
01b3e42958
This directive inserts code to add $gp to the argument's register when support for position independent code is enabled. For example, this code: .cpadd $4 expands to: addu $4, $4, $gp
14 lines
559 B
ArmAsm
14 lines
559 B
ArmAsm
# RUN: not llvm-mc -triple=mips-unknown-linux-gnu %s 2>&1 | FileCheck %s
|
|
# RUN: not llvm-mc -triple=mips64-unknown-linux-gnuabin32 %s 2>&1 | FileCheck %s
|
|
# RUN: not llvm-mc -triple=mips64-unknown-linux-gnu %s 2>&1 | FileCheck %s
|
|
|
|
.text
|
|
.cpadd $32
|
|
# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid register
|
|
.cpadd $foo
|
|
# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: expected register
|
|
.cpadd bar
|
|
# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: expected register
|
|
.cpadd $25 foobar
|
|
# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: unexpected token, expected end of statement
|