2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / madd-7.c
blob93ed0fc6f06ae8d0e5dbff40cd9d4fa32d4beee8
1 /* -mlong32 added because of PR target/38598. */
2 /* { dg-options "-O2 -march=5kc -mlong32" } */
3 /* { dg-final { scan-assembler-not "\tmul\t" } } */
4 /* { dg-final { scan-assembler "\tmadd\t" } } */
6 NOMIPS16 int
7 f1 (int *a, int *b, int n)
9 int x, i;
11 x = 0;
12 for (i = 0; i < n; i++)
13 x += a[i] * b[i];
14 return x;