]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/aarch64/aarch64.c
aarch64: Fix an ICE in aarch64_short_vector_p [PR95459]
[thirdparty/gcc.git] / gcc / config / aarch64 / aarch64.c
index 7feff77adf6b7f84b19dca7894323a116a2c0dc9..6352d4ff78ad183d5e7de86e62b267803347ddfe 100644 (file)
@@ -16800,7 +16800,8 @@ aarch64_short_vector_p (const_tree type,
     {
       /* Rely only on the type, not the mode, when processing SVE types.  */
       if (type && aarch64_some_values_include_pst_objects_p (type))
-       gcc_assert (aarch64_sve_mode_p (mode));
+       /* Leave later code to report an error if SVE is disabled.  */
+       gcc_assert (!TARGET_SVE || aarch64_sve_mode_p (mode));
       else
        size = GET_MODE_SIZE (mode);
     }