[Bug target/14915] Testsuite failure on mips-sgi-irix6.5 in gcc.dg/builtins-32.c
wilson at specifixinc dot com
gcc-bugzilla@gcc.gnu.org
Mon Apr 12 20:43:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list