[PATCH, testsuite] Fix ifcvt-4.c for PowerPC

Pat Haugen pthaugen@linux.vnet.ibm.com
Mon Mar 14 20:23:00 GMT 2016


As stated in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68232, this 
test needs -misel on powerpc to pass. Verified the following fixes the 
test on both powerpc64/powerpc64le. Ok for trunk?

-Pat

testsuite/ChangeLog:
2016-03-14  Pat Haugen  <pthaugen@us.ibm.com>

         * gcc.dg/ifcvt-4.c: Add -misel for powerpc* and remove skip for 
powerpc64le.


Index: testsuite/gcc.dg/ifcvt-4.c
===================================================================
--- testsuite/gcc.dg/ifcvt-4.c	(revision 234189)
+++ testsuite/gcc.dg/ifcvt-4.c	(working copy)
@@ -1,5 +1,6 @@
  /* { dg-options "-fdump-rtl-ce1 -O2 --param 
max-rtl-if-conversion-insns=3" } */
-/* { dg-skip-if "Multiple set if-conversion not guaranteed on all 
subtargets" { "arm*-*-* powerpc64le*-*-* visium-*-*" } {"*"} { "" } }  */
+/* { dg-additional-options "-misel" { target { powerpc*-*-* } } } */
+/* { dg-skip-if "Multiple set if-conversion not guaranteed on all 
subtargets" { "arm*-*-* visium-*-*" } {"*"} { "" } }  */

  int
  foo (int x, int y, int a)



More information about the Gcc-patches mailing list