summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-09-14 02:36:14 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-09-14 02:36:14 +0000
commit333a59eced18579363b7d11a04f97bca6553edc7 (patch)
tree3d63359383bf90cc9b26691dc5ed5ad8e77263ff /llvm/lib
parenta9e7fb678d2c391d68a262cd614b76d3e305d71e (diff)
downloadbcm5719-llvm-333a59eced18579363b7d11a04f97bca6553edc7.tar.gz
bcm5719-llvm-333a59eced18579363b7d11a04f97bca6553edc7.zip
Vector shuffle mask <i32 4, i32 5, i32 2, i32 3> should yield "movsd", not "movss".
llvm-svn: 139686
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 988b55739e0..0839ecd1755 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -6348,7 +6348,9 @@ SDValue getMOVLP(SDValue &Op, DebugLoc &dl, SelectionDAG &DAG, bool HasSSE2) {
// matching to x86 specific nodes. Note that for the 1st condition all
// types are matched with movsd.
if (HasSSE2) {
- if (NumElems == 2)
+ // FIXME: isMOVLMask should be checked and matched before getMOVLP,
+ // as to remove this logic from here, as much as possible
+ if (NumElems == 2 || !X86::isMOVLMask(SVOp))
return getTargetShuffleNode(X86ISD::MOVSD, dl, VT, V1, V2, DAG);
return getTargetShuffleNode(X86ISD::MOVSS, dl, VT, V1, V2, DAG);
}
OpenPOWER on IntegriCloud