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]

[Bug target/31334] Bad codegen for vector initializer with constants prop'd into a vector initializer



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-03-25 09:11 -------
Here is a reduced testcase which shows the same issue:
#define vector __attribute__((__vector_size__(16) ))
vector int f()
{
  int t = 4;
  return (vector int){t,t,t,t};
}
vector int f1()
{
  return (vector int){4,4,4,4};
}


----------------- cut -----------------
These above functions should have the same code gen but they don't.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Bad codegen for vectorized  |Bad codegen for vector
                   |induction with altivec      |initializer with constants
                   |                            |prop'd into a vector
                   |                            |initializer


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


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