================
@@ -2520,6 +2525,45 @@ static bool interp__builtin_elementwise_fp_binop(
return true;
}
+static bool interp__builtin_scalar_fp_round_mask_binop(
+ InterpState &S, CodePtr OpPC, const CallExpr *Call,
+ llvm::function_ref<APFloat(const APFloat &, const APFloat &)> Fn) {
+ assert(Call->getNumArgs() == 5);
+ const auto *VT = Call->getArg(0)->getType()->castAs<VectorType>();
+ unsigned NumElems = VT->getNumElements();
+
+ APSInt Rounding = popToAPSInt(S, Call->getArg(4));
+ APSInt MaskVal = popToAPSInt(S, Call->getArg(3));
----------------
tbaederr wrote:
```suggestion
APSInt Rounding = popToUInt64(S, Call->getArg(4));
APSInt MaskVal = popToUInnt64(S, Call->getArg(3));
```
https://github.com/llvm/llvm-project/pull/178029
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits