[clang] [X86][Clang] Allow constexpr evaluation of F16C CVTPS2PH intrinsics (PR #162295)
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 26 09:54:34 PDT 2025
================
@@ -3002,6 +3002,91 @@ static bool interp__builtin_vec_set(InterpState &S, CodePtr OpPC,
return true;
}
+static bool interp__builtin_ia32_vcvtps2ph(InterpState &S, CodePtr OpPC,
+ const CallExpr *Call) {
+ // Arguments are: vector of floats, rounding immediate
----------------
RKSimon wrote:
Yes - the older F16C/AVX512 ps2ph builtins returned <X x i16> types to represent bitcast vectors of half floats, only the more recent variants moved to using <X x f16>
https://github.com/llvm/llvm-project/pull/162295
More information about the cfe-commits
mailing list