diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2023-08-14 18:07:12 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2023-08-28 08:55:36 +0000 |
commit | 3f142ab6e6e9c0579c8e303291a0e209a14c23bf (patch) | |
tree | 07c531b1b32326845295c6e5cd6134176d445890 | |
parent | 23570163379fb08f25d95fbe184f3cd2468aa1b1 (diff) | |
download | gcc-3f142ab6e6e9c0579c8e303291a0e209a14c23bf.zip gcc-3f142ab6e6e9c0579c8e303291a0e209a14c23bf.tar.gz gcc-3f142ab6e6e9c0579c8e303291a0e209a14c23bf.tar.bz2 |
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 <christophe.lyon@linaro.org>
gcc/
* config/arm/arm-mve-builtins-shapes.cc (parse_element_type):
Remove dead check.
-rw-r--r-- | gcc/config/arm/arm-mve-builtins-shapes.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/arm-mve-builtins-shapes.cc index ef50c66..1f22201 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); |