~ubuntu-branches/ubuntu/wily/qemu-kvm-spice/wily

« back to all changes in this revision

Viewing changes to tests/cris/check_gcctorture_pr28634.c

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-10-19 10:44:56 UTC
  • Revision ID: james.westby@ubuntu.com-20111019104456-xgvskumk3sxi97f4
Tags: upstream-0.15.0+noroms
ImportĀ upstreamĀ versionĀ 0.15.0+noroms

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* PR rtl-optimization/28634.  On targets with delayed branches,
 
2
   dbr_schedule could do the next iteration's addition in the
 
3
   branch delay slot, then subtract the value again if the branch
 
4
   wasn't taken.  This can lead to rounding errors.  */
 
5
double x = -0x1.0p53;
 
6
double y = 1;
 
7
int
 
8
main (void)
 
9
{
 
10
  while (y > 0)
 
11
    y += x;
 
12
  if (y != x + 1)
 
13
    abort ();
 
14
  exit (0);
 
15
}