OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.target/] [arm/] [thumb2-mul-space-2.c] - Diff between revs 313 and 384

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;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.