This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testsuite]: Fix gcc.dg/ipa/ipcp-3.c


This test case contains expression 1 << 18 which leads to FAIL for targets with
sizeof(int) < 4.

The mask seems not to be relevant for the test and can be set to, e.g. 14.

Ok?

testsuite/
	* gcc.dg/ipa/ipcp-3.c (mark_cell): Use mask 1 << 14 instead of 1 << 18.



Index: gcc.dg/ipa/ipcp-3.c
===================================================================
--- gcc.dg/ipa/ipcp-3.c (revision 178527)
+++ gcc.dg/ipa/ipcp-3.c (working copy)
@@ -34,7 +34,7 @@ static void
 mark_cell(int * interp, Pcc_cell *c)
 {
   if (c && c->type == 4 && c->p
-      && !(c->p->flags & (1<<18)))
+      && !(c->p->flags & (1<<14)))
     never_ever(interp, c->p);
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]