blob: 6d081bd471586d5a5f80ae27c917ee01f464d123 (
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
|
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-options "-mvsx" } */
/* { dg-require-effective-target powerpc_vsx } */
#include <altivec.h>
vector float *vecfloat;
vector double *vecdouble;
int main2 ()
{
*vecdouble++ = vec_unpackl(vecfloat[0]);
*vecdouble++ = vec_unpackh(vecfloat[0]);
return 0;
}
/* Expected results:
vec_unpackl xvcvspdp
vec_unpackh xvcvspdp
*/
/* { dg-final { scan-assembler-times "xvcvspdp" 2 } } */
|