blob: a591e23872e4075930a89660a8675fe5ea897e6b [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O3 -mzarch -march=arch13 -mzvector -fno-asynchronous-unwind-tables -dp" } */
#include <vecintrin.h>
vector float
vcefb (vector signed int a)
{
return vec_float (a);
}
/* { dg-final { scan-assembler-times "vcefb.*\n\tvcefb.*floatv4siv4sf2" 1 } } */
vector float
vcelfb (vector unsigned int a)
{
return vec_float (a);
}
/* { dg-final { scan-assembler-times "vcelfb.*\n\tvcelfb.*floatunsv4siv4sf2" 1 } } */
vector float
vcefb_mem (vector signed int *a)
{
return vec_float (*a);
}
vector float
vcelfb_mem (vector unsigned int *a)
{
return vec_float (*a);
}
vector float
vcefb_imm ()
{
return vec_float ((vector signed int) { 1, -2 });
}
vector float
vcelfb_imm ()
{
return vec_float ((vector unsigned int){ 1, 2 });
}
/* { dg-final { scan-assembler-times "vcefb\t" 3 } } */
/* { dg-final { scan-assembler-times "vcelfb\t" 3 } } */