blob: 70e1ee4b057baff42e1de07fced5ebe0eecd7bf2 (
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
27
28
29
30
31
32
33
34
|
/* PR target/63618 */
/* { dg-do run } */
/* { dg-options "-O2 -mtune=corei7 -fno-inline" } */
/* { dg-additional-options "-msse4.2" { target sse4 } } */
/* { dg-additional-options "-fpic" { target fpic } } */
static const __float128 cf = 0.1E+10Q;
__float128
f128_square(__float128 x)
{
return x * x;
}
__float128
f128_p3(__float128 x)
{
return x * x * x;
}
__float128
cond_f128_square (__float128 x, int p)
{
x = f128_p3 (x);
if (p)
x = f128_square(cf);
return x;
}
int main()
{
__float128 x = cond_f128_square (cf, 1);
return (int)(x < cf);
}
|