commit | 6a61317c632e6dde307340bddba338832d47d997 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@gmail.com> | Mon Apr 24 05:38:26 2017 +0000 |
committer | Craig Topper <craig.topper@gmail.com> | Mon Apr 24 05:38:26 2017 +0000 |
tree | 080009b934526805bd67567ca5ed854b70c706fe | |
parent | ccb223e38e3ddd0aa3b519d7b53f630bc857a7ec [diff] |
[APInt] Make behavior of ashr by BitWidth consistent between single and multi word. Previously single word would always return 0 regardless of the original sign. Multi word would return all 0s or all 1s based on the original sign. Now single word takes into account the sign as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301159 91177308-0d34-0410-b5e6-96231b3b80d8