[PATCH] Allow casts of mixed-size same-arity vectors
hfinkel at anl.gov
Thu Sep 12 14:46:12 PDT 2013
----- Original Message -----
> On Sep 12, 2013, at 2:14 PM, Hal Finkel <hfinkel at anl.gov> wrote:
> > I've been thinking about constructing a patch to implement
> > __builtin_vectorconvert(type, value), do you think that is a
> > reasonable approach?
> It would be nice if what you come up with is capable of being
> extended to include rounding and saturation, like the OpenCL
> convert_* ops. Obviously that blows up the space enormously, so I
> wouldn’t expect anyone to do them all at once.
Do you have a recommended design? I could do something like this:
__builtin_vectorconvert(type, value, rnd = 0, sat = 0)
where the last two parameters are integers with default values specifying the rounding mode and a saturation parameter.
> – Steve
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory
More information about the cfe-commits