================
@@ -16287,6 +16287,42 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const
CallExpr *E,
return Success((A | B) == 0, E);
}
+ case clang::X86::BI__builtin_ia32_kunpckhi: {
+ APSInt A, B;
+ if (!EvaluateInteger(E->getArg(0), A, Info) ||
+ !EvaluateInteger(E->getArg(1), B, Info))
+ return false;
+
+ // Extract lower 8 bits of each operand and concatenate
+ // Result = (A[7:0] << 8) | B[7:0]
+ APSInt Result = ((A & 0xFF) << 8) | (B & 0xFF);
----------------
ahmednoursphinx wrote:
thanks updated
https://github.com/llvm/llvm-project/pull/167683
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits