================
@@ -2565,10 +2565,38 @@ static bool interp__builtin_elementwise_int_binop(
     return true;
   }
 
+  const auto *VT = Call->getArg(0)->getType()->castAs<VectorType>();
+  assert(VT->getElementType()->isIntegralOrEnumerationType());
+  PrimType ElemT = *S.getContext().classify(VT->getElementType());
+  unsigned NumElems = VT->getNumElements();
+
----------------
RKSimon wrote:

Add `bool DestUnsigned = 
Call->getType()->isUnsignedIntegerOrEnumerationType();` here and pull out of 
the code below

https://github.com/llvm/llvm-project/pull/155542
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to