mirror of
https://github.com/intel/llvm.git
synced 2026-02-01 17:07:36 +08:00
Prepare ARMFastISel::SelectSIToFP for getRegForValue returning registers for i8 and i16 values.
llvm-svn: 132073
This commit is contained in:
@@ -1296,6 +1296,10 @@ bool ARMFastISel::SelectSIToFP(const Instruction *I) {
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user