Author: hans Date: Wed Feb 3 15:18:35 2016 New Revision: 259698 URL: http://llvm.org/viewvc/llvm-project?rev=259698&view=rev Log: Merging r259645: ------------------------------------------------------------------------ r259645 | nemanjai | 2016-02-03 04:53:38 -0800 (Wed, 03 Feb 2016) | 4 lines
Fix for PR 26381 Simple fix - Constant values were not being sign extended in FastIsel. ------------------------------------------------------------------------ Modified: llvm/branches/release_38/ (props changed) llvm/branches/release_38/lib/Target/PowerPC/PPCFastISel.cpp Propchange: llvm/branches/release_38/ ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Wed Feb 3 15:18:35 2016 @@ -1,3 +1,3 @@ /llvm/branches/Apple/Pertwee:110850,110961 /llvm/branches/type-system-rewrite:133420-134817 -/llvm/trunk:155241,257645,257648,257730,257775,257791,257875,257886,257902,257905,257925,257929-257930,257940,257942,257977,257979,257997,258168,258184,258207,258221,258273,258325,258406,258416,258428,258436,258471,258690,258729,258891,258971,259228,259236,259342,259346,259375 +/llvm/trunk:155241,257645,257648,257730,257775,257791,257875,257886,257902,257905,257925,257929-257930,257940,257942,257977,257979,257997,258168,258184,258207,258221,258273,258325,258406,258416,258428,258436,258471,258690,258729,258891,258971,259228,259236,259342,259346,259375,259645 Modified: llvm/branches/release_38/lib/Target/PowerPC/PPCFastISel.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_38/lib/Target/PowerPC/PPCFastISel.cpp?rev=259698&r1=259697&r2=259698&view=diff ============================================================================== --- llvm/branches/release_38/lib/Target/PowerPC/PPCFastISel.cpp (original) +++ llvm/branches/release_38/lib/Target/PowerPC/PPCFastISel.cpp Wed Feb 3 15:18:35 2016 @@ -2108,7 +2108,7 @@ unsigned PPCFastISel::PPCMaterializeInt( } // Construct the constant piecewise. - int64_t Imm = CI->getZExtValue(); + int64_t Imm = UseSExt ? CI->getSExtValue() : CI->getZExtValue(); if (VT == MVT::i64) return PPCMaterialize64BitInt(Imm, RC); _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits