]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix sve-sizeless-[12].C for aggregate change
authorAndrew Pinski <quic_apinski@quicinc.com>
Sun, 1 Dec 2024 04:49:48 +0000 (20:49 -0800)
committerAndrew Pinski <quic_apinski@quicinc.com>
Sun, 1 Dec 2024 04:49:48 +0000 (20:49 -0800)
Since r15-5777-g761cf60218890a, the SVE types are considered
an aggregate since they are now acting similar as a GNU vector.

Pushed as obvious after a quick test for aarch64-linux-gnu.

gcc/testsuite/ChangeLog:

* g++.dg/ext/sve-sizeless-1.C: SVE vectors are now aggregates.
* g++.dg/ext/sve-sizeless-2.C: Likewise.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/testsuite/g++.dg/ext/sve-sizeless-1.C
gcc/testsuite/g++.dg/ext/sve-sizeless-2.C

index 1e00518d0e41ed9c221bc593af64cc7b84288986..0d62bd7f39e9b005eea11ff4bbbb1345b0361478 100644 (file)
@@ -351,7 +351,7 @@ statements (int n)
   { typedef int f[__has_unique_object_representations (svint8_t) ? 1 : -1]; }
   { typedef int f[!__has_virtual_destructor (svint8_t) ? 1 : -1]; }
   { typedef int f[!__is_abstract (svint8_t) ? 1 : -1]; }
-  { typedef int f[!__is_aggregate (svint8_t) ? 1 : -1]; }
+  { typedef int f[__is_aggregate (svint8_t) ? 1 : -1]; }
   { typedef int f[!__is_base_of (svint8_t, svint8_t) ? 1 : -1]; }
   { typedef int f[!__is_base_of (svint8_t, svint16_t) ? 1 : -1]; }
   { typedef int f[!__is_class (svint8_t) ? 1 : -1]; }
index e6423d572f09de40b690277728c6dde22d6daede..51def2441df9361448a571dbfa0c15824dbca82c 100644 (file)
@@ -351,7 +351,7 @@ statements (int n)
   { typedef int f[__has_unique_object_representations (svint8_t) ? 1 : -1]; }
   { typedef int f[!__has_virtual_destructor (svint8_t) ? 1 : -1]; }
   { typedef int f[!__is_abstract (svint8_t) ? 1 : -1]; }
-  { typedef int f[!__is_aggregate (svint8_t) ? 1 : -1]; }
+  { typedef int f[__is_aggregate (svint8_t) ? 1 : -1]; }
   { typedef int f[!__is_base_of (svint8_t, svint8_t) ? 1 : -1]; }
   { typedef int f[!__is_base_of (svint8_t, svint16_t) ? 1 : -1]; }
   { typedef int f[!__is_class (svint8_t) ? 1 : -1]; }