gcc/testsuite/gcc.target/mips/madd-7.c
raw| 1 | /* { dg-options "-march=5kc" } */ |
| 2 | /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ |
| 3 | /* { dg-skip-if "requires -fira-region=all or =mixed" { *-*-* } { "-Os" } { "" } } */ |
| 4 | /* { dg-final { scan-assembler-not "\tmul\t" } } */ |
| 5 | /* { dg-final { scan-assembler "\tmadd\t" } } */ |
| 6 | |
| 7 | NOMIPS16 int |
| 8 | f1 (int *a, int *b, int n) |
| 9 | { |
| 10 | int x, i; |
| 11 | |
| 12 | x = 0; |
| 13 | for (i = 0; i < n; i++) |
| 14 | x += a[i] * b[i]; |
| 15 | return x; |
| 16 | } |