[PATCH] D50592: Add check for tied operands
Sid Manning via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 13 07:02:14 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL339567: Check for tied operands (authored by sidneym, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D50592?vs=160212&id=160349#toc
Repository:
rL LLVM
https://reviews.llvm.org/D50592
Files:
llvm/trunk/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
llvm/trunk/test/MC/Hexagon/tied-ops.s
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
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())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50592.160349.patch
Type: text/x-patch
Size: 950 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180813/08a8ad67/attachment.bin>
More information about the llvm-commits
mailing list