summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-11-23 02:57:54 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-11-23 02:57:54 +0000
commit2a495975ed265fd249044afb83e4416df68410b9 (patch)
tree541d8a23d7591faec43179e9828c73eac011545f /llvm/lib/Target
parent28638f1e2cd6f5b8fdd661e124c2808bafc92efa (diff)
downloadbcm5719-llvm-2a495975ed265fd249044afb83e4416df68410b9.tar.gz
bcm5719-llvm-2a495975ed265fd249044afb83e4416df68410b9.zip
R600: Fix extloads of i1 on R600/Evergreen
llvm-svn: 222631
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/R600/R600ISelLowering.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/R600/R600ISelLowering.cpp b/llvm/lib/Target/R600/R600ISelLowering.cpp
index a214e533b1a..e22f38567d5 100644
--- a/llvm/lib/Target/R600/R600ISelLowering.cpp
+++ b/llvm/lib/Target/R600/R600ISelLowering.cpp
@@ -122,10 +122,15 @@ R600TargetLowering::R600TargetLowering(TargetMachine &TM) :
// EXTLOAD should be the same as ZEXTLOAD. It is legal for some address
// spaces, so it is custom lowered to handle those where it isn't.
+ setLoadExtAction(ISD::SEXTLOAD, MVT::i1, Promote);
setLoadExtAction(ISD::SEXTLOAD, MVT::i8, Custom);
setLoadExtAction(ISD::SEXTLOAD, MVT::i16, Custom);
+
+ setLoadExtAction(ISD::ZEXTLOAD, MVT::i1, Promote);
setLoadExtAction(ISD::ZEXTLOAD, MVT::i8, Custom);
setLoadExtAction(ISD::ZEXTLOAD, MVT::i16, Custom);
+
+ setLoadExtAction(ISD::EXTLOAD, MVT::i1, Promote);
setLoadExtAction(ISD::EXTLOAD, MVT::i8, Custom);
setLoadExtAction(ISD::EXTLOAD, MVT::i16, Custom);
OpenPOWER on IntegriCloud