From: Juzhe-Zhong Date: Tue, 23 May 2023 14:24:22 +0000 (+0800) Subject: RISC-V: Fix warning of vxrm pattern X-Git-Tag: basepoints/gcc-15~9005 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=751da44bd9032878e3dbebc63f20aafec8794bd2;p=thirdparty%2Fgcc.git RISC-V: Fix warning of vxrm pattern I just notice the warning: ../../../riscv-gcc/gcc/config/riscv/vector.md:618:1: warning: source missing a mode? gcc/ChangeLog: * config/riscv/vector.md: Add mode. Signed-off-by: Juzhe-Zhong --- diff --git a/gcc/config/riscv/vector.md b/gcc/config/riscv/vector.md index ac2444309705..13b948626935 100644 --- a/gcc/config/riscv/vector.md +++ b/gcc/config/riscv/vector.md @@ -617,7 +617,7 @@ ;; Set VXRM (define_insn "vxrmsi" [(set (reg:SI VXRM_REGNUM) - (match_operand 0 "const_int_operand" "i"))] + (match_operand:SI 0 "const_int_operand" "i"))] "TARGET_VECTOR" "csrwi\tvxrm,%0" [(set_attr "type" "wrvxrm")