@@ -169,11 +169,17 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM,
169
169
setLoadExtAction (ISD::EXTLOAD, MVT::f32 , MVT::f16 , Expand);
170
170
setLoadExtAction (ISD::EXTLOAD, MVT::f32 , MVT::bf16 , Expand);
171
171
setLoadExtAction (ISD::EXTLOAD, MVT::v2f32, MVT::v2f16, Expand);
172
+ setLoadExtAction (ISD::EXTLOAD, MVT::v2f32, MVT::v2bf16, Expand);
172
173
setLoadExtAction (ISD::EXTLOAD, MVT::v3f32, MVT::v3f16, Expand);
174
+ setLoadExtAction (ISD::EXTLOAD, MVT::v3f32, MVT::v3bf16, Expand);
173
175
setLoadExtAction (ISD::EXTLOAD, MVT::v4f32, MVT::v4f16, Expand);
176
+ setLoadExtAction (ISD::EXTLOAD, MVT::v4f32, MVT::v4bf16, Expand);
174
177
setLoadExtAction (ISD::EXTLOAD, MVT::v8f32, MVT::v8f16, Expand);
178
+ setLoadExtAction (ISD::EXTLOAD, MVT::v8f32, MVT::v8bf16, Expand);
175
179
setLoadExtAction (ISD::EXTLOAD, MVT::v16f32, MVT::v16f16, Expand);
180
+ setLoadExtAction (ISD::EXTLOAD, MVT::v16f32, MVT::v16bf16, Expand);
176
181
setLoadExtAction (ISD::EXTLOAD, MVT::v32f32, MVT::v32f16, Expand);
182
+ setLoadExtAction (ISD::EXTLOAD, MVT::v32f32, MVT::v32bf16, Expand);
177
183
178
184
setLoadExtAction (ISD::EXTLOAD, MVT::f64 , MVT::f32 , Expand);
179
185
setLoadExtAction (ISD::EXTLOAD, MVT::v2f64, MVT::v2f32, Expand);
@@ -185,10 +191,15 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM,
185
191
setLoadExtAction (ISD::EXTLOAD, MVT::f64 , MVT::f16 , Expand);
186
192
setLoadExtAction (ISD::EXTLOAD, MVT::f64 , MVT::bf16 , Expand);
187
193
setLoadExtAction (ISD::EXTLOAD, MVT::v2f64, MVT::v2f16, Expand);
194
+ setLoadExtAction (ISD::EXTLOAD, MVT::v2f64, MVT::v2bf16, Expand);
188
195
setLoadExtAction (ISD::EXTLOAD, MVT::v3f64, MVT::v3f16, Expand);
196
+ setLoadExtAction (ISD::EXTLOAD, MVT::v3f64, MVT::v3bf16, Expand);
189
197
setLoadExtAction (ISD::EXTLOAD, MVT::v4f64, MVT::v4f16, Expand);
198
+ setLoadExtAction (ISD::EXTLOAD, MVT::v4f64, MVT::v4bf16, Expand);
190
199
setLoadExtAction (ISD::EXTLOAD, MVT::v8f64, MVT::v8f16, Expand);
200
+ setLoadExtAction (ISD::EXTLOAD, MVT::v8f64, MVT::v8bf16, Expand);
191
201
setLoadExtAction (ISD::EXTLOAD, MVT::v16f64, MVT::v16f16, Expand);
202
+ setLoadExtAction (ISD::EXTLOAD, MVT::v16f64, MVT::v16bf16, Expand);
192
203
193
204
setOperationAction (ISD::STORE, MVT::f32 , Promote);
194
205
AddPromotedToType (ISD::STORE, MVT::f32 , MVT::i32 );
0 commit comments