[Patch, testsuite, mips] Fix gcc.dg/tree-ssa/ssa-ifcombine-13.c

Steve Ellcey sellcey@mips.com
Tue Apr 8 20:48:00 GMT 2014


The test gcc.dg/tree-ssa/ssa-ifcombine-13.c has been failing on MIPS ever
since it was added because MIPS sets LOGICAL_OP_NON_SHORT_CIRCUIT to 0 and
so the optimization being checked for is not done.  This patch removes
mips from the list of platforms where we check for the optimization.

Tested on mips-mti-elf.  OK for checkin?

Steve Ellcey
sellcey@mips.com


2014-04-01  Steve Ellcey  <sellcey@mips.com>

	* gcc.dg/tree-ssa/ssa-ifcombine-13.c: Remove mips*-*-* from option
	and scan lists.

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-13.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-13.c
index 19f892e..43b92c1 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-13.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-13.c
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O1 -fdump-tree-optimized" } */
-/* { dg-additional-options "-mbranch-cost=2" { target { i?86-*-* x86_64-*-* mips*-*-* s390*-*-* avr*-*-* } } } */
+/* { dg-additional-options "-mbranch-cost=2" { target { i?86-*-* x86_64-*-* s390*-*-* avr*-*-* } } } */
 
 _Bool f1(_Bool a, _Bool b)
 {
@@ -17,5 +17,5 @@ _Bool f1(_Bool a, _Bool b)
 
 /* For LOGICAL_OP_NON_SHORT_CIRCUIT, this should be optimized
    into return a & b;, with no ifs.  */
-/* { dg-final { scan-tree-dump-not "if" "optimized" { target { i?86-*-* x86_64-*-* mips*-*-* s390*-*-* avr*-*-* } } } } */
+/* { dg-final { scan-tree-dump-not "if" "optimized" { target { i?86-*-* x86_64-*-* s390*-*-* avr*-*-* } } } } */
 /* { dg-final { cleanup-tree-dump "optimized" } } */



More information about the Gcc-patches mailing list