blob: 5f8b2eb5d4b77afed049d18ed4ef6de590c196c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
/* { dg-require-effective-target powerpc_p9vector_ok } */
/* { dg-options "-mcpu=power9" } */
#include <altivec.h>
__vector unsigned long long int
get_exponents (__vector double *p)
{
__vector double source = *p;
return vec_extract_exp (source);
}
/* { dg-final { scan-assembler "xvxexpdp" } } */
|