From 5d23c86f92ceb2206ed1d596545fa41ec6a8460c Mon Sep 17 00:00:00 2001 From: law Date: Thu, 3 Mar 2016 00:11:03 +0000 Subject: [PATCH] PR rtl-optimization/69942 * gcc.dg/ifcvt-5.c: Use "word_mode" rather than "int" to limit the effects of argument promotions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233922 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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.3