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)
commitea46a66ea2a560724a7aa28b6d322cc76c3a6ea4
treeb593cacf2e4c034d10e11413286ce6e69587a07c
parent9b5eca903bbeb720ceb8e8e70824c9ec5794b56c
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

llvm-svn: 241204
llvm/include/llvm/ADT/APInt.h
llvm/unittests/ADT/APIntTest.cpp