1 /* { dg-do run } */
2 /* { dg-options "-O2" } */
3 /* { dg-options "-O2 -msse2 -mtune=core2 -mfpmath=387" { target { i?86-*-* x86_64-*-* } } } */
4 /* { dg-require-effective-target sse2_runtime { target { i?86-*-* x86_64-*-* } } } */
5
6 extern void abort (void);
7
main(void)8 int main(void)
9 {
10 double arr[1000];
11 double a, b;
12
13 int i;
14
15 for (i = 0; i < 1000; i++)
16 arr[i] = 4294967296.0 + (double)i;
17
18 a = arr[0];
19 b = (unsigned int)((unsigned long long int)a % 4294967296ULL);
20
21 if (b >= 4294967296.0)
22 abort ();
23
24 return 0;
25 }
26