Fix a likely copy/paste error, where we check if ch == 'f' after we
checked it's either 's' or 'u'.

2023-08-14  Christophe Lyon  <christophe.l...@linaro.org>

        gcc/
        * config/arm/arm-mve-builtins-shapes.cc (parse_element_type):
        Remove dead check.
---
 gcc/config/arm/arm-mve-builtins-shapes.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc 
b/gcc/config/arm/arm-mve-builtins-shapes.cc
index 1633084608e..23eb9d0e69b 100644
--- a/gcc/config/arm/arm-mve-builtins-shapes.cc
+++ b/gcc/config/arm/arm-mve-builtins-shapes.cc
@@ -80,8 +80,7 @@ parse_element_type (const function_instance &instance, const 
char *&format)
 
   if (ch == 's' || ch == 'u')
     {
-      type_class_index tclass = (ch == 'f' ? TYPE_float
-                                : ch == 's' ? TYPE_signed
+      type_class_index tclass = (ch == 's' ? TYPE_signed
                                 : TYPE_unsigned);
       char *end;
       unsigned int bits = strtol (format, &end, 10);
-- 
2.34.1

Reply via email to