URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 313 |
Rev 384 |
/* In Thumb-2 mode, when optimizing for size, generate a "muls"
|
/* In Thumb-2 mode, when optimizing for size, generate a "muls"
|
instruction and use the resulting condition flags rather than a
|
instruction and use the resulting condition flags rather than a
|
separate compare instruction. */
|
separate compare instruction. */
|
/* { dg-options "-mthumb -Os" } */
|
/* { dg-options "-mthumb -Os" } */
|
/* { dg-require-effective-target arm_thumb2_ok } */
|
/* { dg-require-effective-target arm_thumb2_ok } */
|
/* { dg-final { scan-assembler "muls" } } */
|
/* { dg-final { scan-assembler "muls" } } */
|
/* { dg-final { scan-assembler-not "cmp" } } */
|
/* { dg-final { scan-assembler-not "cmp" } } */
|
|
|
int x;
|
int x;
|
|
|
void f(int i, int j)
|
void f(int i, int j)
|
{
|
{
|
if (i * j < 0)
|
if (i * j < 0)
|
x = 1;
|
x = 1;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.