[gcc(refs/users/clyon/heads/mve-autovec)] fix? pb with mve_vector_mem_operand

Christophe Lyon clyon@gcc.gnu.org
Wed Jan 12 08:29:03 GMT 2022


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

commit d2c178bea087b0b030f6436e692930b83ac8fa59
Author: Christophe Lyon <christophe.lyon@foss.st.com>
Date:   Wed Dec 8 08:01:07 2021 +0000

    fix? pb with mve_vector_mem_operand

Diff:
---
 gcc/config/arm/arm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 3b6a52ce40c..9d634a59d9f 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -13478,7 +13478,7 @@ mve_vector_mem_operand (machine_mode mode, rtx op, bool strict)
 	  case E_V4HImode:
 	  case E_V4HFmode:
 	    if (val % 2 == 0 && abs (val) <= 254)
-	      return reg_no <= LAST_LO_REGNUM
+	      return reg_no <= LAST_ARM_REGNUM
 		|| reg_no >= FIRST_PSEUDO_REGISTER;
 	    return FALSE;
 	  case E_V4SImode:


More information about the Gcc-cvs mailing list