aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPan Li <pan2.li@intel.com>2023-05-08 16:48:54 +0800
committerPan Li <pan2.li@intel.com>2023-05-11 20:26:16 +0800
commit44564a4ab7b403598791ed9f0e866e94093a0b9d (patch)
tree585b40c346a96b153aff96c8a8b024e2f4094e44
parent6cb594f3ffca461ca6df56cc389f7b278e1047af (diff)
downloadgcc-44564a4ab7b403598791ed9f0e866e94093a0b9d.zip
gcc-44564a4ab7b403598791ed9f0e866e94093a0b9d.tar.gz
gcc-44564a4ab7b403598791ed9f0e866e94093a0b9d.tar.bz2
RISC-V: Update RVV integer compare simplification comments
The VMSET simplification RVV integer comparision has merged already. This patch would like to update the comments for the cases that the define_split will act on. Signed-off-by: Pan Li <pan2.li@intel.com> gcc/ChangeLog: * config/riscv/vector.md: Add comments for simplifying to vmset. Signed-off-by: Pan Li <pan2.li@intel.com>
-rw-r--r--gcc/config/riscv/vector.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/riscv/vector.md b/gcc/config/riscv/vector.md
index 75479f2..328fce8 100644
--- a/gcc/config/riscv/vector.md
+++ b/gcc/config/riscv/vector.md
@@ -8161,13 +8161,20 @@
;; -----------------------------------------------------------------------------
;; ---- Integer Compare Instructions Simplification
;; -----------------------------------------------------------------------------
-;; Simplify to VMCLR.m Includes:
+;; Simplify OP(V, V) Instructions to VMCLR.m Includes:
;; - 1. VMSNE
;; - 2. VMSLT
;; - 3. VMSLTU
;; - 4. VMSGT
;; - 5. VMSGTU
;; -----------------------------------------------------------------------------
+;; Simplify OP(V, V) Instructions to VMSET.m Includes:
+;; - 1. VMSEQ
+;; - 2. VMSLE
+;; - 3. VMSLEU
+;; - 4. VMSGE
+;; - 5. VMSGEU
+;; -----------------------------------------------------------------------------
(define_split
[(set (match_operand:VB 0 "register_operand")
(if_then_else:VB