2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / fast-math-vect-pow-2.c
bloba9d927b3f6036c8257be3a5b5677c947f4c6d53b
1 /* { dg-do compile } */
3 typedef double d_type;
4 struct
6 d_type x;
7 d_type y;
8 } S[100];
10 #define N 16
11 d_type foo (d_type t);
13 d_type
14 main1 ()
16 int i;
17 d_type t;
19 for (i = 0; i < N; i++)
21 t = (d_type) i / (d_type) 10;
22 S[5].x = t * t;
24 return S[5].x;
27 int
28 main (void)
30 d_type tmp = main1 ();
32 /* { dg-final { cleanup-tree-dump "vect" } } */