From: Jeff Law Date: Thu, 3 Mar 2016 00:11:03 +0000 (-0700) Subject: re PR rtl-optimization/69942 (gcc.dg/ifcvt-5.c FAILs) X-Git-Tag: basepoints/gcc-7~619 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=815f20ab25ad1e185e41f44f8cd3f6ea6074e9e5;p=thirdparty%2Fgcc.git re PR rtl-optimization/69942 (gcc.dg/ifcvt-5.c FAILs) 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 05c4e9530876..39fdb64a27aa 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2016-03-02 Jeff Law + 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. diff --git a/gcc/testsuite/gcc.dg/ifcvt-5.c b/gcc/testsuite/gcc.dg/ifcvt-5.c index 0b73e54473ae..818099a0c440 100644 --- a/gcc/testsuite/gcc.dg/ifcvt-5.c +++ b/gcc/testsuite/gcc.dg/ifcvt-5.c @@ -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;