The following code contains the function L_mac,
which performs saturating additions. Therefore the compiler does
not vectorize this code unless --reassociate_saturation and --vectorize are specified.
#include <dspfns.h>
int f(short *a, short *b)
{
int i;
int r = 0;
for (i = 0; i < 100; i++)
r=L_mac(r,a[i],b[i]);
return r;
}