blob: 5190ec4b96362ecddadd05df839be718bd4b4adf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* PR target/24055 */
/* Testcase reduced by Serge Belyshev */
/* { dg-do compile } */
/* { dg-options "-O2 -ffast-math" } */
extern double rint(double);
void foo_1 (int *p, double x)
{
*p = rint (x);
}
void foo_2 (long long *p, double x)
{
*p = rint (x);
}
int foo_3 (double x)
{
return rint (x);
}
long long foo_4 (double x)
{
return rint (x);
}
|