https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78084

            Bug ID: 78084
           Summary: gcc miscompiles vec_vsx_ld on -O3
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lu_zero at gentoo dot org
  Target Milestone: ---
              Host: powerpc64le-linux-gnu
            Target: powerpc64le-linux-gnu

Created attachment 39872
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39872&action=edit
testcase

The value is the same as vec_ld even for unaligned pointers.

To reproduce:

gcc -std=c99 -mvsx -maltivec testcase.c && ./a.out
gcc -std=c99 -O3 -mvsx -maltivec testcase.c && ./a.out

Tested with gcc (Ubuntu/IBM 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609

I'll try to gcc-6 on Gentoo later.

Reply via email to