public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/17961] New: ICE for operation on small vector with altivec enabled
@ 2004-10-12 23:41 janis187 at us dot ibm dot com
  2004-10-14 13:34 ` [Bug middle-end/17961] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: janis187 at us dot ibm dot com @ 2004-10-12 23:41 UTC (permalink / raw)
  To: gcc-bugs

This test case causes two different internal compiler errors in GCC when
compiled with "-m32 -maltivec", with VECSIZE either 2 or 8:
                                                                                
  __attribute__ ((vector_size (VECSIZE))) unsigned char v1, v2, v3;
  void vxor (void) { v1 = v2 ^ v3; }
                                                                                
Using a cross compiler on i686-linux with today's mainline:
                                                                                
laptop% $XGCC -m32 -maltivec -DVECSIZE=2 -c bug2.c
bug2.c: In function 'vxor':
bug2.c:9: internal compiler error: in operand_subword_force, at
/emit-rtl.c:1384Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
                                                                                
laptop% $XGCC -m32 -maltivec -DVECSIZE=8 -c bug2.c
bug2.c: In function 'vxor':
bug2.c:10: internal compiler error: in simplify_subreg, at /simplify-rtx.c:3572
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

There is no ICE when VECSIZE is 4.  Hardware-supported AltiVec vectors
are 16 bytes, so all of these are smaller than hardware-supported
vectors.  The larger testcase compiles and runs as expected when hardware
vector support is not enabled.

-- 
           Summary: ICE for operation on small vector with altivec enabled
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janis187 at us dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17961


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-07-08 19:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-12 23:41 [Bug c/17961] New: ICE for operation on small vector with altivec enabled janis187 at us dot ibm dot com
2004-10-14 13:34 ` [Bug middle-end/17961] " pinskia at gcc dot gnu dot org
2004-10-14 13:37 ` pinskia at gcc dot gnu dot org
2004-11-01  2:48 ` belyshev at lubercy dot com
2004-11-01  3:03 ` belyshev at lubercy dot com
2005-02-01  0:10 ` pinskia at gcc dot gnu dot org
2005-02-01  1:51 ` janis at gcc dot gnu dot org
2005-04-16 22:54 ` pinskia at gcc dot gnu dot org
2005-06-09 12:03 ` aldyh at gcc dot gnu dot org
2005-06-10 17:04 ` cvs-commit at gcc dot gnu dot org
2005-06-10 17:06 ` aldyh at gcc dot gnu dot org
2005-06-14 19:40 ` pinskia at gcc dot gnu dot org
2005-07-08 19:35 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).