[llvm] r215604 - [X86] Fix the value of the low mask for the lowering of MUL_LOHI for v4i32.
Quentin Colombet
qcolombet at apple.com
Wed Aug 13 16:49:24 PDT 2014
Author: qcolombet
Date: Wed Aug 13 18:49:24 2014
New Revision: 215604
URL: http://llvm.org/viewvc/llvm-project?rev=215604&view=rev
Log:
[X86] Fix the value of the low mask for the lowering of MUL_LOHI for v4i32.
Found by code inspection.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=215604&r1=215603&r2=215604&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Aug 13 18:49:24 2014
@@ -15876,7 +15876,7 @@ static SDValue LowerMUL_LOHI(SDValue Op,
} 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);
}
More information about the llvm-commits
mailing list