Expand SELECT and SELECT_CC for NEON vector types.
authorBob Wilson <bob.wilson@apple.com>
Tue, 6 Apr 2010 22:02:24 +0000 (22:02 +0000)
committerBob Wilson <bob.wilson@apple.com>
Tue, 6 Apr 2010 22:02:24 +0000 (22:02 +0000)
Radar 7770501.

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

lib/Target/ARM/ARMISelLowering.cpp

index 77fb0c3cdbd0abb29ef1e655aa356487672b8745..4fb9599687794c46ffa5c88a897e2f4f8e8227a4 100644 (file)
@@ -90,6 +90,8 @@ void ARMTargetLowering::addTypeForNEON(EVT VT, EVT PromotedLdStVT,
   setOperationAction(ISD::VECTOR_SHUFFLE, VT.getSimpleVT(), Custom);
   setOperationAction(ISD::CONCAT_VECTORS, VT.getSimpleVT(), Custom);
   setOperationAction(ISD::EXTRACT_SUBVECTOR, VT.getSimpleVT(), Expand);
+  setOperationAction(ISD::SELECT, VT.getSimpleVT(), Expand);
+  setOperationAction(ISD::SELECT_CC, VT.getSimpleVT(), Expand);
   if (VT.isInteger()) {
     setOperationAction(ISD::SHL, VT.getSimpleVT(), Custom);
     setOperationAction(ISD::SRA, VT.getSimpleVT(), Custom);