]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: Add aarch64 test [PR 123697]
authorAlfie Richards <alfie.richards@arm.com>
Tue, 20 Jan 2026 11:48:02 +0000 (11:48 +0000)
committerAlfie Richards <alfie.richards@arm.com>
Tue, 20 Jan 2026 15:26:02 +0000 (15:26 +0000)
PR middle-end/123697

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/sve/pr123697.c: New test.

gcc/testsuite/gcc.target/aarch64/sve/pr123697.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr123697.c b/gcc/testsuite/gcc.target/aarch64/sve/pr123697.c
new file mode 100644 (file)
index 0000000..e450851
--- /dev/null
@@ -0,0 +1,13 @@
+/* { dg-do compile } */
+/* { dg-options "-msve-vector-bits=128 -mmax-vectorization -O3" } */
+
+struct a {
+  int c[2];
+};
+struct a d[3];
+double f;
+void g()
+{
+  for (int e = 0; e < 3; ++e)
+    f += d[e].c[1];
+}