summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-07-18 21:43:35 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-07-18 21:43:35 +0000
commit67ae4762ef8fb2a242fa8853fe1d0e30e7ccd4e4 (patch)
tree12cf558aeb987349af68f13dd1338db6569ffb57 /llvm/lib/Target/R600/AMDGPUISelLowering.cpp
parent4227022673d0cbd155ea708b3e276ab95635e6fe (diff)
downloadbcm5719-llvm-67ae4762ef8fb2a242fa8853fe1d0e30e7ccd4e4.tar.gz
bcm5719-llvm-67ae4762ef8fb2a242fa8853fe1d0e30e7ccd4e4.zip
R600: Expand VSELECT for all types
llvm-svn: 186613
Diffstat (limited to 'llvm/lib/Target/R600/AMDGPUISelLowering.cpp')
-rw-r--r--llvm/lib/Target/R600/AMDGPUISelLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUISelLowering.cpp b/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
index c9df89c2d70..e2fd369f869 100644
--- a/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
+++ b/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
@@ -77,6 +77,8 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) :
setOperationAction(ISD::UDIV, MVT::i32, Expand);
setOperationAction(ISD::UDIVREM, MVT::i32, Custom);
setOperationAction(ISD::UREM, MVT::i32, Expand);
+ setOperationAction(ISD::VSELECT, MVT::v2f32, Expand);
+ setOperationAction(ISD::VSELECT, MVT::v4f32, Expand);
static const int types[] = {
(int)MVT::v2i32,
@@ -97,6 +99,7 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) :
setOperationAction(ISD::SUB, VT, Expand);
setOperationAction(ISD::UDIV, VT, Expand);
setOperationAction(ISD::UREM, VT, Expand);
+ setOperationAction(ISD::VSELECT, VT, Expand);
setOperationAction(ISD::XOR, VT, Expand);
}
}
OpenPOWER on IntegriCloud