Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.c-torture / execute / 20030125-1.c
blob8eb9a4211a8649106f53a5626300848664e1e996
1 /* Verify whether math functions are simplified. */
2 double sin(double);
3 double floor(double);
4 float
5 t(float a)
7 return sin(a);
9 float
10 q(float a)
12 return floor(a);
14 double
15 q1(float a)
17 return floor(a);
19 main()
21 #ifdef __OPTIMIZE__
22 if (t(0)!=0)
23 abort ();
24 if (q(0)!=0)
25 abort ();
26 if (q1(0)!=0)
27 abort ();
28 #endif
29 return 0;
31 __attribute__ ((noinline))
32 double
33 floor(double a)
35 abort ();
37 __attribute__ ((noinline))
38 float
39 floorf(float a)
41 return a;
43 __attribute__ ((noinline))
44 double
45 sin(double a)
47 abort ();
49 __attribute__ ((noinline))
50 float
51 sinf(float a)
53 return a;