]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.target/powerpc/ppc-round.c
Get rid of dg-skip-if etc. default args
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / powerpc / ppc-round.c
CommitLineData
21922561 1/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
4f4b0ab8 2/* { dg-skip-if "" { powerpc*-*-darwin* } } */
21922561 3/* { dg-require-effective-target powerpc_vsx_ok } */
a5fc83a1 4/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
0c307d8f 5/* { dg-options "-O2 -mcpu=power7 -mno-upper-regs-df" } */
21922561
MM
6/* { dg-final { scan-assembler-times "stfiwx" 4 } } */
7/* { dg-final { scan-assembler-times "lfiwax" 2 } } */
8/* { dg-final { scan-assembler-times "lfiwzx" 2 } } */
0c307d8f
MM
9/* { dg-final { scan-assembler-times "fctiwz " 2 } } */
10/* { dg-final { scan-assembler-times "fctiwuz " 2 } } */
11/* { dg-final { scan-assembler-times "fcfids " 2 } } */
21922561
MM
12/* { dg-final { scan-assembler-not "lwz" } } */
13/* { dg-final { scan-assembler-not "stw" } } */
14
15/* Make sure we don't have loads/stores to the GPR unit. */
16double
17round_double_int (double a)
18{
19 return (double)(int)a;
20}
21
22float
23round_float_int (float a)
24{
25 return (float)(int)a;
26}
27
28double
29round_double_uint (double a)
30{
31 return (double)(unsigned int)a;
32}
33
34float
35round_float_uint (float a)
36{
37 return (float)(unsigned int)a;
38}