Simon Dardis 54217598b6 [mips] Guard 'nop' properly and add mips16's nop instruction
Reviewers: smaksimovic, atanasyan, abeserminji

Differential Revision: https://reviews.llvm.org/D47583

llvm-svn: 333739
2018-06-01 10:46:00 +00:00

11 lines
375 B
ArmAsm

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