Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr37544.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { 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; }