aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Müllner <christoph.muellner@vrull.eu>2025-01-14 13:20:50 +0100
committerChristoph Müllner <christoph.muellner@vrull.eu>2025-01-15 12:11:01 +0100
commit120a37008222bf6fe17658af3d1ba1b384642905 (patch)
tree7784cb7b1c20223aa1ccf22b0cfcb06ca8a6098e
parentb67a0d6aca0c049e14e44c3f28ce3806680543ef (diff)
downloadgcc-120a37008222bf6fe17658af3d1ba1b384642905.zip
gcc-120a37008222bf6fe17658af3d1ba1b384642905.tar.gz
gcc-120a37008222bf6fe17658af3d1ba1b384642905.tar.bz2
testsuite: i386: Fix expected vectoriziation in pr105493.c
As reported in PR117079, commit ab18785840d7b8 broke the test pr105493.c. The test code contains two loops, where the first one is exected to be vectorized. The commit that broke that vectorization was the first of several that enabled vectorization of both loops. Now, that GCC can vectorize the whole function, let's adjust this test to expect vectorization of both loops by ensuring that we don't write to the helper-array 'tmp'. Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu> PR target/117079 gcc/testsuite/ChangeLog: * gcc.target/i386/pr105493.c: Fix expected vectorization Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
-rw-r--r--gcc/testsuite/gcc.target/i386/pr105493.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr105493.c b/gcc/testsuite/gcc.target/i386/pr105493.c
index c6fd167..c2b1a8f 100644
--- a/gcc/testsuite/gcc.target/i386/pr105493.c
+++ b/gcc/testsuite/gcc.target/i386/pr105493.c
@@ -45,7 +45,5 @@ foo ( uint8_t *pix1, int i_pix1, uint8_t *pix2, int i_pix2 )
return (((uint16_t)sum) + ((uint32_t)sum>>16)) >> 1;
}
-
-/* The first loop should be vectorized, which will eliminate redundant stores
- and loads. */
-/* { dg-final { scan-tree-dump-times " MEM <vector\\\(4\\\) unsigned int> \\\[\[\^\]\]\*\\\] = " 4 "slp1" } } */
+/* All loops should be vectorized. */
+/* { dg-final { scan-tree-dump-times "MEM\[^\n\]*tmp\[^\n\]*= " 0 "slp1" } } */