Fix a couple of bugs in permute/splat generate, thanks to Nate for actually
authorChris Lattner <sabre@nondot.org>
Mon, 20 Mar 2006 18:26:51 +0000 (18:26 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 20 Mar 2006 18:26:51 +0000 (18:26 +0000)
figuring these out! :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26904 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCInstrInfo.td

index ee41ed13b4640e21bcfef6d7972460093148cdf3..a50664d1ba0e78dfb7035f78f86d32244cb6b8f8 100644 (file)
@@ -599,8 +599,6 @@ SDOperand PPCTargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
     
     // Store the input value into Value#0 of the stack slot.
     unsigned InSize = MVT::getSizeInBits(Op.getOperand(0).getValueType())/8;
-    FIdx = DAG.getNode(ISD::ADD, MVT::i32, FIdx,
-                       DAG.getConstant(16-InSize, MVT::i32));
     SDOperand Store = DAG.getNode(ISD::STORE, MVT::Other, DAG.getEntryNode(),
                                   Op.getOperand(0), FIdx,DAG.getSrcValue(NULL));
     return DAG.getNode(PPCISD::LVE_X, Op.getValueType(), Store, FIdx, 
index 8af3e87723c1669c07f8a68a1a44ceaef4bcf2ab..0eee1488769a30853dfbb364d390ca27956eeca6 100644 (file)
@@ -961,7 +961,7 @@ def VNMSUBFP: VAForm_1<47, (ops VRRC:$vD, VRRC:$vA, VRRC:$vB, VRRC:$vC),
                        Requires<[FPContractions]>;
 
 def VPERM   : VAForm_1<43, (ops VRRC:$vD, VRRC:$vA, VRRC:$vB, VRRC:$vC),
-                       "vperm $vD, $vA, $vC, $vB", VecPerm,
+                       "vperm $vD, $vA, $vB, $vC", VecPerm,
                        [(set VRRC:$vD,
                              (PPCvperm (v4f32 VRRC:$vA), VRRC:$vB, VRRC:$vC))]>;