https://gcc.gnu.org/g:cf59bf844037ae952f5058d0fd49e1f4f0cf907e

commit r15-6411-gcf59bf844037ae952f5058d0fd49e1f4f0cf907e
Author: Pan Li <pan2...@intel.com>
Date:   Fri Dec 20 14:44:10 2024 +0800

    RISC-V: Fix the the operand alignment for strided load/store pattern [NFC]
    
    Just notice the unalignment operand for strided load/store pattern when
    bugfix the strided load/store memory alias, would like to make it align.
    
    gcc/ChangeLog:
    
            * config/riscv/autovec.md: Align the operand for strided
            load/store pattern.
    
    Signed-off-by: Pan Li <pan2...@intel.com>

Diff:
---
 gcc/config/riscv/autovec.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config/riscv/autovec.md b/gcc/config/riscv/autovec.md
index 2529dc77f221..88c0f00e0ea4 100644
--- a/gcc/config/riscv/autovec.md
+++ b/gcc/config/riscv/autovec.md
@@ -2903,7 +2903,7 @@
 ;; == Strided Load/Store
 ;; =========================================================================
 (define_expand "mask_len_strided_load_<mode>"
-  [(match_operand:V_VLS     0 "register_operand")
+  [(match_operand:V_VLS 0 "register_operand")
    (match_operand       1 "pmode_reg_or_0_operand")
    (match_operand       2 "pmode_reg_or_0_operand")
    (match_operand:<VM>  3 "vector_mask_operand")
@@ -2919,7 +2919,7 @@
 (define_expand "mask_len_strided_store_<mode>"
   [(match_operand       0 "pmode_reg_or_0_operand")
    (match_operand       1 "pmode_reg_or_0_operand")
-   (match_operand:V_VLS     2 "register_operand")
+   (match_operand:V_VLS 2 "register_operand")
    (match_operand:<VM>  3 "vector_mask_operand")
    (match_operand       4 "autovec_length_operand")
    (match_operand       5 "const_0_operand")]

Reply via email to