[gcc r12-7356] arm: Fix typo in auto-vectorized MVE comparisons

Christophe Lyon clyon@gcc.gnu.org
Wed Feb 23 06:44:33 GMT 2022


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

commit r12-7356-gfd0ab7c734b04b91653467b94afd48ceca122083
Author: Christophe Lyon <christophe.lyon@arm.com>
Date:   Wed Feb 23 06:44:12 2022 +0000

    arm: Fix typo in auto-vectorized MVE comparisons
    
    I made a last minute renaming of mve_const_bool_vec_to_hi () into
    mve_bool_vec_to_const () and forgot to update the call sites in vfp.md
    accordingly.
    
    Committed as obvious.
    
    2022-02-23  Christophe Lyon <christophe.lyon@arm.com>
    
            gcc/
            PR target/100757
            PR target/101325
            * config/arm/vfp.md (thumb2_movhi_vfp, thumb2_movhi_fp16): Fix
            typo.

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

diff --git a/gcc/config/arm/vfp.md b/gcc/config/arm/vfp.md
index f00d1cad3e9..d0f423cc3c5 100644
--- a/gcc/config/arm/vfp.md
+++ b/gcc/config/arm/vfp.md
@@ -89,7 +89,7 @@
       return "mov%?\t%0, %1\t%@ movhi";
     case 1:
       if (GET_MODE_CLASS (GET_MODE (operands[1])) == MODE_VECTOR_BOOL)
-        operands[1] = mve_const_bool_vec_to_hi (operands[1]);
+        operands[1] = mve_bool_vec_to_const (operands[1]);
       else
         operands[1] = gen_lowpart (HImode, operands[1]);
       return "mov%?\t%0, %1\t%@ movhi";
@@ -193,7 +193,7 @@
       return "mov%?\t%0, %1\t%@ movhi";
     case 1:
       if (GET_MODE_CLASS (GET_MODE (operands[1])) == MODE_VECTOR_BOOL)
-        operands[1] = mve_const_bool_vec_to_hi (operands[1]);
+        operands[1] = mve_bool_vec_to_const (operands[1]);
       else
         operands[1] = gen_lowpart (HImode, operands[1]);
       return "mov%?\t%0, %1\t%@ movhi";


More information about the Gcc-cvs mailing list