summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-06-28 05:46:28 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-06-28 05:46:28 +0000
commitbd0717d7cc9c3a6c028ea6f5e7e7fbabe74c59d2 (patch)
treef021b1267cdbea8b31694e0f7e32a62cf77c8c1f /llvm/lib
parentd5821f36d94523ac7711b983fc6b433e954497e0 (diff)
downloadbcm5719-llvm-bd0717d7cc9c3a6c028ea6f5e7e7fbabe74c59d2.tar.gz
bcm5719-llvm-bd0717d7cc9c3a6c028ea6f5e7e7fbabe74c59d2.zip
[x86] Fix a bug in the v8i16 shuffling exposed by the new splat-like
lowering for v16i8. ASan and some bots caught this bug with existing test cases. Fixing it even fixed a miscompile with one of the test cases. I'm still a bit suspicious of this test case as I've not taken a proper amount of time to think about it, but the fix here is strict goodness. llvm-svn: 211976
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 8a00d6e2bc8..8a12c03e072 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -7535,7 +7535,7 @@ static SDValue lowerV8I16BasicBlendVectorShuffle(SDLoc DL, SDValue V1,
} else {
// Otherwise pin the low inputs.
for (int GoodInput : GoodInputs)
- MoveMask[Mask[GoodInput]] = Mask[GoodInput] - MaskOffset;
+ MoveMask[Mask[GoodInput] - MaskOffset] = Mask[GoodInput] - MaskOffset;
}
int MoveMaskIdx =
OpenPOWER on IntegriCloud