[llvm] r205046 - [PowerPC] Fix VSX permutation isel
Hal Finkel
hfinkel at anl.gov
Fri Mar 28 13:24:56 PDT 2014
Author: hfinkel
Date: Fri Mar 28 15:24:55 2014
New Revision: 205046
URL: http://llvm.org/viewvc/llvm-project?rev=205046&view=rev
Log:
[PowerPC] Fix VSX permutation isel
Not only did I invert the indices when I wrote the code, but I also did the
same thing when I wrote the regression test. Oops.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/trunk/test/CodeGen/PowerPC/vsx.ll
Modified: llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp?rev=205046&r1=205045&r2=205046&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp Fri Mar 28 15:24:55 2014
@@ -1351,7 +1351,7 @@ SDNode *PPCDAGToDAGISel::Select(SDNode *
else
DM[i] = 1;
- SDValue DMV = CurDAG->getTargetConstant(DM[0] | (DM[1] << 1), MVT::i32);
+ SDValue DMV = CurDAG->getTargetConstant(DM[1] | (DM[0] << 1), MVT::i32);
if (Op1 == Op2 && DM[0] == 0 && DM[1] == 0 &&
Op1.getOpcode() == ISD::SCALAR_TO_VECTOR &&
Modified: llvm/trunk/test/CodeGen/PowerPC/vsx.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/vsx.ll?rev=205046&r1=205045&r2=205046&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/vsx.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/vsx.ll Fri Mar 28 15:24:55 2014
@@ -465,7 +465,7 @@ define <2 x double> @test54(<2 x double>
ret <2 x double> %v
; CHECK-LABEL: @test54
-; CHECK: xxpermdi 34, 34, 35, 1
+; CHECK: xxpermdi 34, 34, 35, 2
; CHECK: blr
}
More information about the llvm-commits
mailing list