This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19263] [3.4/4.0 regression]: wrong-code: explicit inicialization of v8qi miscompiled
- 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: 5 Jan 2005 14:48:29 -0000
- Subject: [Bug c++/19263] [3.4/4.0 regression]: wrong-code: explicit inicialization of v8qi miscompiled
- References: <20050105125215.19263.smelkov@mph1.phys.spbu.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-05 14:48 -------
Confirmed.
Here is the reduced testcase without any x86 builtins usage:
typedef signed char v8qi __attribute__ ((vector_size(8)));
extern "C" void abort(void);
static unsigned char S[8];
void do_subs(unsigned char v)
{
v8qi val8 = {v,v,v,v,v,v,v,v};
v8qi* s = (v8qi*)&S[0];
*s = val8;
}
int main()
{
int i;
do_subs(0x1);
for (i=0;i<8;++i)
if (S[i] != 0x01)
abort();
return 0;
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |wrong-code
Known to fail| |4.0.0
Known to work| |3.4.0
Last reconfirmed|0000-00-00 00:00:00 |2005-01-05 14:48:26
date| |
Summary|[g++-3.4.3 regression]: |[3.4/4.0 regression]: wrong-
|wrong-code: explicit |code: explicit
|inicialization of v8qi |inicialization of v8qi
|miscompiled |miscompiled
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19263