Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / ia64 / 20040303-1.c
blob60b5c528fdb7701b7c10e6b397cbc72111473b4e
1 /* Test floating point division on ia64. There was a bug in the
2 max-throughput version of the inline division code. Expecting an
3 exact value from a floating point expression is unwise but GCC
4 depends on it in allocno_compare. */
6 /* { dg-do run } */
7 /* { dg-options "-minline-float-divide-max-throughput" } */
9 extern void abort (void);
11 volatile int i = 24;
12 volatile int j = 30;
13 volatile int k = 1;
15 int main()
17 int pri2 = (((double) i / j) * (10000 / 1000) * k);
18 if (pri2 != 8) abort();
19 return 0;