public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Kaveh R. GHAZI" <ghazi@caip.rutgers.edu>
To: ubizjak@gmail.com
Cc: gcc@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: Mainline Regression in gcc.target/i386/pr32268.c
Date: Sat, 16 Feb 2008 18:07:00 -0000	[thread overview]
Message-ID: <Pine.GSO.4.58.0802161239220.9160@caipclassic.rutgers.edu> (raw)

Hi Uros,

This broke on x86_64 in the last day or so, I thought maybe you might know
what happened.  (You touched config/i386 FP stuff recently.)  I'm seeing a
regression in gcc.target/i386/pr32268.c as seen here:
http://gcc.gnu.org/ml/gcc-testresults/2008-02/msg01108.html

Right now the execute failures only appear with -fpic/-fPIC, however I
believe this is because inlining is masking the problem and allowing
things to get folded.  With -fpic/-fPIC the inlining is disabled and the
abort occurs.

You can trigger the bug in a regular pass by applying the following
noinline patch to the testcase.  Thoughts?

		Thanks,
		--Kaveh


diff -rup orig/egcc-SVN20080216/gcc/testsuite/gcc.target/i386/pr32268.c egcc-SVN20080216/gcc/testsuite/gcc.target/i386/pr32268.c
--- orig/egcc-SVN20080216/gcc/testsuite/gcc.target/i386/pr32268.c	2007-12-31 19:11:58.000000000 +0100
+++ egcc-SVN20080216/gcc/testsuite/gcc.target/i386/pr32268.c	2008-02-16 18:34:04.000000000 +0100
@@ -4,12 +4,14 @@

 extern void abort(void);

-int test_lt(__float128 x, __float128 y)
+int __attribute__ ((__noinline__))
+test_lt(__float128 x, __float128 y)
 {
   return x < y;
 }

-int test_gt (__float128 x, __float128 y)
+int __attribute__ ((__noinline__))
+test_gt (__float128 x, __float128 y)
 {
   return x > y;
 }

             reply	other threads:[~2008-02-16 17:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-16 18:07 Kaveh R. GHAZI [this message]
2008-02-16 18:39 ` Richard Guenther
2008-02-16 18:58   ` Uros Bizjak
2008-02-16 19:00     ` Richard Guenther
2008-02-16 19:02       ` Andrew Pinski
2008-02-16 19:07   ` Kaveh R. Ghazi
2008-02-16 19:10     ` Richard Guenther
2008-02-16 19:46       ` Kaveh R. Ghazi
2008-02-16 19:46         ` Richard Guenther
2008-02-16 21:55           ` [PATCH] " Uros Bizjak
2008-02-16 23:29             ` Kaveh R. Ghazi
2008-02-16 23:44             ` Jakub Jelinek
2008-02-17  7:27               ` David Edelsohn
2008-02-17 10:08               ` Uros Bizjak
2008-02-17 11:57                 ` Jakub Jelinek
2008-02-17 12:44                   ` Uros Bizjak
2008-02-19  1:33                 ` David Edelsohn
2008-02-19  7:48                   ` Uros Bizjak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.58.0802161239220.9160@caipclassic.rutgers.edu \
    --to=ghazi@caip.rutgers.edu \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gcc@gcc.gnu.org \
    --cc=ubizjak@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).