Merging r259177:
authorHans Wennborg <hans@hanshq.net>
Wed, 3 Feb 2016 22:00:13 +0000 (22:00 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 3 Feb 2016 22:00:13 +0000 (22:00 +0000)
commit0a7ec6ced609c340fc4028aa8a65996623dd4181
tree4d29a9598d6a039c782a028c932317777634d21c
parent6b78a48f5c068df653f1c12d2ad7832aaa45c7a1
Merging r259177:
------------------------------------------------------------------------
r259177 | echristo | 2016-01-28 23:20:01 -0800 (Thu, 28 Jan 2016) | 5 lines

Since LI/LIS sign extend the constant passed into the instruction we should
check that the sign extended constant fits into 16-bits if we want a
zero extended value, otherwise go ahead and put it together piecemeal.

Fixes PR26356.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_38@259713 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCFastISel.cpp
test/CodeGen/PowerPC/fast-isel-ret.ll