Stop only if there aren't any usable algorithms
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / wmul-2.c
blob0a82654450d382d1f98d05512d2492dc539cc860
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-require-effective-target ia32 } */
5 void vec_mpy(int y[], const int x[], int scaler)
7 int i;
9 for (i = 0; i < 150; i++)
10 y[i] += (((long long)scaler * x[i]) >> 31);
13 /* { dg-final { scan-assembler-times "imull" 1 } } */