Skip to content

Commit 77da2f7

Browse files
shiltiansearlmc1
authored andcommitted
[AMDGPU][ISel] Set trunc store action to expand for v4f32->v4bf16 (llvm#90427)
Change-Id: Ia02d069252adb654fbbe669a1f3061caeb0040d2
1 parent e484461 commit 77da2f7

File tree

2 files changed

+431
-0
lines changed

2 files changed

+431
-0
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,16 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM,
300300

301301
setTruncStoreAction(MVT::f32, MVT::bf16, Expand);
302302
setTruncStoreAction(MVT::f32, MVT::f16, Expand);
303+
setTruncStoreAction(MVT::v2f32, MVT::v2bf16, Expand);
303304
setTruncStoreAction(MVT::v2f32, MVT::v2f16, Expand);
304305
setTruncStoreAction(MVT::v3f32, MVT::v3f16, Expand);
306+
setTruncStoreAction(MVT::v4f32, MVT::v4bf16, Expand);
305307
setTruncStoreAction(MVT::v4f32, MVT::v4f16, Expand);
308+
setTruncStoreAction(MVT::v8f32, MVT::v8bf16, Expand);
306309
setTruncStoreAction(MVT::v8f32, MVT::v8f16, Expand);
310+
setTruncStoreAction(MVT::v16f32, MVT::v16bf16, Expand);
307311
setTruncStoreAction(MVT::v16f32, MVT::v16f16, Expand);
312+
setTruncStoreAction(MVT::v32f32, MVT::v32bf16, Expand);
308313
setTruncStoreAction(MVT::v32f32, MVT::v32f16, Expand);
309314

310315
setTruncStoreAction(MVT::f64, MVT::bf16, Expand);

0 commit comments

Comments
 (0)