Index: llvm/trunk/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp =================================================================== --- llvm/trunk/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp +++ llvm/trunk/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp @@ -581,6 +581,7 @@ case Match_MnemonicFail: return Error(IDLoc, "unrecognized instruction"); case Match_InvalidOperand: + case Match_InvalidTiedOperand: SMLoc ErrorLoc = IDLoc; if (ErrorInfo != ~0U) { if (ErrorInfo >= InstOperands.size()) Index: llvm/trunk/test/MC/Hexagon/tied-ops.s =================================================================== --- llvm/trunk/test/MC/Hexagon/tied-ops.s +++ llvm/trunk/test/MC/Hexagon/tied-ops.s @@ -0,0 +1,6 @@ +# RUN: llvm-mc -arch=hexagon -filetype=asm %s 2> %t; FileCheck %s < %t + +# Check that tied operands are caught + + { r0 = sub(##_start, asl(r1, #1)) } +# CHECK: error: invalid operand for instruction