aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr88558-p8.c
blob: 1612d02ab3156679338e4b234efe1c10fb20ce74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -fno-math-errno -mdejagnu-cpu=power8 -mvsx" } */
/* { dg-require-effective-target powerpc_vsx } */

/* -fno-math-errno is required to make {i,l,ll}rint{,f} inlined */

#include "pr88558.h"

/* { dg-final { scan-assembler-times {\mfctid\M} 4 { target lp64 } } } */
/* { dg-final { scan-assembler-times {\mfctid\M} 2 { target { ilp32 && has_arch_ppc64 } } } } */
/* { dg-final { scan-assembler-times {\mfctiw\M} 2 { target lp64 } } } */
/* { dg-final { scan-assembler-times {\mfctiw\M} 4 { target ilp32 } } } */
/* { dg-final { scan-assembler-times {\mmfvsrwz\M} 2 { target lp64 } } } */
/* { dg-final { scan-assembler-times {\mmfvsrwz\M} 4 { target ilp32 } } } */