OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6269ed1
)
Make UINT_TO_FP and SINT_TO_FP use generic expansion.
author
Jim Laskey
<jlaskey@mac.com>
Wed, 17 Aug 2005 00:40:22 +0000
(
00:40
+0000)
committer
Jim Laskey
<jlaskey@mac.com>
Wed, 17 Aug 2005 00:40:22 +0000
(
00:40
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22815
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCISelLowering.cpp
b/lib/Target/PowerPC/PPCISelLowering.cpp
index
deda6d7
..
8271bca
100644
(file)
--- a/
lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/
lib/Target/PowerPC/PPCISelLowering.cpp
@@
-74,6
+74,10
@@
PPC32TargetLowering::PPC32TargetLowering(TargetMachine &TM)
// PowerPC does not have FP_TO_UINT
setOperationAction(ISD::FP_TO_UINT, MVT::i32, Expand);
+ // PowerPC does not have [U|S]INT_TO_FP
+ setOperationAction(ISD::SINT_TO_FP, MVT::i32, Expand);
+ setOperationAction(ISD::UINT_TO_FP, MVT::i32, Expand);
+
setSetCCResultContents(ZeroOrOneSetCCResult);
addLegalFPImmediate(+0.0); // Necessary for FSEL
addLegalFPImmediate(-0.0); //