| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2" } */ |
| 3 |
|
| 4 |
void vec_mpy(int y[], const short x[], short scaler) |
| 5 |
{ |
| 6 |
int i; |
| 7 |
|
| 8 |
for (i = 0; i < 150; i++) |
| 9 |
y[i] += ((scaler * x[i]) >> 31); |
| 10 |
} |
| 11 |
|
| 12 |
/* { dg-final { scan-assembler-times "\\(IS\\)" 1 } } */ |