diff options
author | Jeff Law <law@redhat.com> | 2016-03-02 17:11:03 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2016-03-02 17:11:03 -0700 |
commit | 815f20ab25ad1e185e41f44f8cd3f6ea6074e9e5 (patch) | |
tree | c169db28b2584905f2507b98e19850ab5509ab5e | |
parent | 2c05525623d96388cf938f268225813ec2edd5ec (diff) | |
download | gcc-815f20ab25ad1e185e41f44f8cd3f6ea6074e9e5.zip gcc-815f20ab25ad1e185e41f44f8cd3f6ea6074e9e5.tar.gz gcc-815f20ab25ad1e185e41f44f8cd3f6ea6074e9e5.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/ifcvt-5.c | 11 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 05c4e95..39fdb64 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/gcc.dg/ifcvt-5.c b/gcc/testsuite/gcc.dg/ifcvt-5.c index 0b73e54..818099a 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; |