// Compare all individual fields in fpscr static bool compareFPSCR(fpscr_t input, fpscr_t expected, fpscr_t result) { auto failed = false; CompareFPSCRField(rn); CompareFPSCRField(ni); CompareFPSCRField(xe); CompareFPSCRField(ze); CompareFPSCRField(ue); CompareFPSCRField(oe); CompareFPSCRField(ve); CompareFPSCRField(vxcvi); CompareFPSCRField(vxsqrt); CompareFPSCRField(vxsoft); CompareFPSCRField(fprf); CompareFPSCRField(fi); CompareFPSCRField(fr); CompareFPSCRField(vxvc); CompareFPSCRField(vximz); CompareFPSCRField(vxzdz); CompareFPSCRField(vxidi); CompareFPSCRField(vxisi); CompareFPSCRField(vxsnan); CompareFPSCRField(xx); CompareFPSCRField(zx); CompareFPSCRField(ux); CompareFPSCRField(ox); CompareFPSCRField(vx); CompareFPSCRField(fex); CompareFPSCRField(fx); return failed; }
// Compare all individual fields in fpscr static bool compareFPSCR(FloatingPointStatusAndControlRegister input, FloatingPointStatusAndControlRegister expected, FloatingPointStatusAndControlRegister result) { auto failed = false; CompareFPSCRField(rn); CompareFPSCRField(ni); CompareFPSCRField(xe); CompareFPSCRField(ze); CompareFPSCRField(ue); CompareFPSCRField(oe); CompareFPSCRField(ve); CompareFPSCRField(vxcvi); CompareFPSCRField(vxsqrt); CompareFPSCRField(vxsoft); CompareFPSCRField(fprf); CompareFPSCRField(fi); CompareFPSCRField(fr); CompareFPSCRField(vxvc); CompareFPSCRField(vximz); CompareFPSCRField(vxzdz); CompareFPSCRField(vxidi); CompareFPSCRField(vxisi); CompareFPSCRField(vxsnan); CompareFPSCRField(xx); CompareFPSCRField(zx); CompareFPSCRField(ux); CompareFPSCRField(ox); CompareFPSCRField(vx); CompareFPSCRField(fex); CompareFPSCRField(fx); return failed; }