1 /* Copyright (C) 2002 Free Software Foundation.
3 Test floating point negation produces the expected results.
5 Written by Roger Sayle, 21st May 2002. */
8 /* { dg-options "-O2 -ffast-math" } */
52 ftest(float src
, float dst
)
54 if (fneg (src
) != dst
)
57 if (src
!= fneg (dst
))
60 if (fmult (src
) != dst
)
63 if (src
!= fmult (dst
))
66 if (fdiv (src
) != dst
)
74 dtest(double src
, double dst
)
76 if (dneg (src
) != dst
)
79 if (src
!= dneg (dst
))
82 if (dmult (src
) != dst
)
85 if (src
!= dmult (dst
))
88 if (ddiv (src
) != dst
)