Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.target / mips / vr-mult-1.c
1 /* Make sure that mul/addu is preferred over mtlo/macc and that mul/subu
2    is preferred over mtlo/msac.  */
3 /* { dg-do compile } */
4 /* { dg-options "-march=vr5400 -fpeephole2" } */
5 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
6 NOMIPS16 int f1 (int a, int b, int c) { return a + b * c; }
7 NOMIPS16 int f2 (int a, int b, int c) { return a - b * c; }
8 /* { dg-final { scan-assembler "\tmul\t.*\tmul\t" } } */