public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Committed] Fix gcc.target/mips/octeon-bbit-3.c testcase
@ 2012-11-03 19:21 Andrew Pinski
  0 siblings, 0 replies; only message in thread
From: Andrew Pinski @ 2012-11-03 19:21 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

Hi,
  After some of the recent patches which does cross jumping at the
tree level (tail merge) and the patch for tree-ssa-ifcombine, this
testcase fails as we merge the if statements that lead to abort.  This
patch fixes the problem by changing one of the calls to abort to call
a different function (abort1).

Committed as obvious after testing on mips64-linux-gnu that the
testcase passes now.

Thanks,
Andrew Pinski

 * gcc.target/mips/octeon-bbit-3.c: Change the second call to abort to
call abort1 so that cross jumping does not happen.

[-- Attachment #2: fixtestcase1.diff.txt --]
[-- Type: text/plain, Size: 547 bytes --]

Index: testsuite/gcc.target/mips/octeon-bbit-3.c
===================================================================
--- testsuite/gcc.target/mips/octeon-bbit-3.c	(revision 193124)
+++ testsuite/gcc.target/mips/octeon-bbit-3.c	(working copy)
@@ -18,6 +18,7 @@
 /* { dg-final { scan-assembler-not "ext\t" } } */
 
 void abort (void);
+void abort1 (void);
 void exit (int);
 
 typedef unsigned long long ulong64;
@@ -39,7 +40,7 @@ f ()
   if (bar.a != 0x1)
     abort ();
   else if (!bar.c)
-    abort ();
+    abort1 ();
   else
     exit (0);
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-03 19:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-03 19:21 [Committed] Fix gcc.target/mips/octeon-bbit-3.c testcase Andrew Pinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).