[Hexagon] Reapply r239097 with tests corrected for shuffling and duplexing.
[oota-llvm.git] / lib / Target / Hexagon / HexagonInstrFormatsV4.td
index 7f7b2c96dba72789a5c21ead997dd6baa4c23084..db83ef6bc474ca76dc94d68791c548f9d6e0bd6d 100644 (file)
@@ -146,6 +146,11 @@ class EXTENDERInst<dag outs, dag ins, string asmstr, list<dag> pattern = []>
   : InstHexagon<outs, ins, asmstr, pattern, "", EXTENDER_tc_1_SLOT0123,
                 TypePREFIX>, OpcodeHexagon;
 
+class SUBInst<dag outs, dag ins, string asmstr, list<dag> pattern = [],
+              string cstr = "">
+  : InstHexagon<outs, ins, asmstr, pattern, "", PREFIX, TypeDUPLEX>,
+    OpcodeHexagon;
+
 class CJInst<dag outs, dag ins, string asmstr, list<dag> pattern = [],
               string cstr = "">
   : InstHexagon<outs, ins, asmstr, pattern, cstr, COMPOUND, TypeCOMPOUND>,