================ @@ -957,3 +957,6 @@ static_assert(fmaDouble1[0] == 5.0); static_assert(fmaDouble1[1] == 10.0); static_assert(fmaDouble1[2] == 17.0); static_assert(fmaDouble1[3] == 26.0); + +constexpr float fmaArray[] = {2.0f, 2.0f, 2.0f, 2.0f}; +constexpr float fmaResult = __builtin_elementwise_fma(fmaArray[1], fmaArray[2], fmaArray[3]); ---------------- ckoparkar wrote:
Should we also add a `static_assert(fmaResult == 6.0f)` here? https://github.com/llvm/llvm-project/pull/154941 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits