[libc][NFC] For remquo quotient, compare only 3 bits of MPFR and libc results.

This commit is contained in:
Siva Chandra Reddy
2020-08-25 23:32:55 -07:00
parent c82078b5d7
commit fe44992b79

View File

@@ -448,7 +448,7 @@ bool compareBinaryOperationTwoOutputs(Operation op, const BinaryInput<T> &input,
if (mpfrIntResult != libcResult.i) {
if (op == Operation::RemQuo) {
if ((0x7 & mpfrIntResult) != libcResult.i)
if ((0x7 & mpfrIntResult) != (0x7 & libcResult.i))
return false;
} else {
return false;