]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR rtl-optimization/69942 (gcc.dg/ifcvt-5.c FAILs)
authorJeff Law <law@redhat.com>
Thu, 3 Mar 2016 00:11:03 +0000 (17:11 -0700)
committerJeff Law <law@gcc.gnu.org>
Thu, 3 Mar 2016 00:11:03 +0000 (17:11 -0700)
PR rtl-optimization/69942
* gcc.dg/ifcvt-5.c: Use "word_mode" rather than "int" to limit the
effects of argument promotions.

From-SVN: r233922

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

index 05c4e9530876ac0c1fad5977bac5b6f3fd3c40d3..39fdb64a27aa3b9e42e9c752180c0c4cce38400b 100644 (file)
@@ -1,5 +1,9 @@
 2016-03-02  Jeff Law  <law@redhat.com>
 
+       PR rtl-optimization/69942
+       * gcc.dg/ifcvt-5.c: Use "word_mode" rather than "int" to limit the
+       effects of argument promotions.
+
        PR tree-optimization/69987
        * gfortran.dg/pr69987.f90: Use "-w" to avoid failures when the
        target does not support -fprefetch-loop-arrays.
index 0b73e54473ae066d9771a087e30295e6fc7d6c29..818099a0c44076d750f02c19e294355a8a9659ba 100644 (file)
@@ -2,11 +2,14 @@
    parameter would not allow it.  */
 
 /* { dg-options "-fdump-rtl-ce1 -O2 --param max-rtl-if-conversion-insns=1" } */
-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;
   if (x > y)
     {
       i = a;