ph_sqrt.c
293 Bytes
////C: '-msoft-fp-single'
////C: '-march=rv64gczfh_x-fph -mabi=lp64d'
////A: '--has-fpack'
typedef half ph __attribute__((ext_vector_type(2)));
ph sqrtph(ph a);
int main(void)
{
volatile ph a;
volatile ph o;
// a.x = 1.23456789;
// a.y = 34.5678901;
o = sqrtph(a);
return 0;
}