OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [fold-overflow-1.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* { dg-compile } */
2
/* { dg-options "-O -ftrapping-math" } */
3
 
4
/* There should be exactly 2 +Inf in the assembly file.  */
5
 
6
float f1 =  __FLT_MAX__ + __FLT_MAX__;
7
 
8
float foo1(void)
9
{
10
  return  __FLT_MAX__ + __FLT_MAX__;
11
}
12
 
13
float f2 = 1.0f/0.0f;
14
 
15
float foo2(void)
16
{
17
  return 1.0f/0.0f;
18
}
19
 
20
/* { dg-final { scan-assembler-times "2139095040" 2 { target { ! mmix-*-* } } } } */
21
/* { dg-final { scan-assembler-times "#7f800000" 2 { target mmix-*-* } } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.