On Thu, Sep 12, 2002 at 10:36:29AM +0100, Nick Clifton wrote:
We have a request from a customer to implement support for a single
element vectors in gcc for one of their processors. Their ABI
requires that vectors are handled differently from ordinary types,
and it includes a single element, 64-bit vector which GCC would
normally consider to be exactly equivalent to a long long.
Oh heavens.
If so, they would like to know why single element vectors should not
be supported.
What possible usefulness could they have? Semantically they
are exactly the same as a scalar. To my way of thinking,
that they want this shows that they are confused and making
distinctions that don't make sense.
What ramifications does it have and what would supporting them break ?
Nothing but cleanliness of the compiler.
I think there are cases in which a single element vector data type are
required. While from a logical point of view single element vectors
are the same as scalars, however the compiler needs to have a way to
distinguish the fact that its a scalar from a vector.