mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-24 12:29:33 +00:00
Prepare ARMFastISel::SelectSIToFP for getRegForValue returning registers for i8 and i16 values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132073 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
237d10db8c
commit
783c66414a
@ -1296,6 +1296,10 @@ bool ARMFastISel::SelectSIToFP(const Instruction *I) {
|
|||||||
if (!isTypeLegal(Ty, DstVT))
|
if (!isTypeLegal(Ty, DstVT))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// FIXME: Handle sign-extension where necessary.
|
||||||
|
if (!I->getOperand(0)->getType()->isIntegerTy(32))
|
||||||
|
return false;
|
||||||
|
|
||||||
unsigned Op = getRegForValue(I->getOperand(0));
|
unsigned Op = getRegForValue(I->getOperand(0));
|
||||||
if (Op == 0) return false;
|
if (Op == 0) return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user