blob: b93b95daf2521f06ac4452c768efa52f96b5bd4b [file] [log] [blame]
/* { dg-compile } */
typedef unsigned int __attribute__((vector_size(16))) v4si;
typedef float __attribute__((vector_size(16))) v4sf;
v4si
touint (v4sf a)
{
v4si out = (v4si){ (unsigned int)a[0], (unsigned int)a[1],
(unsigned int)a[2], (unsigned int)a[3] };
return out;
}
/* { dg-final { scan-assembler-times "vclfeb\t%v24,%v24,0,5" 1 } } */
v4sf
tofloat (v4si a)
{
v4sf out = (v4sf){ (float)a[0], (float)a[1],
(float)a[2], (float)a[3] };
return out;
}
/* { dg-final { scan-assembler-times "vcelfb\t%v24,%v24,0,0" 1 } } */