Fix gcc.dg/ifcvt-4.c on 64-bit SPARC (PR rtl-optimization/68749)
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 13 Apr 2016 18:13:31 +0000 (18:13 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Wed, 13 Apr 2016 18:13:31 +0000 (18:13 +0000)
PR rtl-optimization/68749
* gcc.dg/ifcvt-4.c: Use "word_mode" rather than "int" to limit the
effects of argument promotions.
Remove default args to dg-skip-if.

From-SVN: r234955

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ifcvt-4.c

index b16fadcbf360d55897d33b70aa91e0a507fe579f..0987349f8a948794772cd27c251228abc17dfb22 100644 (file)
@@ -1,3 +1,10 @@
+2016-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       PR rtl-optimization/68749
+       * gcc.dg/ifcvt-4.c: Use "word_mode" rather than "int" to limit the
+       effects of argument promotions.
+       Remove default args to dg-skip-if.
+
 2016-04-13  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/70635
index d0d131b9ad856c485a551baf9db730d3203adba6..319b583e4e2ddc61f107230adae1927144a522ee 100644 (file)
@@ -1,12 +1,14 @@
 /* { dg-options "-fdump-rtl-ce1 -O2 --param max-rtl-if-conversion-insns=3" } */
 /* { dg-additional-options "-misel" { target { powerpc*-*-* } } } */
-/* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* hppa*64*-*-* visium-*-*" } {"*"} { "" } }  */
+/* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* hppa*64*-*-* visium-*-*" } }  */
 
-int
-foo (int x, int y, int a)
+typedef int word __attribute__((mode(word)));
+
+word
+foo (word x, word y, word a)
 {
-  int i = x;
-  int j = y;
+  word i = x;
+  word j = y;
   /* Try to make taking the branch likely.  */
   __builtin_expect (x > y, 1);
   if (x > y)