[Bug middle-end/29253] expand_abs wrong default code for floating point
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Feb 4 15:08:00 GMT 2008
------- Comment #6 from rguenth at gcc dot gnu dot org 2008-02-04 15:07 -------
Uh, and we fold ABS <x> != 0.0 to x != 0.0, which makes the testcase
uninteresting as well. Also it happens that for double we succeed with
generating the nojump variant. And I don't have a cross with long-double
enabled appearantly. So, _possibly_ better testcase :)
extern long double fabsl(double);
extern void abort(void);
long double zero = 0.0L;
void __attribute__((noinline)) foo(long double x)
{
if (fabsl (x) != zero)
abort ();
}
int main ()
{
foo(-0.0L);
return 0;
}
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29253
More information about the Gcc-bugs
mailing list