]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm: [MVE intrinsics] Remove dead check for float type in parse_element_type
authorChristophe Lyon <christophe.lyon@linaro.org>
Mon, 14 Aug 2023 18:07:12 +0000 (18:07 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Mon, 28 Aug 2023 08:55:36 +0000 (08:55 +0000)
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.lyon@linaro.org>

gcc/
* config/arm/arm-mve-builtins-shapes.cc (parse_element_type):
Remove dead check.

gcc/config/arm/arm-mve-builtins-shapes.cc

index ef50c661fcd114626ff2b1b8544fe62a28c45d55..1f22201ac954cc844f9dd3abeacc61ab5eaaa848 100644 (file)
@@ -78,8 +78,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);