================
@@ -2604,6 +2604,68 @@ static bool interp__builtin_elementwise_int_binop(
   return true;
 }
 
+static bool interp__builtin_x86_pack(
+    InterpState &S, CodePtr, const CallExpr *E, unsigned SrcBits, bool IsUnsat,
+    llvm::function_ref<APSInt(const APSInt &X, unsigned, unsigned, bool)>
+        narrowElement) {
----------------
RKSimon wrote:

why can't you just use the size of APSInt src to give you the SrcBits?

https://github.com/llvm/llvm-project/pull/156003
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to