blob: d05ee19d3734f6a862ae0870f6177bf16bee4cee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O2 -mcpu=power7 -ffast-math" } */
/* { dg-final { scan-assembler "xsmaxdp" } } */
/* { dg-final { scan-assembler "xsmindp" } } */
float
do_fmin (float a, float b)
{
return __builtin_fminf (a, b);
}
float
do_fmax (float a, float b)
{
return __builtin_fmaxf (a, b);
}
|