1 /* { dg-do compile } */
2 /* { dg-options "isa_rev>=1 -mgp32 -mtune=4kc" } */
3 /* References to X within the loop need to have a higher frequency than
4 references to X outside the loop, otherwise there is no reason
5 to prefer multiply/accumulator registers over GPRs. */
6 /* { dg-skip-if "requires register frequencies" { *-*-* } { "-O0" "-Os" } { "" } } */
7 /* { dg-final { scan-assembler-not "\tmul\t" } } */
8 /* { dg-final { scan-assembler-not "\tmthi" } } */
9 /* { dg-final { scan-assembler-not "\tmtlo" } } */
10 /* { dg-final { scan-assembler "\tmult\t" } } */
11 /* { dg-final { scan-assembler "\tmadd\t" } } */
14 f1 (int *a, int *b, int n)
20 for (i = 0; i < n; i++)
21 x += (long long) a[i] * b[i];