OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / mips / madd-7.c
1 /* { dg-options "-O2 -march=5kc" } */
2 /* { dg-final { scan-assembler-not "\tmul\t" } } */
3 /* { dg-final { scan-assembler "\tmadd\t" } } */
4
5 NOMIPS16 int
6 f1 (int *a, int *b, int n)
7 {
8   int x, i;
9
10   x = 0;
11   for (i = 0; i < n; i++)
12     x += a[i] * b[i];
13   return x;
14 }