https://gcc.gnu.org/g:7232a131d7c672995989750e0f11020b0f5789d2

commit r16-3213-g7232a131d7c672995989750e0f11020b0f5789d2
Author: Richard Sandiford <richard.sandif...@arm.com>
Date:   Fri Aug 15 14:22:23 2025 +0100

    testsuite: Add a test for [PR119156]
    
    PR119156 was fixed by g:f702b593e7268ab161053bafd097f1b09933b783.
    This patch adds a test for it.
    
    gcc/testsuite/
            PR target/119156
            * gcc.target/aarch64/sve/pr119156_1.c: New test.

Diff:
---
 gcc/testsuite/gcc.target/aarch64/sve/pr119156_1.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr119156_1.c 
b/gcc/testsuite/gcc.target/aarch64/sve/pr119156_1.c
new file mode 100644
index 000000000000..35a566887f13
--- /dev/null
+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr119156_1.c
@@ -0,0 +1,15 @@
+/* { dg-options "-O2" } */
+
+#include <arm_sve.h>
+
+void inner_loop_029(double *restrict input, int64_t *restrict scale,
+                           double *restrict output, int64_t size) {
+    svbool_t p;
+    int64_t i = 0;
+    while (p = svwhilelt_b64(i, size), svptest_first(svptrue_b64(), p)) {
+        svst1(p, output+i, svld1(p, input+i));
+        i += svcntd();
+    }
+}
+
+/* { dg-final { scan-assembler-not {\tptest\t} } } */

Reply via email to