================ @@ -7444,9 +7444,11 @@ isArithmeticArgumentPromotion(Sema &S, const ImplicitCastExpr *ICE) { From = VecTy->getElementType(); if (const auto *VecTy = To->getAs<ExtVectorType>()) To = VecTy->getElementType(); - // It's a floating promotion if the source type is a lower rank. - return ICE->getCastKind() == CK_FloatingCast && - S.Context.getFloatingTypeOrder(From, To) < 0; + // It's a floating promotion if the source type is float. + // [7.3.8p1][conv.fpprom] https://eel.is/c++draft/conv.fpprom ---------------- cor3ntin wrote:
We usually quote the relevant wording rather than adding links https://github.com/llvm/llvm-project/pull/78503 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits