diff options
| author | Craig Topper <craig.topper@intel.com> | 2019-08-21 19:14:48 +0000 | 
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2019-08-21 19:14:48 +0000 | 
| commit | 3f59bfd5be39687cd3a853aaffe8ef2d84ab2ff8 (patch) | |
| tree | 81bd7b3ebdfcfb7bbe8f62d426581b79eabd0a59 /llvm/lib/Target | |
| parent | 8d5fbecf8ba7a2ef98d003e5d1f85c023b761ad2 (diff) | |
| download | bcm5719-llvm-3f59bfd5be39687cd3a853aaffe8ef2d84ab2ff8.tar.gz bcm5719-llvm-3f59bfd5be39687cd3a853aaffe8ef2d84ab2ff8.zip | |
[MVT] Add v16f16 and v32f16 vectors.
I might look at improving PR43065 which will require being
able to mark a 256 and 512 bit vector of f16 as Legal.
Differential Revision: https://reviews.llvm.org/D66515
llvm-svn: 369565
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp index c50f7998514..fcf17407b9e 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp @@ -157,6 +157,8 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM,    setLoadExtAction(ISD::EXTLOAD, MVT::v3f32, MVT::v3f16, Expand);    setLoadExtAction(ISD::EXTLOAD, MVT::v4f32, MVT::v4f16, Expand);    setLoadExtAction(ISD::EXTLOAD, MVT::v8f32, MVT::v8f16, Expand); +  setLoadExtAction(ISD::EXTLOAD, MVT::v16f32, MVT::v16f16, Expand); +  setLoadExtAction(ISD::EXTLOAD, MVT::v32f32, MVT::v32f16, Expand);    setLoadExtAction(ISD::EXTLOAD, MVT::f64, MVT::f32, Expand);    setLoadExtAction(ISD::EXTLOAD, MVT::v2f64, MVT::v2f32, Expand); @@ -219,6 +221,8 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM,    setTruncStoreAction(MVT::v3f32, MVT::v3f16, Expand);    setTruncStoreAction(MVT::v4f32, MVT::v4f16, Expand);    setTruncStoreAction(MVT::v8f32, MVT::v8f16, Expand); +  setTruncStoreAction(MVT::v16f32, MVT::v16f16, Expand); +  setTruncStoreAction(MVT::v32f32, MVT::v32f16, Expand);    setTruncStoreAction(MVT::f64, MVT::f16, Expand);    setTruncStoreAction(MVT::f64, MVT::f32, Expand); | 

