commit | a60832b0187642d01fd726dc766cd62587f6add0 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Wed Aug 13 23:12:35 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Wed Aug 13 23:12:35 2008 +0000 |
tree | fa65f83dbdff0f7079cc1fe1f45241fbcb59e784 | |
parent | 289983123ba4170c8a27e9638935818f8142bc89 [diff] |
Fix a bogus srem rule - a negative value srem'd by a power-of-2 can have a non-negative result; for example, -16%16 is 0. Also, clarify the related comments. This fixes PR2670. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54767 91177308-0d34-0410-b5e6-96231b3b80d8