testsuite: fix ASAN errors
authorMartin Liska <mliska@suse.cz>
Tue, 14 Dec 2021 14:43:16 +0000 (15:43 +0100)
committerMartin Liska <mliska@suse.cz>
Tue, 14 Dec 2021 14:49:30 +0000 (15:49 +0100)
commit0dfb1bd94454ccae6d3c77799e209fab7711ed93
treec621c486423ecd1f07d5279b6e91b99eeeed89f8
parentb0e6a257f1862e217cdf19332ea0f7bad56dcddc
testsuite: fix ASAN errors

The tests failed on my machine as they contain out-of-bounds
access.

gcc/testsuite/ChangeLog:

* gcc.target/i386/avx2-psraq-1.c: Use ARRAY_SIZE.
* gcc.target/i386/m128-check.h: Move it to the top-level
context.
* gcc.target/i386/sse2-psraq-1.c: Use ARRAY_SIZE.
* gcc.target/i386/sse4_2-check.h: Include the header with
ARRAY_SIZE definition.
gcc/testsuite/gcc.target/i386/avx2-psraq-1.c
gcc/testsuite/gcc.target/i386/m128-check.h
gcc/testsuite/gcc.target/i386/sse2-psraq-1.c
gcc/testsuite/gcc.target/i386/sse4_2-check.h