[llvm-commits] [llvm] r132073 - /llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Eli Friedman
eli.friedman at gmail.com
Wed May 25 12:09:45 PDT 2011
Author: efriedma
Date: Wed May 25 14:09:45 2011
New Revision: 132073
URL: http://llvm.org/viewvc/llvm-project?rev=132073&view=rev
Log:
Prepare ARMFastISel::SelectSIToFP for getRegForValue returning registers for i8 and i16 values.
Modified:
llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFastISel.cpp?rev=132073&r1=132072&r2=132073&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Wed May 25 14:09:45 2011
@@ -1296,6 +1296,10 @@
if (!isTypeLegal(Ty, DstVT))
return false;
+ // FIXME: Handle sign-extension where necessary.
+ if (!I->getOperand(0)->getType()->isIntegerTy(32))
+ return false;
+
unsigned Op = getRegForValue(I->getOperand(0));
if (Op == 0) return false;
More information about the llvm-commits
mailing list