ph_call.c
312 Bytes
////C: '-menable-packedhalf'
////A: '--has-fpack --has-fhalf'
typedef half phalf __attribute__((ext_vector_type(2)));
void func(phalf arg)
{
volatile phalf l = arg;
}
const phalf c = {3.1415H, 1.2345H};
int main(void)
{
volatile phalf a = {1.11H, 2.78H};
func(a);
func(c);
a = c;
return 0;
}