root / tests / tcg / cris / check_gcctorture_pr28634.c @ c09015dd
History | View | Annotate | Download (377 Bytes)
1 | dd43edf4 | ths | /* PR rtl-optimization/28634. On targets with delayed branches,
|
---|---|---|---|
2 | dd43edf4 | ths | dbr_schedule could do the next iteration's addition in the
|
3 | dd43edf4 | ths | branch delay slot, then subtract the value again if the branch
|
4 | dd43edf4 | ths | wasn't taken. This can lead to rounding errors. */
|
5 | dd43edf4 | ths | double x = -0x1.0p53; |
6 | dd43edf4 | ths | double y = 1; |
7 | dd43edf4 | ths | int
|
8 | dd43edf4 | ths | main (void)
|
9 | dd43edf4 | ths | { |
10 | dd43edf4 | ths | while (y > 0) |
11 | dd43edf4 | ths | y += x; |
12 | dd43edf4 | ths | if (y != x + 1) |
13 | dd43edf4 | ths | abort (); |
14 | dd43edf4 | ths | exit (0);
|
15 | dd43edf4 | ths | } |