[X86] Fix the value of the low mask for the lowering of MUL_LOHI for v4i32.
authorQuentin Colombet <qcolombet@apple.com>
Wed, 13 Aug 2014 23:49:24 +0000 (23:49 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Wed, 13 Aug 2014 23:49:24 +0000 (23:49 +0000)
Found by code inspection.

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

lib/Target/X86/X86ISelLowering.cpp

index 69da614bfc70c4d958c9364bc638d8cc97a4c94f..3f770200bb917cab68c9eaa3e1bbaf384b57aa95 100644 (file)
@@ -15876,7 +15876,7 @@ static SDValue LowerMUL_LOHI(SDValue Op, const X86Subtarget *Subtarget,
   } else {
     const int HighMask[] = {1, 5, 3, 7};
     Highs = DAG.getVectorShuffle(VT, dl, Mul1, Mul2, HighMask);
-    const int LowMask[] = {1, 4, 2, 6};
+    const int LowMask[] = {0, 4, 2, 6};
     Lows = DAG.getVectorShuffle(VT, dl, Mul1, Mul2, LowMask);
   }