2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / msub-7.c
blobca90cee9ea56cb6b25092617150c17f1b2469ac1
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 "\tmsub\t" } } */
6 NOMIPS16 int
7 f1 (int *a, int *b, int n)
9 int x, i;
11 x = 100;
12 for (i = 0; i < n; i++)
13 x -= a[i] * b[i];
14 return x;