xref: /aosp_15_r20/external/llvm/test/MC/Mips/macro-bcc-imm-bad.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r2 2>&1 | \
2*9880d681SAndroid Build Coastguard Worker# RUN:     FileCheck %s --check-prefix=ALL
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker    .text
5*9880d681SAndroid Build Coastguard Worker    .set noat
6*9880d681SAndroid Build Coastguard Workerfoo:
7*9880d681SAndroid Build Coastguard Worker    blt $a2, 16, foo # ALL: :[[@LINE]]:5: error: pseudo-instruction requires $at, which is not available
8*9880d681SAndroid Build Coastguard Worker    .set at
9*9880d681SAndroid Build Coastguard Worker    .set noreorder
10*9880d681SAndroid Build Coastguard Worker    .set nomacro
11*9880d681SAndroid Build Coastguard Worker    blt $a2, 16, foo # ALL: :[[@LINE]]:5: warning: macro instruction expanded into multiple instructions
12*9880d681SAndroid Build Coastguard Worker                     # ALL-NOT: :[[@LINE-1]]:5: warning: macro instruction expanded into multiple instructions
13