Skip to content

Commit cc9a3b9

Browse files
committed
Avoid selecting e32 case on gfx12; not sure how to best check for requiring the op_sel form
1 parent e5063d7 commit cc9a3b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/VOP1Instructions.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ let OtherPredicates = [HasCvtFP8VOP1Bug] in {
590590
(V_CVT_F32_BF8_sdwa 0, $src, 0, 0, 0)>;
591591
}
592592

593-
let OtherPredicates = [HasNoCvtFP8VOP1Bug] in {
593+
let OtherPredicates = [HasNoCvtFP8VOP1Bug, HasSDWA] in { // FIXME: HasSDWA is a substitute for !gfx12
594594
def : GCNPat<(f32 (int_amdgcn_cvt_f32_fp8 i32:$src, 0)),
595595
(V_CVT_F32_FP8_e32 $src)>;
596596
def : GCNPat<(f32 (int_amdgcn_cvt_f32_bf8 i32:$src, 0)),

0 commit comments

Comments
 (0)