diff options
| author | Hal Finkel <hfinkel@anl.gov> | 2014-03-28 20:24:55 +0000 |
|---|---|---|
| committer | Hal Finkel <hfinkel@anl.gov> | 2014-03-28 20:24:55 +0000 |
| commit | 2583b0631043d3f777fbb2dfd9a81b7188118d2d (patch) | |
| tree | f02bd98a56bec156e339b2370af165042159d8be /llvm/lib | |
| parent | 498d82ee3e4cf391483d166886a391c5b21a2a21 (diff) | |
| download | bcm5719-llvm-2583b0631043d3f777fbb2dfd9a81b7188118d2d.tar.gz bcm5719-llvm-2583b0631043d3f777fbb2dfd9a81b7188118d2d.zip | |
[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.
llvm-svn: 205046
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index b8a042503d2..3bbc8397c92 100644 --- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -1351,7 +1351,7 @@ SDNode *PPCDAGToDAGISel::Select(SDNode *N) { 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 && |

