diff options
Diffstat (limited to 'gcc/cil/tests/sin.c')
-rw-r--r-- | gcc/cil/tests/sin.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/cil/tests/sin.c b/gcc/cil/tests/sin.c new file mode 100644 index 00000000000..7b5facdea65 --- /dev/null +++ b/gcc/cil/tests/sin.c @@ -0,0 +1,19 @@ + +#include <stdio.h> +#include <math.h> + +int +main (int argc, char *argv[]) +{ + float b = 113.000000; + float c = 89095.000000; + + float s = sin (c); + printf ("sin (%f) = %f\n", c, s); + float r = b * s; + printf ("%f * %f = %f\n", b, s, r); + float u = b * sin (c); + printf ("%f * sin (%f) = %f\n", b, c, u); + + return 0; +} |