public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/40049]  New: Incorrect tree made for vector shifted by constant on powerpc, spu
@ 2009-05-06 19:06 meissner at linux dot vnet dot ibm dot com
  2009-05-06 19:09 ` [Bug tree-optimization/40049] " meissner at linux dot vnet dot ibm dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: meissner at linux dot vnet dot ibm dot com @ 2009-05-06 19:06 UTC (permalink / raw)
  To: gcc-bugs

On machines with only a vector/vector shift like the powerpc and spu, the wrong
type is generated for the tree vector that is created with the constant
splat'ed to fill the vector.  The problem is the code uses
get_vectype_for_scalar_type, and integer constants don't have a type.  So
get_vectype_for_scalar_type returns V4SI, even if the vector in question is
V8HI or V16QI.  Before the added type validation was added on April 27th, this
appeared to work because nothing looked at the type field.  With the current
code, this can lead to incorrect code being generated, and for larger programs
the compiler will die due to garbage collection failure.


-- 
           Summary: Incorrect tree made for vector shifted by constant on
                    powerpc, spu
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: meissner at linux dot vnet dot ibm dot com
 GCC build triplet: powerpc64-unknown-linux-gnu
  GCC host triplet: powerpc64-unknown-linux-gnu
GCC target triplet: powerpc64-unknown-linux-gnu


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


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

end of thread, other threads:[~2009-05-12 22:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-06 19:06 [Bug tree-optimization/40049] New: Incorrect tree made for vector shifted by constant on powerpc, spu meissner at linux dot vnet dot ibm dot com
2009-05-06 19:09 ` [Bug tree-optimization/40049] " meissner at linux dot vnet dot ibm dot com
2009-05-06 19:20 ` meissner at linux dot vnet dot ibm dot com
2009-05-06 19:21 ` rguenth at gcc dot gnu dot org
2009-05-06 19:23 ` rguenth at gcc dot gnu dot org
2009-05-06 19:36 ` meissner at linux dot vnet dot ibm dot com
2009-05-06 20:00 ` meissner at linux dot vnet dot ibm dot com
2009-05-06 20:16 ` rguenth at gcc dot gnu dot org
2009-05-07 21:19 ` meissner at gcc dot gnu dot org
2009-05-07 21:33 ` meissner at linux dot vnet dot ibm dot com
2009-05-08 22:39 ` meissner at gcc dot gnu dot org
2009-05-12 22:21 ` bje 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).