xref: /minix3/external/bsd/llvm/dist/llvm/test/MC/Mips/cpsetup-bad.s (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc# RUN: not llvm-mc %s -triple mips64-unknown-unknown 2>%t1
2*0a6a1f1dSLionel Sambuc# RUN:   FileCheck %s < %t1 -check-prefix=ASM
3*0a6a1f1dSLionel Sambuc
4*0a6a1f1dSLionel Sambuc        .text
5*0a6a1f1dSLionel Sambuc        .option pic2
6*0a6a1f1dSLionel Sambuct1:
7*0a6a1f1dSLionel Sambuc        .cpsetup $bar, 8, __cerror
8*0a6a1f1dSLionel Sambuc# ASM: :[[@LINE-1]]:18: error: expected register containing function address
9*0a6a1f1dSLionel Sambuc        .cpsetup $33, 8, __cerror
10*0a6a1f1dSLionel Sambuc# ASM: :[[@LINE-1]]:18: error: invalid register
11*0a6a1f1dSLionel Sambuc        .cpsetup $31, foo, __cerror
12*0a6a1f1dSLionel Sambuc# ASM: :[[@LINE-1]]:23: error: expected save register or stack offset
13*0a6a1f1dSLionel Sambuc        .cpsetup $31, $32, __cerror
14*0a6a1f1dSLionel Sambuc# ASM: :[[@LINE-1]]:23: error: invalid register
15