testsuite: Fix vect/vect-sdiv-pow2-1.c
We're now able to vectorise the set-up loop: int p = power2 (fns[i].po2); for (int j = 0; j < N; j++) a[j] = ((p << 4) * j) / (N - 1) - (p << 5); This patch adds an asm to stop the loop being vectorised. gcc/testsuite/ * gcc.dg/vect/vect-sdiv-pow2-1.c (main): Add an asm to the set-up loop.
This commit is contained in:
parent
92648faa1c
commit
0f545ad9b6
|
@ -62,7 +62,10 @@ main (void)
|
|||
{
|
||||
int p = power2 (fns[i].po2);
|
||||
for (int j = 0; j < N; j++)
|
||||
a[j] = ((p << 4) * j) / (N - 1) - (p << 5);
|
||||
{
|
||||
a[j] = ((p << 4) * j) / (N - 1) - (p << 5);
|
||||
asm volatile ("" ::: "memory");
|
||||
}
|
||||
|
||||
fns[i].div (b, a, N);
|
||||
fns[i].mod (c, a, N);
|
||||
|
|
Loading…
Reference in New Issue