This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Consider int and same-size short as equivalent vector components


On Mon, 26 Aug 2013, Joern Rennecke wrote:

Quoting Marc Glisse <marc.glisse@inria.fr>:

The issue seems larger than just short/int. On x86, (l<l)<l fails to
compile for a vector of long, with l<l that has opaque type vector of
int, that seems wrong.

I don't understand what you mean here. Could you post the actual code sample?

typedef long vl __attribute__((vector_size(16)));

void f(vl l){
  (l<l)<l;
}

it compiles fine on x86_64 but not on x86.
(btw, my sentence was ambiguous, what I find wrong is the failure to compile, not the type of l<l)

--
Marc Glisse


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]