projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
237d10d
)
Prepare ARMFastISel::SelectSIToFP for getRegForValue returning registers for i8 and...
author
Eli Friedman
<eli.friedman@gmail.com>
Wed, 25 May 2011 19:09:45 +0000
(19:09 +0000)
committer
Eli Friedman
<eli.friedman@gmail.com>
Wed, 25 May 2011 19:09:45 +0000
(19:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132073
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/ARMFastISel.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMFastISel.cpp
b/lib/Target/ARM/ARMFastISel.cpp
index 229c129ea85b5e0572f93f2892f648f9234b0f55..790a6e3b563d4fd902e26675e4c318c6d4fcaaa9 100644
(file)
--- a/
lib/Target/ARM/ARMFastISel.cpp
+++ b/
lib/Target/ARM/ARMFastISel.cpp
@@
-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;