This is an archive of the discontinued LLVM Phabricator instance.

Change APInt comparison with uint64_t.
ClosedPublic

Authored by chfast on Jun 23 2015, 8:14 AM.

Details

Summary

This patch changes the way APInt is compared with a value of type uint64_t.
Before the uint64_t value was truncated to the size of APInt before comparison.
Now the comparison takes into account full 64-bit precision.

Diff Detail

Repository
rL LLVM

Event Timeline

chfast updated this revision to Diff 28244.Jun 23 2015, 8:14 AM
chfast retitled this revision from to Change APInt comparison with uint64_t..
chfast updated this object.
chfast edited the test plan for this revision. (Show Details)
chfast added a reviewer: chandlerc.
chfast added a subscriber: Unknown Object (MLST).
chfast updated this revision to Diff 28469.Jun 25 2015, 9:14 AM

Fixes and more unit tests.

chfast updated this revision to Diff 28759.Jun 30 2015, 1:58 AM

Cleanup, improve names and fix UB in APIntTest.compare* unit tests.

This revision was automatically updated to reflect the committed changes.