diff options
| author | Pawel Bylica <chfast@gmail.com> | 2015-04-24 07:38:39 +0000 |
|---|---|---|
| committer | Pawel Bylica <chfast@gmail.com> | 2015-04-24 07:38:39 +0000 |
| commit | 86ac44744a0207fea281fc2267fffaa69660fc03 (patch) | |
| tree | b2061f060822dd06e933c96c25d25b0645a2c780 /llvm/unittests/IR/ConstantsTest.cpp | |
| parent | bccb773ebc005cc1456b37f6c9e9d634efe46312 (diff) | |
| download | bcm5719-llvm-86ac44744a0207fea281fc2267fffaa69660fc03.tar.gz bcm5719-llvm-86ac44744a0207fea281fc2267fffaa69660fc03.zip | |
Fix APInt long division algorithm
Summary: This patch fixes step D4 of Knuth's division algorithm implementation. Negative sign of the step result was not always detected due to incorrect "borrow" handling.
Test Plan: Unit test that reveals the bug included.
Reviewers: chandlerc, yaron.keren
Reviewed By: yaron.keren
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D9196
llvm-svn: 235699
Diffstat (limited to 'llvm/unittests/IR/ConstantsTest.cpp')
0 files changed, 0 insertions, 0 deletions

