mirror of
https://github.com/intel/llvm.git
synced 2026-01-30 22:53:05 +08:00
[libc][NFC] For remquo quotient, compare only 3 bits of MPFR and libc results.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user