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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [fold-convround-1.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR middle-end/28473.  */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fdump-tree-original" } */
4
 
5
extern double round(double);
6
extern double floor(double);
7
extern double ceil(double);
8
 
9
unsigned long long test1(double x)
10
{
11
  return (unsigned long long) round(x);
12
}
13
 
14
unsigned long long test2(double x)
15
{
16
  return (unsigned long long) floor(x);
17
}
18
unsigned long long test3(double x)
19
{
20
  return (unsigned long long) ceil(x);
21
}
22
 
23
/* { dg-final { scan-tree-dump-times "__builtin_lround" 0 "original" } } */
24
/* { dg-final { scan-tree-dump-times "__builtin_llround" 0 "original" } } */
25
/* { dg-final { scan-tree-dump-times "__builtin_lfloor" 0 "original" } } */
26
/* { dg-final { scan-tree-dump-times "__builtin_llfloor" 0 "original" } } */
27
/* { dg-final { scan-tree-dump-times "__builtin_lceil" 0 "original" } } */
28
/* { dg-final { scan-tree-dump-times "__builtin_llceil" 0 "original" } } */
29
/* { dg-final { cleanup-tree-dump "original" } } */
30
 

powered by: WebSVN 2.1.0

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