public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "uros at kss-loka dot si" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/19506] [4.0 Regression] PovRay produces wrong pictures with -mfpmath=sse -ffast-math.
Date: Tue, 18 Jan 2005 15:58:00 -0000	[thread overview]
Message-ID: <20050118155813.28764.qmail@sourceware.org> (raw)
In-Reply-To: <20050118154405.19506.uros@kss-loka.si>


------- Additional Comments From uros at kss-loka dot si  2005-01-18 15:58 -------
This patch unfortunatelly didn't help:
http://gcc.gnu.org/ml/gcc-cvs/2005-01/msg00651.html

With the patch, tracing abyss.pov generates these warnings:
Parsing.............File: ../scenes/advanced/abyss.pov  Line: 434
Warning: Degenerate CSG bounding box (not used!).

......File: ../scenes/advanced/abyss.pov  Line: 642
Warning: Degenerate CSG bounding box (not used!).

...............................................File:
../scenes/advanced/abyss.pov  Line: 728
Warning: Degenerate CSG bounding box (not used!).

Trying to get a smaller testcase, I have found that this problem can be somehow
fixed by following change in ix86_fp_comparison_codes():

Index: i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.780
diff -u -p -r1.780 i386.c
--- i386.c      18 Jan 2005 11:08:33 -0000      1.780
+++ i386.c      18 Jan 2005 15:51:18 -0000
@@ -8446,6 +8446,8 @@ ix86_fp_comparison_codes (enum rtx_code 
     case LT:                   /* LTU - CF=1 - fails on unordered */
       *first_code = UNLT;
       *bypass_code = UNORDERED;
+      return;
+
       break;
     case LE:                   /* LEU - CF=1 | ZF=1 - fails on unordered */
       *first_code = UNLE;

This change protects *bypass_code from being cleared back to UNKNOWN by
following code at the end of function:
  ...
  if (!TARGET_IEEE_FP)
    {
      *second_code = UNKNOWN;
      *bypass_code = UNKNOWN;
    }
}

It looks that something is wrong with LT compares.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19506


  parent reply	other threads:[~2005-01-18 15:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-18 15:44 [Bug target/19506] New: " uros at kss-loka dot si
2005-01-18 15:48 ` [Bug target/19506] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-01-18 15:58 ` uros at kss-loka dot si [this message]
2005-01-18 16:06 ` uros at kss-loka dot si
2005-01-18 17:01 ` kcook at gcc dot gnu dot org
2005-01-19  8:18 ` uros at kss-loka dot si
2005-01-20 11:16 ` martin at mpa-garching dot mpg dot de
2005-01-20 13:25 ` uros at kss-loka dot si
2005-01-20 19:12 ` rth at gcc dot gnu dot org
2005-01-21  0:27 ` rth at gcc dot gnu dot org
2005-01-21  6:48 ` uros at kss-loka dot si
2005-01-21 12:51 ` uros at kss-loka dot si
2005-01-21 22:04 ` rth at gcc dot gnu dot org
2005-01-22 11:35 ` uros at kss-loka dot si
2005-01-22 23:08 ` cvs-commit at gcc dot gnu dot org
2005-01-22 23:23 ` rth at gcc dot gnu dot org

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=20050118155813.28764.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).