public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "coudert at clipper dot ens dot fr" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/19302] New: nearest test case fails Date: Thu, 06 Jan 2005 23:24:00 -0000 [thread overview] Message-ID: <20050106232426.19302.coudert@clipper.ens.fr> (raw) The test intrinsic_nearest.f90 from the fortran testsuite included with gcc fails on sparc-sun-solaris2.9 will all optimization levels. I can reduce it to the following code: ------------------------------------------- program test_nearest real inf, max, x integer infi, maxi equivalence (inf,infi) equivalence (max,maxi) ! ??? This is pretty sketchy, but passes on most targets. infi = z'7f800000' maxi = z'7f7fffff' x = nearest (-inf, 1.0) print *, x, -max if (x .ne. -max) call abort() end ------------------------------------------- The comment (from the original test file) makes me feel that perhaps the nearest intrinsic is fine but only the values for infi and maxi are proven wrong, but I'm not really sure. And, if it's the case, some "more universal" values should be fed in. -- Summary: nearest test case fails Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: coudert at clipper dot ens dot fr CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: sparc-sun-solaris2.9 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19302
next reply other threads:[~2005-01-06 23:24 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-01-06 23:24 coudert at clipper dot ens dot fr [this message] 2005-01-06 23:28 ` [Bug fortran/19302] " pinskia at gcc dot gnu dot org 2005-01-07 0:32 ` [Bug fortran/19302] intrinsic_nearest.f90 fails ebotcazou at gcc dot gnu dot org 2005-01-07 0:33 ` ebotcazou at gcc dot gnu dot org 2005-01-07 10:57 ` Thomas dot Koenig at online dot de 2005-01-07 12:30 ` coudert at clipper dot ens dot fr 2005-01-24 7:30 ` coudert at clipper dot ens dot fr 2005-02-12 22:25 ` ebotcazou at gcc dot gnu dot org 2005-02-20 15:52 ` [Bug libfortran/19302] " ebotcazou at gcc dot gnu dot org 2005-02-22 0:54 ` cvs-commit at gcc dot gnu dot org 2005-02-22 1:15 ` ebotcazou 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=20050106232426.19302.coudert@clipper.ens.fr \ --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: linkBe 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).