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:
8dc5cad
)
PPC supports i32 / i64 pre-inc load / store.
author
Evan Cheng
<evan.cheng@apple.com>
Thu, 9 Nov 2006 19:11:50 +0000
(19:11 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Thu, 9 Nov 2006 19:11:50 +0000
(19:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31599
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 a850e473ddd24b0462f72e48cbf91527510b1261..a74823821788f9cfc827b15012be3fb9fa5efdf8 100644
(file)
--- a/
lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/
lib/Target/PowerPC/PPCISelLowering.cpp
@@
-50,6
+50,12
@@
PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
// PowerPC does not have truncstore for i1.
setStoreXAction(MVT::i1, Promote);
+ // PowerPC has i32 and i64 pre-inc load and store's.
+ setIndexedLoadAction(ISD::PRE_INC, MVT::i32, Legal);
+ setIndexedLoadAction(ISD::PRE_INC, MVT::i64, Legal);
+ setIndexedStoreAction(ISD::PRE_INC, MVT::i32, Legal);
+ setIndexedStoreAction(ISD::PRE_INC, MVT::i64, Legal);
+
setOperationAction(ISD::ConstantFP, MVT::f64, Expand);
setOperationAction(ISD::ConstantFP, MVT::f32, Expand);