OSDN Git Service

* gcc.dg/fold-overflow-1.c: Adjust for float output for mmix-*-*.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / fold-overflow-1.c
1 /* { dg-compile } */
2 /* { dg-options "-O -ftrapping-math" } */
3
4 float f1 =  __FLT_MAX__ + __FLT_MAX__;
5
6 float foo1(void)
7 {
8   return  __FLT_MAX__ + __FLT_MAX__;
9 }
10
11 float f2 = 1.0f/0.0f;
12
13 float foo2(void)
14 {
15   return 1.0f/0.0f;
16 }
17
18 /* { dg-final { scan-assembler-times "2139095040" 2 { target { ! mmix-*-* } } } } */
19 /* { dg-final { scan-assembler-times "#7f800000" 2 { target mmix-*-* } } } */