aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>2023-05-23 22:24:22 +0800
committerPan Li <pan2.li@intel.com>2023-05-23 22:25:30 +0800
commit751da44bd9032878e3dbebc63f20aafec8794bd2 (patch)
tree9cdd3195d3e5d4df1453354b374cf7f9d061adb6 /gcc
parent8d5f050dabbf6dd3b992c3b46661848dbcf30d9e (diff)
downloadgcc-751da44bd9032878e3dbebc63f20aafec8794bd2.zip
gcc-751da44bd9032878e3dbebc63f20aafec8794bd2.tar.gz
gcc-751da44bd9032878e3dbebc63f20aafec8794bd2.tar.bz2
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 <juzhe.zhong@rivai.ai>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/riscv/vector.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/riscv/vector.md b/gcc/config/riscv/vector.md
index ac24443..13b9486 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")