Fix gcc.dg/ifcvt-4.c on 64-bit SPARC (PR rtl-optimization/68749)

PR rtl-optimization/68749
	* gcc.dg/ifcvt-4.c: Use "word_mode" rather than "int" to limit the
	effects of argument promotions.
	Remove default args to dg-skip-if.

From-SVN: r234955
This commit is contained in:
Rainer Orth 2016-04-13 18:13:31 +00:00 committed by Rainer Orth
parent f3653cf5bb
commit 85115fb632
2 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2016-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR rtl-optimization/68749
* gcc.dg/ifcvt-4.c: Use "word_mode" rather than "int" to limit the
effects of argument promotions.
Remove default args to dg-skip-if.
2016-04-13 Paolo Carlini <paolo.carlini@oracle.com> 2016-04-13 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/70635 PR c++/70635

View File

@ -1,12 +1,14 @@
/* { dg-options "-fdump-rtl-ce1 -O2 --param max-rtl-if-conversion-insns=3" } */ /* { dg-options "-fdump-rtl-ce1 -O2 --param max-rtl-if-conversion-insns=3" } */
/* { dg-additional-options "-misel" { target { powerpc*-*-* } } } */ /* { dg-additional-options "-misel" { target { powerpc*-*-* } } } */
/* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* hppa*64*-*-* visium-*-*" } {"*"} { "" } } */ /* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* hppa*64*-*-* visium-*-*" } } */
int typedef int word __attribute__((mode(word)));
foo (int x, int y, int a)
word
foo (word x, word y, word a)
{ {
int i = x; word i = x;
int j = y; word j = y;
/* Try to make taking the branch likely. */ /* Try to make taking the branch likely. */
__builtin_expect (x > y, 1); __builtin_expect (x > y, 1);
if (x > y) if (x > y)