diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-11-09 19:11:50 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-11-09 19:11:50 +0000 |
commit | cd633192272c9c433af6f40621b2bf5a38a68f30 (patch) | |
tree | ee393e787d915b434ef50b73de1bc4ecbec8a1f0 /lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | 8dc5cad8a255caa4d12d4eba20ad66f3959d161c (diff) | |
download | external_llvm-cd633192272c9c433af6f40621b2bf5a38a68f30.zip external_llvm-cd633192272c9c433af6f40621b2bf5a38a68f30.tar.gz external_llvm-cd633192272c9c433af6f40621b2bf5a38a68f30.tar.bz2 |
PPC supports i32 / i64 pre-inc load / store.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index a850e47..a748238 100644 --- 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); |