diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2016-04-13 18:13:31 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2016-04-13 18:13:31 +0000 |
commit | 85115fb63266f4ae1979f2f5c4d79a7a2ff51a70 (patch) | |
tree | e450a722625b3b2dd4a8cf45c4cfd4adf64e8626 | |
parent | f3653cf5bbc035d700f3d27dc12864d4d12c5d89 (diff) | |
download | gcc-85115fb63266f4ae1979f2f5c4d79a7a2ff51a70.zip gcc-85115fb63266f4ae1979f2f5c4d79a7a2ff51a70.tar.gz gcc-85115fb63266f4ae1979f2f5c4d79a7a2ff51a70.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/ifcvt-4.c | 12 |
2 files changed, 14 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b16fadc..0987349 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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> PR c++/70635 diff --git a/gcc/testsuite/gcc.dg/ifcvt-4.c b/gcc/testsuite/gcc.dg/ifcvt-4.c index d0d131b..319b583 100644 --- a/gcc/testsuite/gcc.dg/ifcvt-4.c +++ b/gcc/testsuite/gcc.dg/ifcvt-4.c @@ -1,12 +1,14 @@ /* { dg-options "-fdump-rtl-ce1 -O2 --param max-rtl-if-conversion-insns=3" } */ /* { 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 -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; /* Try to make taking the branch likely. */ __builtin_expect (x > y, 1); if (x > y) |