@@ -169,11 +169,17 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM,
169169 setLoadExtAction (ISD::EXTLOAD, MVT::f32 , MVT::f16 , Expand);
170170 setLoadExtAction (ISD::EXTLOAD, MVT::f32 , MVT::bf16 , Expand);
171171 setLoadExtAction (ISD::EXTLOAD, MVT::v2f32, MVT::v2f16, Expand);
172+ setLoadExtAction (ISD::EXTLOAD, MVT::v2f32, MVT::v2bf16, Expand);
172173 setLoadExtAction (ISD::EXTLOAD, MVT::v3f32, MVT::v3f16, Expand);
174+ setLoadExtAction (ISD::EXTLOAD, MVT::v3f32, MVT::v3bf16, Expand);
173175 setLoadExtAction (ISD::EXTLOAD, MVT::v4f32, MVT::v4f16, Expand);
176+ setLoadExtAction (ISD::EXTLOAD, MVT::v4f32, MVT::v4bf16, Expand);
174177 setLoadExtAction (ISD::EXTLOAD, MVT::v8f32, MVT::v8f16, Expand);
178+ setLoadExtAction (ISD::EXTLOAD, MVT::v8f32, MVT::v8bf16, Expand);
175179 setLoadExtAction (ISD::EXTLOAD, MVT::v16f32, MVT::v16f16, Expand);
180+ setLoadExtAction (ISD::EXTLOAD, MVT::v16f32, MVT::v16bf16, Expand);
176181 setLoadExtAction (ISD::EXTLOAD, MVT::v32f32, MVT::v32f16, Expand);
182+ setLoadExtAction (ISD::EXTLOAD, MVT::v32f32, MVT::v32bf16, Expand);
177183
178184 setLoadExtAction (ISD::EXTLOAD, MVT::f64 , MVT::f32 , Expand);
179185 setLoadExtAction (ISD::EXTLOAD, MVT::v2f64, MVT::v2f32, Expand);
@@ -185,10 +191,15 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM,
185191 setLoadExtAction (ISD::EXTLOAD, MVT::f64 , MVT::f16 , Expand);
186192 setLoadExtAction (ISD::EXTLOAD, MVT::f64 , MVT::bf16 , Expand);
187193 setLoadExtAction (ISD::EXTLOAD, MVT::v2f64, MVT::v2f16, Expand);
194+ setLoadExtAction (ISD::EXTLOAD, MVT::v2f64, MVT::v2bf16, Expand);
188195 setLoadExtAction (ISD::EXTLOAD, MVT::v3f64, MVT::v3f16, Expand);
196+ setLoadExtAction (ISD::EXTLOAD, MVT::v3f64, MVT::v3bf16, Expand);
189197 setLoadExtAction (ISD::EXTLOAD, MVT::v4f64, MVT::v4f16, Expand);
198+ setLoadExtAction (ISD::EXTLOAD, MVT::v4f64, MVT::v4bf16, Expand);
190199 setLoadExtAction (ISD::EXTLOAD, MVT::v8f64, MVT::v8f16, Expand);
200+ setLoadExtAction (ISD::EXTLOAD, MVT::v8f64, MVT::v8bf16, Expand);
191201 setLoadExtAction (ISD::EXTLOAD, MVT::v16f64, MVT::v16f16, Expand);
202+ setLoadExtAction (ISD::EXTLOAD, MVT::v16f64, MVT::v16bf16, Expand);
192203
193204 setOperationAction (ISD::STORE, MVT::f32 , Promote);
194205 AddPromotedToType (ISD::STORE, MVT::f32 , MVT::i32 );
0 commit comments