This is the mail archive of the gcc-bugs@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: SSE types and structures


> On Tue, Jun 18, 2002 at 05:03:59PM +0200, Jan Hubicka wrote:
> > int i;
> > __v8qi q;
> >   q = (__v8qi) (long long) i;
> [...]
> > q.c:9: error: can't convert between vector values of different size
> 
> This must be a bug in Aldy's generic vector code.

I am just looking into this.  The problem seems to be that chained casts
are simplified into single cast.  During this folding, the convert is
called again, now with incorrect values.

I am not quite sure how to go off here.  When I change code to generate
the nested casts for such situations, I end up in infinite recursion,
when I change code to allow the conversion, I die later in convert_move
where I guess I can't handle this properly anymore as the signedness bit
is lost, but I am investigating.

Honza
> 
> 
> r~


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