Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.dg / fold-overflow-1.c
blob5e410b9bafb54bfafff3662e635c5c21f7782fc9
1 /* { dg-compile } */
2 /* { dg-options "-O -ftrapping-math" } */
4 /* There should be exactly 2 +Inf in the assembly file. */
6 float f1 = __FLT_MAX__ + __FLT_MAX__;
8 float foo1(void)
10 return __FLT_MAX__ + __FLT_MAX__;
13 float f2 = 1.0f/0.0f;
15 float foo2(void)
17 return 1.0f/0.0f;
20 /* { dg-final { scan-assembler-times "2139095040" 2 { target { ! mmix-*-* } } } } */
21 /* { dg-final { scan-assembler-times "#7f800000" 2 { target mmix-*-* } } } */