H A D | fpstuff.c | 30 static void check_fpstatus_bit(uint32_t usr, uint32_t expect, uint32_t flag, in check_fpstatus_bit() argument 34 if ((usr & bit) != (expect & bit)) { in check_fpstatus_bit() 35 printf("ERROR %s: usr = %d, expect = %d\n", name, in check_fpstatus_bit() 36 (usr >> flag) & 1, (expect >> flag) & 1); in check_fpstatus_bit() 41 static void check_fpstatus(uint32_t usr, uint32_t expect) in check_fpstatus() argument 43 check_fpstatus_bit(usr, expect, USR_FPINVF_BIT, "Invalid"); in check_fpstatus() 44 check_fpstatus_bit(usr, expect, USR_FPDBZF_BIT, "Div by zero"); in check_fpstatus() 45 check_fpstatus_bit(usr, expect, USR_FPOVFF_BIT, "Overflow"); in check_fpstatus() 46 check_fpstatus_bit(usr, expect, USR_FPUNFF_BIT, "Underflow"); in check_fpstatus() 47 check_fpstatus_bit(usr, expect, USR_FPINPF_BIT, "Inexact"); in check_fpstatus() [all …]
|