This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/31334] Bad codegen for vector initializer with constants prop'd into a vector initializer
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Mar 2007 07:11:56 -0000
- Subject: [Bug target/31334] Bad codegen for vector initializer with constants prop'd into a vector initializer
- References: <bug-31334-8585@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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