Debian Codegraph @

gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-ffast-math" } */
3
4 typedef double d_type;
5 struct
6 {
7 d_type x;
8 d_type y;
9 } S[100];
10
11 #define N 16
12 d_type foo (d_type t);
13
14 d_type
15 main1 ()
16 {
17 int i;
18 d_type t;
19
20 for (i = 0; i < N; i++)
21 {
22 t = (d_type) i / (d_type) 10;
23 S[5].x = t * t;
24 }
25 return S[5].x;
26 }
27
28 int
29 main (void)
30 {
31 d_type tmp = main1 ();
32 }
33