Skip to content
Snippets Groups Projects
Commit 120a3700 authored by Christoph Müllner's avatar Christoph Müllner
Browse files

testsuite: i386: Fix expected vectoriziation in pr105493.c


As reported in PR117079, commit ab187858 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: default avatarChristoph Müllner <christoph.muellner@vrull.eu>

	PR target/117079

gcc/testsuite/ChangeLog:

	* gcc.target/i386/pr105493.c: Fix expected vectorization

Signed-off-by: default avatarChristoph Müllner <christoph.muellner@vrull.eu>
parent b67a0d6a
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,5 @@ foo ( uint8_t *pix1, int i_pix1, uint8_t *pix2, int i_pix2 ) ...@@ -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; return (((uint16_t)sum) + ((uint32_t)sum>>16)) >> 1;
} }
/* All loops should be vectorized. */
/* The first loop should be vectorized, which will eliminate redundant stores /* { dg-final { scan-tree-dump-times "MEM\[^\n\]*tmp\[^\n\]*= " 0 "slp1" } } */
and loads. */
/* { dg-final { scan-tree-dump-times " MEM <vector\\\(4\\\) unsigned int> \\\[\[\^\]\]\*\\\] = " 4 "slp1" } } */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment