Here are a few C programs to test the floating-point arithmetic of your machine:
Miscellaneous tests of the floating-point arithmetic: test of the evaluation of the floating-point expressions in C (showing a bug in gcc when the processor is configured in extended precision, e.g. under Linux/x86), test of the addition and the multiplication with signed zeros, test of the power function pow.
Test of the nearest integer functions, in the four IEEE-754 rounding modes: cast to int type, trunc, floor, ceil, round, nearbyint, rint. These tests show a bug in the PowerPC implementation of the rint function in the glibc (fixed in the CVS on 6 January 2005).
Test of the arc tangent function atan (see Debian bug 210613).
Test of the logarithm function log (see Debian bug 210400).
Test of the sine function sin.
Test of the overflow behavior with gcc and intermediate extended precision (e.g. under Linux/x86).
Test of the gamma functions tgamma, lgamma and lgamma_r.
Test of the remquo function.
Test of the fma function (see glibc bug 3268 and Debian bug 372544).