Displaying 2 results from an estimated 2 matches for "d54749".
Did you mean:
d54747
2020 Aug 07
4
Saturating float-to-int casts
...re is no intrinsic to do this, currently, but on IRC it
was pointed out that a patch [1] has been proposed to implement this
functionality in exactly the way that I was looking for.
It looks like the discussion has died out but I was hoping maybe to
kick it off again.
[1] https://reviews.llvm.org/D54749
--
- DML • he/him
2018 Nov 05
5
Safe fptoui/fptosi casts
I would be interested in learning what the set of used semantics for
float-to-int conversion is. If the only two used are 1) undefined behavior
if unrepresentable and 2) saturate to int_{min,max} with NaN going to zero,
then I think it makes sense to expose both of those natively in the IR. If
the set is much larger, I think separate intrinsics for each behavior would
make sense. It would be nice