diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-11-23 02:57:54 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-11-23 02:57:54 +0000 |
| commit | 2a495975ed265fd249044afb83e4416df68410b9 (patch) | |
| tree | 541d8a23d7591faec43179e9828c73eac011545f /llvm/lib/Target | |
| parent | 28638f1e2cd6f5b8fdd661e124c2808bafc92efa (diff) | |
| download | bcm5719-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.cpp | 5 |
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); |

