[llvm] [RISCV] Set the isMoveReg flag for FMV_X_W (PR #109378)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 19 23:31:06 PDT 2024


================
@@ -388,11 +388,11 @@ foreach Ext = FExts in {
 } // foreach Ext = FExts
 
 let Predicates = [HasStdExtF], mayRaiseFPException = 0,
-    IsSignExtendingOpW = 1 in
+    IsSignExtendingOpW = 1, isMoveReg = 1 in
 def FMV_X_W : FPUnaryOp_r<0b1110000, 0b00000, 0b000, GPR, FPR32, "fmv.x.w">,
               Sched<[WriteFMovF32ToI32, ReadFMovF32ToI32]>;
 
-let Predicates = [HasStdExtF], mayRaiseFPException = 0 in
+let Predicates = [HasStdExtF], mayRaiseFPException = 0, isMoveReg = 1 in
 def FMV_W_X : FPUnaryOp_r<0b1111000, 0b00000, 0b000, FPR32, GPR, "fmv.w.x">,
----------------
topperc wrote:

Only FMV_X_W is mentioned in the patch title

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


More information about the llvm-commits mailing list