Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr37544.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 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 | |
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 } |