[rs6000,committed] Fix PR84390: test case gcc.target/powerpc/vsxcopy.c fails for gcc 7 and gcc 6 on power9

Message ID 46e248f4-68f8-5b1c-6aa8-6c2d4ffd64d8@vnet.ibm.com
State New
Headers show
Series
  • [rs6000,committed] Fix PR84390: test case gcc.target/powerpc/vsxcopy.c fails for gcc 7 and gcc 6 on power9
Related show

Commit Message

Peter Bergner Feb. 14, 2018, 8:23 p.m.
This had already been fixed on trunk and just needed back porting to the
release branches.  Committed as obvious.

Peter

	PR target/84390
	* gcc.target/powerpc/vsxcopy.c: Also match lxv when compiling
	with -mcpu=power9.

Patch

Index: gcc/testsuite/gcc.target/powerpc/vsxcopy.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/vsxcopy.c	(revision 257670)
+++ gcc/testsuite/gcc.target/powerpc/vsxcopy.c	(revision 257671)
@@ -1,8 +1,8 @@ 
 /* { dg-do compile { target { powerpc64*-*-* } } } */
 /* { dg-require-effective-target powerpc_vsx_ok } */
 /* { dg-options "-O1 -mvsx" } */
-/* { dg-final { scan-assembler "lxvd2x" } } */
-/* { dg-final { scan-assembler "stxvd2x" } } */
+/* { dg-final { scan-assembler {\mlxvd2x\M|\mlxv\M} } } */
+/* { dg-final { scan-assembler {\mstxvd2x\M|\mstxv\M} } } */
 /* { dg-final { scan-assembler-not "xxpermdi" } } */
 
 typedef float vecf __attribute__ ((vector_size (16)));