]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix warning of vxrm pattern
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Tue, 23 May 2023 14:24:22 +0000 (22:24 +0800)
committerPan Li <pan2.li@intel.com>
Tue, 23 May 2023 14:25:30 +0000 (22:25 +0800)
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 <juzhe.zhong@rivai.ai>
gcc/config/riscv/vector.md

index ac2444309705476ffcf80270cd700fe5e18cd54b..13b94862693565991044be43d63de9305cd8ac03 100644 (file)
 ;; 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")