[clang] [Clang][x86]: allow PCLMULQDQ intrinsics to be used in constexpr (PR #169214)

Ahmed Nour via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 23 06:41:27 PST 2025


================
@@ -2786,8 +2785,8 @@ static bool interp__builtin_ia32_pclmulqdq(InterpState &S, CodePtr OpPC,
 
     // Perform carry-less multiplication (polynomial multiplication in GF(2^64))
     // This multiplies two 64-bit values to produce a 128-bit result
-    APInt AVal = A.getValue().zextOrTrunc(64);
-    APInt BVal = B.getValue().zextOrTrunc(64);
+    APInt AVal = A.extOrTrunc(64);
+    APInt BVal = B.extOrTrunc(64);
----------------
ahmednoursphinx wrote:

Great idea , updated it

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


More information about the cfe-commits mailing list