xref: /llvm-project/llvm/test/MC/Mips/micromips-dsp/invalid-wrong-error.s (revision cd6be960cead10b9d8c68686487f92418232c1a5)
1252cca55SZlatko Buljan# Instructions that are correctly rejected but emit a wrong or misleading error.
2252cca55SZlatko Buljan# RUN: not llvm-mc %s -triple=mips-unknown-linux -show-encoding -mcpu=mips32r6 -mattr=micromips -mattr=+dsp 2>%t1
3252cca55SZlatko Buljan# RUN: FileCheck %s < %t1
4252cca55SZlatko Buljan
5252cca55SZlatko Buljan  .set noat
6252cca55SZlatko Buljan  wrdsp $5, 128            # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
7*cd6be960SSander de Smalen  wrdsp $5, -1             # CHECK: :[[@LINE]]:13: error: expected 7-bit unsigned immediate
8