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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [fold-overflow-1.c] - Blame information for rev 154

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-compile } */
2
/* { dg-skip-if "consts are shorts, not longs" { "m32c-*-*" } { "*" } { "" } } */
3
/* { dg-options "-O -ftrapping-math" } */
4
 
5
/* There should be exactly 2 +Inf in the assembly file.  */
6
 
7
float f1 =  __FLT_MAX__ + __FLT_MAX__;
8
 
9
float foo1(void)
10
{
11
  return  __FLT_MAX__ + __FLT_MAX__;
12
}
13
 
14
float f2 = 1.0f/0.0f;
15
 
16
float foo2(void)
17
{
18
  return 1.0f/0.0f;
19
}
20
 
21
/* { dg-final { scan-assembler-times "2139095040" 2 { target { ! mmix-*-* } } } } */
22
/* { 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.