Commit c83c7e7e by Jakub Jelinek Committed by Jakub Jelinek

re PR testsuite/36332 (FAIL: gcc.dg/torture/type-generic-1.c execution test on powerpc-*)

	PR target/36332
	* real.c (real_maxval): Clear a lower bit to make real_maxval
	match get_max_float for IBM long double format.

	* gcc.c-torture/execute/ieee/pr36332.c: New test.

From-SVN: r139906
parent 75c9cbe3
2008-09-02 Jakub Jelinek <jakub@redhat.com>
PR target/36332
* real.c (real_maxval): Clear a lower bit to make real_maxval
match get_max_float for IBM long double format.
2008-09-02 Andreas Schwab <schwab@suse.de> 2008-09-02 Andreas Schwab <schwab@suse.de>
* configure.ac: Use m4_quote to quote the expansion of m4_do. * configure.ac: Use m4_quote to quote the expansion of m4_do.
......
...@@ -2417,7 +2417,7 @@ real_maxval (REAL_VALUE_TYPE *r, int sign, enum machine_mode mode) ...@@ -2417,7 +2417,7 @@ real_maxval (REAL_VALUE_TYPE *r, int sign, enum machine_mode mode)
required to be the value of the long double rounded to the required to be the value of the long double rounded to the
nearest double. Rounding means we need a slightly smaller nearest double. Rounding means we need a slightly smaller
value for LDBL_MAX. */ value for LDBL_MAX. */
clear_significand_bit (r, SIGNIFICAND_BITS - fmt->pnan); clear_significand_bit (r, SIGNIFICAND_BITS - fmt->pnan - 1);
} }
} }
......
2008-09-02 Jakub Jelinek <jakub@redhat.com> 2008-09-02 Jakub Jelinek <jakub@redhat.com>
PR target/36332
* gcc.c-torture/execute/ieee/pr36332.c: New test.
PR c/37171 PR c/37171
* g++.dg/ext/attrib34.C: New test. * g++.dg/ext/attrib34.C: New test.
......
/* PR target/36332 */
int __attribute__((noinline, used))
foo (long double ld)
{
return ld == __builtin_infl ();
}
int
main ()
{
if (foo (__LDBL_MAX__))
__builtin_abort ();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment