[ARM][4/4] Adjust gcc.target/arm/wmul-[123].c tests

PR target/65932
	PR target/67714
	* gcc.target/arm/wmul-3.c: Simplify test to generate just
	a single smulbb instruction.
	* gcc.target/amr/wmul-1.c: Add -mtune=cortex-a9 to dg-options.
	* gcc.target/amr/wmul-2.c: Likewise.

From-SVN: r233134
This commit is contained in:
Kyrylo Tkachov 2016-02-04 09:57:36 +00:00 committed by Kyrylo Tkachov
parent 625d55afc1
commit cc9c0829f7
4 changed files with 16 additions and 15 deletions

View File

@ -1,3 +1,12 @@
2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/65932
PR target/67714
* gcc.target/arm/wmul-3.c: Simplify test to generate just
a single smulbb instruction.
* gcc.target/amr/wmul-1.c: Add -mtune=cortex-a9 to dg-options.
* gcc.target/amr/wmul-2.c: Likewise.
2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/65932

View File

@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_dsp } */
/* { dg-options "-O1 -fexpensive-optimizations" } */
/* { dg-options "-O1 -fexpensive-optimizations -mtune=cortex-a9" } */
int mac(const short *a, const short *b, int sqr, int *sum)
{

View File

@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_dsp } */
/* { dg-options "-O1 -fexpensive-optimizations" } */
/* { dg-options "-O1 -fexpensive-optimizations -mtune=cortex-a9" } */
void vec_mpy(int y[], const short x[], short scaler)
{

View File

@ -1,19 +1,11 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_dsp } */
/* { dg-options "-O1 -fexpensive-optimizations" } */
/* { dg-options "-O" } */
int mac(const short *a, const short *b, int sqr, int *sum)
int
foo (int a, int b)
{
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;
return (short) a * (short) b;
}
/* { dg-final { scan-assembler-times "smulbb" 2 } } */
/* { dg-final { scan-assembler-times "smulbb" 1 } } */