OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr37544.c] - Blame information for rev 404

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { 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 { target { i?86-*-* x86_64-*-* } } } */
5
/* { dg-require-effective-target sse2_runtime { target { i?86-*-* x86_64-*-* } } } */
6
 
7
extern void abort (void);
8
 
9
int main(void)
10
{
11
  double arr[1000];
12
  double a, b;
13
 
14
  int i;
15
 
16
  for (i = 0; i < 1000; i++)
17
    arr[i] = 4294967296.0 + (double)i;
18
 
19
  a = arr[0];
20
  b = (unsigned int)((unsigned long long int)a % 4294967296ULL);
21
 
22
  if (b >= 4294967296.0)
23
    abort ();
24
 
25
  return 0;
26
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.