[clang] [X86][Clang] Allow constexpr evaluation of F16C CVTPS2PH intrinsics (PR #162295)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 7 08:01:19 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
----------------
tbaederr wrote:

The input vector is of floats, but the output vector is of integers?

https://github.com/llvm/llvm-project/pull/162295


More information about the cfe-commits mailing list