1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_dsp } */
3 /* { dg-options "-O1 -fexpensive-optimizations -mtune=cortex-a9" } */
5 void vec_mpy(int y
[], const short x
[], short scaler
)
9 for (i
= 0; i
< 150; i
++)
10 y
[i
] += ((scaler
* x
[i
]) >> 31);
13 /* { dg-final { scan-assembler-times "smulbb" 1 } } */