This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, rs6000, committed] Fix PR84365: gcc.target/powerpc/altivec-7-le.c fails on power9
- From: Peter Bergner <bergner at vnet dot ibm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Segher Boessenkool <segher at kernel dot crashing dot org>
- Date: Tue, 13 Feb 2018 16:10:03 -0600
- Subject: [PATCH, rs6000, committed] Fix PR84365: gcc.target/powerpc/altivec-7-le.c fails on power9
- Authentication-results: sourceware.org; auth=none
The following patch was approved offline by Segher to fix PR84365.
The problem is when compiling with -mcpu=power9, we don't generate
the LE unfriendly lxvd2x and instead emit an LE friendly lxv insn.
Peter
PR target/84365
* gcc.target/powerpc/altivec-7-le.c: Also match lxv when compiling
with -mcpu=power9.
Index: gcc/testsuite/gcc.target/powerpc/altivec-7-le.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/altivec-7-le.c (revision 257640)
+++ gcc/testsuite/gcc.target/powerpc/altivec-7-le.c (revision 257641)
@@ -22,7 +22,7 @@
/* { dg-final { scan-assembler-times "vpkpx" 2 } } */
/* { dg-final { scan-assembler-times "vmulesb" 1 } } */
/* { dg-final { scan-assembler-times "vmulosb" 1 } } */
-/* { dg-final { scan-assembler-times "lxvd2x" 36 } } */
+/* { dg-final { scan-assembler-times {\mlxvd2x\M|\mlxv\M} 36 } } */
/* { dg-final { scan-assembler-times "lvewx" 2 } } */
/* { dg-final { scan-assembler-times "lvxl" 1 } } */
/* { dg-final { scan-assembler-times "vupklsh" 1 } } */