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/15191] New: -maltivec -mabi=no-altivec results in mis-aligned lvx and stvx


Compiling the following with -m64 -O1 -maltivec -mabi=no-altivec
results in misaligned lvx data accesses in bar.
-m32 -O1 -maltivec -mabi=no-altivec results in misaligned stvx data accesses in f.

#define vector __attribute__ ((vector_size (16)))
vector int v1;
extern void bar (int, vector int, vector int, vector int,
		 vector int, vector int);
void f (void)
{
  bar (2, v1, v1, v1, v1, v1);
}

void bar (int a, vector int b, vector int c, vector int d,
	  vector int e, vector int f)
{
  v1 = b + c + d + e + f;
}

-- 
           Summary: -maltivec -mabi=no-altivec results in mis-aligned lvx
                    and stvx
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amodra at bigpond dot net dot au
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc64-linux


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


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