llvm-for-llvmta/test/MC/Mips/cpadd-bad.s

14 lines
559 B
ArmAsm
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
# 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