================ @@ -1088,6 +1088,27 @@ def G_FNEARBYINT : GenericInstruction { let hasSideEffects = false; } +/// Floating point vector dot product +def G_FDOTPROD : GenericInstruction { + let OutOperandList = (outs type0:$dst); + let InOperandList = (ins type0:$src1, type0:$src2); + let hasSideEffects = false; ---------------- tschuett wrote:
dot products take two vectors and return a scalar. ``` f G_FDOTPROD : GenericInstruction { let OutOperandList = (outs type0:$dst); let InOperandList = (ins type1:$src1, type1:$src2); let hasSideEffects = false; ``` You have to change the sources to type1 and adapt your legalizer accordingly. https://github.com/llvm/llvm-project/pull/102872 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits