URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 321 |
Rev 338 |
/* Make sure that mul/addu is preferred over mtlo/macc and that mul/subu
|
/* Make sure that mul/addu is preferred over mtlo/macc and that mul/subu
|
is preferred over mtlo/msac. */
|
is preferred over mtlo/msac. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -march=vr5500" } */
|
/* { dg-options "-O2 -march=vr5500" } */
|
NOMIPS16 int f1 (int a, int b, int c) { return a + b * c; }
|
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; }
|
NOMIPS16 int f2 (int a, int b, int c) { return a - b * c; }
|
/* { dg-final { scan-assembler "\tmul\t.*\tmul\t" } } */
|
/* { dg-final { scan-assembler "\tmul\t.*\tmul\t" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.