[Hexagon] Adding XTYPE/COMPLEX instructions and cleaning up tests.
[oota-llvm.git] / lib / Target / Hexagon / HexagonInstrInfoV5.td
index b2d87cd98593c0a2866e3f679aa90ecf2f9d7bc1..39c62441bf8fcba5d60a32acda91ad51918536fe 100644 (file)
@@ -765,6 +765,12 @@ def S5_asrhub_rnd_sat_goodsyntax
   : SInst <(outs IntRegs:$Rd), (ins DoubleRegs:$Rss, u4Imm:$u4),
   "$Rd = vasrhub($Rss, #$u4):rnd:sat">, Requires<[HasV5T]>;
 
+// Complex multiply 32x16
+let Defs = [USR_OVF], Itinerary = S_3op_tc_3x_SLOT23, isCodeGenOnly = 0 in {
+  def M4_cmpyi_whc : T_S3op_8<"cmpyiwh", 0b101, 1, 1, 1, 1>;
+  def M4_cmpyr_whc : T_S3op_8<"cmpyrwh", 0b111, 1, 1, 1, 1>;
+}
+
 // Classify floating-point value
 let isFP = 1, isCodeGenOnly = 0 in
  def F2_sfclass : T_TEST_BIT_IMM<"sfclass", 0b111>;