------- 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

Reply via email to