OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.target/] [arm/] [cond-asm.c] - Diff between revs 313 and 338

Only display areas with differences | Details | Blame | View Log

Rev 313 Rev 338
/* Check that %? in inline asm expands to nothing.  */
/* Check that %? in inline asm expands to nothing.  */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-options "-O2" } */
/* { dg-require-effective-target arm32 } */
/* { dg-require-effective-target arm32 } */
int b;
int b;
int foo(int a)
int foo(int a)
{
{
  if (a)
  if (a)
    b = 42;
    b = 42;
  asm ("test%?me":"=r"(a):"0"(a));
  asm ("test%?me":"=r"(a):"0"(a));
  return a;
  return a;
}
}
/* { dg-final { scan-assembler "testme" } } */
/* { dg-final { scan-assembler "testme" } } */
 
 

powered by: WebSVN 2.1.0

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