From 815f20ab25ad1e185e41f44f8cd3f6ea6074e9e5 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 2 Mar 2016 17:11:03 -0700 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 4 ++++ 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 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; -- 2.47.2