]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix vector-subscript-4.c [PR116421]
authorStefan Schulze Frielinghaus <stefansf@gcc.gnu.org>
Fri, 10 Oct 2025 13:02:09 +0000 (15:02 +0200)
committerStefan Schulze Frielinghaus <stefansf@gcc.gnu.org>
Fri, 10 Oct 2025 13:02:09 +0000 (15:02 +0200)
Verify we don't have any vector temporaries in the IL at least until
ISEL which may introduce VEC_EXTRACTs on targets which support
non-constant indices (see PR116421).

As a pass I chose NRV for no particular reason except that it is
literally the last pass prior ISEL.  At least at time of writing this.

gcc/testsuite/ChangeLog:
PR testsuite/116421
* c-c++-common/vector-subscript-4.c: Check for vectors prior
ISEL.

gcc/testsuite/c-c++-common/vector-subscript-4.c

index 2c2481f88b799ed31342020114e59f0447da0e86..3138dc619d39ca63ea359c9c592514a20168af31 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized -w -Wno-psabi" } */
+/* { dg-options "-O2 -fdump-tree-nrv -w -Wno-psabi" } */
 
 #define foobar(n) \
     typedef int v##n##si __attribute__ ((vector_size (4 * n))); \
@@ -25,5 +25,7 @@ foobar(16)
 foobar(32)
 foobar(64)
 
-/* Verify we don't have any vector temporaries in the IL.  */
-/* { dg-final { scan-tree-dump-not "vector" "optimized" } } */
+/* Verify we don't have any vector temporaries in the IL at least until ISEL
+   which may introduce VEC_EXTRACTs on targets which support non-constant
+   indices (see PR116421).  */
+/* { dg-final { scan-tree-dump-not "vector" "nrv" } } */