OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr37544.c] - Blame information for rev 750

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

Line No. Rev Author Line
1 689 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_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
}

powered by: WebSVN 2.1.0

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