Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-overflow-1.c
blob108df4e3155f393f67a59c7abc3da85a109b28bc
1 /* { dg-do compile } */
2 /* { dg-require-effective-target int32plus } */
3 /* { dg-options "-O -ftrapping-math" } */
5 /* There should be exactly 2 +Inf in the assembly file. */
7 float f1 = __FLT_MAX__ + __FLT_MAX__;
9 float foo1(void)
11 return __FLT_MAX__ + __FLT_MAX__;
14 float f2 = 1.0f/0.0f;
16 float foo2(void)
18 return 1.0f/0.0f;
21 /* { dg-final { scan-assembler-times "2139095040" 2 { target { ! mmix-*-* } } } } */
22 /* { dg-final { scan-assembler-times "#7f800000" 2 { target mmix-*-* } } } */