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