[llvm] Add FPMR register and update dependencies of FP8 instructions (PR #102910)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 13 06:38:28 PDT 2024


================
@@ -922,7 +922,9 @@ defm FCVT_Z2Z_HtoB  : sme2_fp8_cvt_vg2_single<"fcvt",   0b0>;
 defm BFCVT_Z2Z_HtoB : sme2_fp8_cvt_vg2_single<"bfcvt",  0b1>;
 defm FCVT_Z4Z_StoB  : sme2_fp8_cvt_vg4_single<"fcvt",   0b0>;
 defm FCVTN_Z4Z_StoB : sme2_fp8_cvt_vg4_single<"fcvtn",  0b1>;
+} // [HasSME2, HasFP8]
 
+let Uses=[FPCR], Predicates = [HasSME2, HasFP8] in {
----------------
Lukacma wrote:

I was questioning whether to make this change at all. It seems like all FP instructions are missing dependency on FPCR and that needs to be fixed as separate task. In this patch I focused only on FP8 instructions, that's why I updated it like this, with the hope that whoever ends up updating all the FP ones will make changes for this as appropriate. But maybe the better approach would be to leave fscale unchanged and fix it when fixing other fp instructions

https://github.com/llvm/llvm-project/pull/102910


More information about the llvm-commits mailing list