[rs6000] PR89732: New test pr87532-mc.c fails on compiler not defaulting to VSX
diff mbox series

Message ID 673f02a1-09ee-412c-e87a-eaaa2c5a7100@linux.ibm.com
State New
Headers show
Series
  • [rs6000] PR89732: New test pr87532-mc.c fails on compiler not defaulting to VSX
Related show

Commit Message

Kelvin Nilsen March 19, 2019, 2:06 p.m. UTC
A recently added test was observed to fail when compiled without the -mvsx option.  This patch adds -mvsx to the dg-options directive.

Was boostrapped and regression tested on powerpc-linux (P7 big-endian, both -m32 and -m64).

Was preapproved by segher@gcc.gnu.org and has been merged with trunk.

gcc/testsuite/ChangeLog:

2019-03-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>

	PR target/89736
	* gcc.target/powerpc/pr87532-mc.c: Modify dejagnu directives to
	restrict this test to vsx targets.

Patch
diff mbox series

Index: gcc/testsuite/gcc.target/powerpc/pr87532-mc.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/pr87532-mc.c	(revision 269782)
+++ gcc/testsuite/gcc.target/powerpc/pr87532-mc.c	(working copy)
@@ -1,8 +1,8 @@ 
 /* { dg-do run { target int128 } } */
-/* { dg-require-effective-target vmx_hw } */
-/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target vsx_hw } */
+/* { dg-options "-mvsx -O2" } */
 
-/* This test should run the same on any target that supports altivec/dfp
+/* This test should run the same on any target that supports vsx
    instructions.  Intentionally not specifying cpu in order to test
    all code generation paths.  */