ph_cmp.c
349 Bytes
////C: '-msoft-fp-half'
////A: '--has-fhalf --has-fpack'
typedef half ph __attribute__((ext_vector_type(2)));
int main(void)
{
volatile ph a,b;
// volatile ph o;
// a.x = 1.23456789h;
// a.y = 34.5678901h;
// b.x = 2.3456789h;
// b.y = 9.87654321h;
// int o = (a == b);
if (a==b)
return 1;
else
return 0;
// return o;
}