public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/14915] New: Testsuite failure on mips-sgi-irix6.5 in gcc.dg/builtins-32.c
@ 2004-04-11 1:06 ghazi at gcc dot gnu dot org
2004-04-12 20:43 ` [Bug target/14915] " wilson at specifixinc dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2004-04-11 1:06 UTC (permalink / raw)
To: gcc-bugs
I'm getting a testsuite failure on mips-sgi-irix6.5 in gcc.dg/builtins-32.c. Th
e test passes the "float" sized checks, but fails for the "double" size. Specif
ically, I get an abort for test(-2.0) which incorrectly returns zero. We're
exercising the extract_bit_field() path in expand_builtin_signbit() in
the "double" case but not in the "float" case.
The failure runs from here:
http://gcc.gnu.org/ml/gcc-testresults/2004-02/msg00173.html
through to a current report:
http://gcc.gnu.org/ml/gcc-testresults/2004-04/msg00359.html
Mips sets BITS_BIG_ENDIAN to zero, so it doesn't reverse the bitpos. But if I
force it to do so, the testcase passes. Like so:
--- ../../orig/gcc-CVS20040409/gcc/builtins.c Fri Apr 9 17:03:58 2004
+++ builtins.c Sat Apr 10 11:26:17 2004
@@ -5036,7 +5036,7 @@ expand_builtin_signbit (tree exp, rtx ta
if (GET_MODE_BITSIZE (imode) > GET_MODE_BITSIZE (rmode))
{
- if (BITS_BIG_ENDIAN)
+ if (BITS_BIG_ENDIAN || 1)
bitpos = GET_MODE_BITSIZE (imode) - 1 - bitpos;
temp = copy_to_mode_reg (imode, temp);
temp = extract_bit_field (temp, 1, bitpos, 1,
Perhaps the logic to enter this path isn't completely correct?
E.g. do we need to test some other macro in addition to BITS_BIG_ENDIAN?
--
Summary: Testsuite failure on mips-sgi-irix6.5 in
gcc.dg/builtins-32.c
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ghazi at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,roger at eyesopen dot
com
GCC build triplet: mips-sgi-irix6.5
GCC host triplet: mips-sgi-irix6.5
GCC target triplet: mips-sgi-irix6.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14915
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/14915] Testsuite failure on mips-sgi-irix6.5 in gcc.dg/builtins-32.c
2004-04-11 1:06 [Bug target/14915] New: Testsuite failure on mips-sgi-irix6.5 in gcc.dg/builtins-32.c ghazi at gcc dot gnu dot org
@ 2004-04-12 20:43 ` wilson at specifixinc dot com
2004-04-13 12:47 ` [Bug target/14915] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-04-15 23:46 ` [Bug middle-end/14915] " pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: wilson at specifixinc dot com @ 2004-04-12 20:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From wilson at specifixinc dot com 2004-04-12 20:21 -------
Subject: Re: New: Testsuite failure on mips-sgi-irix6.5
in gcc.dg/builtins-32.c
ghazi at gcc dot gnu dot org wrote:
> Mips sets BITS_BIG_ENDIAN to zero, so it doesn't reverse the bitpos. But if I
> force it to do so, the testcase passes. Like so:
BITS_BIG_ENDIAN only affects how we number bits within a
{zero,sign}_extract. MIPS has no bit field instructions, so no need to
set BITS_BIG_ENDIAN. We can give it an arbitrary value.
BITS_BIG_ENDIAN should not be used for any other purpose.
It looks like the expand_builtin_signbit code should be using
BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN. Endian-ness tests always
use BYTES_BIG_ENDIAN. Never use BITS_BIG_ENDIAN in an endianness test.
See also the docs for BITS_BIG_ENDIAN which mention this stuff.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14915
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/14915] [3.5 Regression] Testsuite failure on mips-sgi-irix6.5 in gcc.dg/builtins-32.c
2004-04-11 1:06 [Bug target/14915] New: Testsuite failure on mips-sgi-irix6.5 in gcc.dg/builtins-32.c ghazi at gcc dot gnu dot org
2004-04-12 20:43 ` [Bug target/14915] " wilson at specifixinc dot com
@ 2004-04-13 12:47 ` pinskia at gcc dot gnu dot org
2004-04-15 23:46 ` [Bug middle-end/14915] " pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-13 12:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-13 12:29 -------
Confirmed, Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-04/msg00777.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |patch
Known to fail| |3.5.0
Known to work| |3.4.0
Last reconfirmed|0000-00-00 00:00:00 |2004-04-13 12:29:29
date| |
Summary|Testsuite failure on mips- |[3.5 Regression] Testsuite
|sgi-irix6.5 in |failure on mips-sgi-irix6.5
|gcc.dg/builtins-32.c |in gcc.dg/builtins-32.c
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14915
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/14915] [3.5 Regression] Testsuite failure on mips-sgi-irix6.5 in gcc.dg/builtins-32.c
2004-04-11 1:06 [Bug target/14915] New: Testsuite failure on mips-sgi-irix6.5 in gcc.dg/builtins-32.c ghazi at gcc dot gnu dot org
2004-04-12 20:43 ` [Bug target/14915] " wilson at specifixinc dot com
2004-04-13 12:47 ` [Bug target/14915] [3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-04-15 23:46 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-15 23:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-15 23:19 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14915
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-04-15 23:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-11 1:06 [Bug target/14915] New: Testsuite failure on mips-sgi-irix6.5 in gcc.dg/builtins-32.c ghazi at gcc dot gnu dot org
2004-04-12 20:43 ` [Bug target/14915] " wilson at specifixinc dot com
2004-04-13 12:47 ` [Bug target/14915] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-04-15 23:46 ` [Bug middle-end/14915] " pinskia at gcc dot gnu dot org
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).