commit | e0a5f73cd5e9d432f88e6c3f0fb933f4c6c9764a | [log] [tgz] |
---|---|---|
author | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | Thu Feb 04 23:14:42 2016 +0000 |
committer | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | Thu Feb 04 23:14:42 2016 +0000 |
tree | 4b4073e457b4d1b13c41d12e7531854218c89ac3 | |
parent | cb8e306b6b3b37ad81f7417796933413d2ed1bd7 [diff] |
Fix for PR 26356 Using the load immediate only when the immediate (whether signed or unsigned) can fit in a 16-bit signed field. Namely, from -32768 to 32767 for signed and 0 to 65535 for unsigned. This patch also ensures that we sign-extend under the right conditions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259840 91177308-0d34-0410-b5e6-96231b3b80d8