]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: Remove constraint z from movsi_internal
authorXi Ruoyao <xry111@xry111.site>
Thu, 14 Dec 2023 12:19:47 +0000 (20:19 +0800)
committerXi Ruoyao <xry111@xry111.site>
Thu, 18 Jan 2024 09:07:41 +0000 (17:07 +0800)
We don't allow SImode in FCC, so constraint z is never really used
here.

gcc/ChangeLog:

* config/loongarch/loongarch.md (movsi_internal): Remove
constraint z.

gcc/config/loongarch/loongarch.md

index ebc0476ea6f5bbd905cda99f375334b9574cac32..dda3cdf8be57cec6404c0eae6df603e6ca2e1b45 100644 (file)
 })
 
 (define_insn_and_split "*movsi_internal"
-  [(set (match_operand:SI 0 "nonimmediate_operand" "=r,r,r,w,*f,f,*r,*m,*r,*z")
-       (match_operand:SI 1 "move_operand" "r,Yd,w,rJ,*r*J,m,*f,*f,*z,*r"))]
+  [(set (match_operand:SI 0 "nonimmediate_operand" "=r,r,r,w,*f,f,*r,*m")
+       (match_operand:SI 1 "move_operand" "r,Yd,w,rJ,*r*J,m,*f,*f"))]
   "(register_operand (operands[0], SImode)
     || reg_or_0_operand (operands[1], SImode))"
   { return loongarch_output_move (operands[0], operands[1]); }
   DONE;
 }
   "
-  [(set_attr "move_type" "move,const,load,store,mgtf,fpload,mftg,fpstore,mftg,mgtf")
+  [(set_attr "move_type" "move,const,load,store,mgtf,fpload,mftg,fpstore")
    (set_attr "mode" "SI")])
 
 ;; 16-bit Integer moves