1# RUN: not llvm-mc -arch=mips -mcpu=mips32r2 -mattr=+mips16 < %s 2> %t
2# RUN: FileCheck %s < %t
3
4# Instructions which are invalid.
5
6$label:
7  nop 4         # CHECK: :[[@LINE]]:7: error: invalid operand for instruction
8  nop $4        # CHECK: :[[@LINE]]:7: error: invalid operand for instruction
9  nop $label    # CHECK: :[[@LINE]]:7: error: invalid operand for instruction
10
11