testsuite: Fix two testisms on x86 after PFA [PR118754]

These two tests now vectorize the result finding
loop with PFA and so the number of loops checked
fails.

This fixes them by adding #pragma GCC novector to
the testcases.

gcc/testsuite/ChangeLog:

	PR testsuite/118754
	* gcc.dg/vect/vect-tail-nomask-1.c: Add novector.
	* gcc.target/i386/pr106010-8c.c: Likewise.
This commit is contained in:
Tamar Christina 2025-02-10 09:32:29 +00:00
parent 38aeb609f3
commit aaf5f5027d
2 changed files with 3 additions and 0 deletions

View file

@ -72,6 +72,7 @@ run_test ()
init_data (a, b, c, SIZE);
test_citer (a, b, c);
#pragma GCC novector
for (i = 0; i < SIZE; i++)
if (c[i] != a[i] + b[i])
__builtin_abort ();
@ -80,6 +81,7 @@ run_test ()
init_data (a, b, c, SIZE);
test_viter (a, b, c, SIZE);
#pragma GCC novector
for (i = 0; i < SIZE; i++)
if (c[i] != a[i] + b[i])
__builtin_abort ();

View file

@ -30,6 +30,7 @@ do_test (void)
__builtin_memset (ph_dst, 0, 2 * N * sizeof (_Float16));
foo_ph (ph_dst);
#pragma GCC novector
for (int i = 0; i != N; i++)
{
if (ph_dst[i] != ph_src)