From: Christophe Lyon Date: Mon, 14 Aug 2023 18:07:12 +0000 (+0000) Subject: arm: [MVE intrinsics] Remove dead check for float type in parse_element_type X-Git-Tag: basepoints/gcc-15~6625 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f142ab6e6e9c0579c8e303291a0e209a14c23bf;p=thirdparty%2Fgcc.git arm: [MVE intrinsics] Remove dead check for float type in parse_element_type 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 gcc/ * config/arm/arm-mve-builtins-shapes.cc (parse_element_type): Remove dead check. --- diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/arm-mve-builtins-shapes.cc index ef50c661fcd1..1f22201ac954 100644 --- a/gcc/config/arm/arm-mve-builtins-shapes.cc +++ b/gcc/config/arm/arm-mve-builtins-shapes.cc @@ -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);