commit | be4988823a0a069750895c30febd0f01e9477bed | [log] [tgz] |
---|---|---|
author | Jim Stichnoth <stichnot@chromium.org> | Tue Sep 15 21:53:14 2015 -0700 |
committer | Jim Stichnoth <stichnot@chromium.org> | Tue Sep 15 21:53:14 2015 -0700 |
tree | 4e4a39d9fe7a163100d600123cdd23c9777e7da4 | |
parent | ad2989b6e497f6237a3ae66ae3cfbcceaa99d4f5 [diff] |
Subzero: Generate correct code for shifts by a large immediate. X86 requires an immediate shift value to fit within 8 bits. It's undefined LLVM behavior if it doesn't (or in fact if the value exceeds the number of bits in the type width), but at least we can produce valid x86 instructions. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4316 R=ascull@google.com Review URL: https://codereview.chromium.org/1339603006 .