aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/mips/vr-mult-2.c
blob: 58bdc089339f06136e2b53bfd3f5f43e156debe8 (plain)
1
2
3
4
5
6
7
8
/* Make sure that mul/addu is preferred over mtlo/macc and that mul/subu
   is preferred over mtlo/msac.  */
/* { dg-do compile } */
/* { dg-options "-march=vr5500 -fpeephole2" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
NOMIPS16 int f1 (int a, int b, int c) { return a + b * c; }
NOMIPS16 int f2 (int a, int b, int c) { return a - b * c; }
/* { dg-final { scan-assembler "\tmul\t.*\tmul\t" } } */