]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm: Fix support_vector_misalignment.
authorRobin Dapp <rdapp@ventanamicro.com>
Thu, 9 Oct 2025 20:47:26 +0000 (22:47 +0200)
committerRobin Dapp <rdapp@ventanamicro.com>
Fri, 10 Oct 2025 09:01:42 +0000 (11:01 +0200)
In gcc-16-4314-g5e9eecc6686 I meant to remove all uses of TYPE
in support_vector_misalignment but apparently forgot this one.
Fixing by using the inner mode's size.

gcc/ChangeLog:

* config/arm/arm.cc (arm_builtin_support_vector_misalignment):
Remove use of type.

gcc/config/arm/arm.cc

index f074a429200b59b18c20dab33a6003950110edee..da28d96298a415bb2758eeae966e0045c2e6cec3 100644 (file)
@@ -30667,7 +30667,7 @@ arm_builtin_support_vector_misalignment (machine_mode mode,
 {
   if (TARGET_NEON && !BYTES_BIG_ENDIAN && unaligned_access)
     {
-      HOST_WIDE_INT align = TYPE_ALIGN_UNIT (type);
+      HOST_WIDE_INT align = GET_MODE_UNIT_SIZE (mode);
 
       if (is_gather_scatter)
        return true;