commit | c40dab20691fd33f49715104ea7182d3ce14d2b2 | [log] [tgz] |
---|---|---|
author | Juergen Ributzka <juergen@apple.com> | Thu Oct 16 16:41:15 2014 +0000 |
committer | Juergen Ributzka <juergen@apple.com> | Thu Oct 16 16:41:15 2014 +0000 |
tree | c43bccaa2502d0a8ba37c2892f3158d9023823b9 | |
parent | 3b72ec5083457366ae4b1c230ed1172f1e428dbe [diff] |
[AArch64] Fix miscompile of sdiv-by-power-of-2. When the constant divisor was larger than 32bits, then the optimized code generated for the AArch64 backend would emit the wrong code, because the shift was defined as a shift of a 32bit constant '(1<<Lg2(divisor))' and we would loose the upper 32bits. This fixes rdar://problem/18678801. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219934 91177308-0d34-0410-b5e6-96231b3b80d8