ph_asm2.c 253 Bytes BlameHistoryPermalink Edit 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ////C: '-msoft-fp-single' typedef half phalf __attribute__((ext_vector_type(2))); int main(void) { volatile phalf a,b,z; asm("fadd.ph %0,%1,%2" : "=f"(z) : "f"(a),"f"(b)); asm("fmul.ph %0,%1,%2" : "=f"(z) : "If"(a),"If"(b)); return 0; }