Change APInt comparison with uint64_t.
authorPawel Bylica <chfast@gmail.com>
Wed, 1 Jul 2015 22:56:43 +0000 (22:56 +0000)
committerPawel Bylica <chfast@gmail.com>
Wed, 1 Jul 2015 22:56:43 +0000 (22:56 +0000)
commitc098b6e6e2d4ad84c5a89ae94199d3385748ddaf
tree6358925c0b4822054e1c15b78deec1002764a47d
parent3c76e5f5888a1cb7dddea2330973a6d23fae897b
Change APInt comparison with uint64_t.

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.

Test Plan: Unit tests added. No regressions. Self-hosted check-all done as well.

Reviewers: chandlerc, dexonsmith

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D10655

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241204 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APInt.h
unittests/ADT/APIntTest.cpp