Commit 9193b1b4 by Bernd Schmidt Committed by Bernd Schmidt

re PR middle-end/29274 (not using mulsidi3)

	PR middle-end/29274
	* gcc.target/arm/wmul-1.c: New test.
	* gcc.target/arm/wmul-2.c: New test.

From-SVN: r158642
parent b3be2694
2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
PR middle-end/29274
* gcc.target/arm/wmul-1.c: New test.
* gcc.target/arm/wmul-2.c: New test.
2010-04-22 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43845
......
/* { dg-do compile } */
/* { dg-options "-O2 -march=armv6t2" } */
int mac(const short *a, const short *b, int sqr, int *sum)
{
int i;
int dotp = *sum;
for (i = 0; i < 150; i++) {
dotp += b[i] * a[i];
sqr += b[i] * b[i];
}
*sum = dotp;
return sqr;
}
/* { dg-final { scan-assembler-times "smulbb" 2 } } */
/* { dg-do compile } */
/* { dg-options "-O2 -march=armv6t2" } */
void vec_mpy(int y[], const short x[], short scaler)
{
int i;
for (i = 0; i < 150; i++)
y[i] += ((scaler * x[i]) >> 31);
}
/* { dg-final { scan-assembler-times "smulbb" 1 } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment