This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/34529] New: Wrong code with altivec and offsets
- 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: 19 Dec 2007 00:23:06 -0000
- Subject: [Bug rtl-optimization/34529] New: Wrong code with altivec and offsets
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Testcase:
vector float b[560560];
vector float c[560560];
void f(void);
vector float Mult(vector float a)
{
b[560560/16] = a;
asm
("":::"memory","0","3","4","5","6","7","8","9","10","11","12","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29");
b[560560/16] = a;
}
---- CUT ----
We get:
lis 9,0x8
ori 9,9,36272
add 9,9,9
stvx 0,0,9
Which is obviously wrong.
--
Summary: Wrong code with altivec and offsets
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: powerpc64-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34529