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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr46865-2.c] - Rev 700

Go to most recent revision | Compare with Previous | Blame | View Log

/* PR rtl-optimization/46865 */
/* { dg-do compile } */
/* { dg-options "-O2 -save-temps" } */
 
extern unsigned long f;
 
#define m1(f)							\
  if (f & 1)							\
    asm volatile ("nop /* asmnop */\n");			\
  else								\
    asm volatile ("nop /* asmnop */\n");
 
#define m2(f)							\
  if (f & 1)							\
    asm volatile ("nop /* asmnop */\n" : : "i" (6) : "cx");	\
  else								\
    asm volatile ("nop /* asmnop */\n" : : "i" (6) : "cx");
 
void
foo (void)
{
  m1 (f);
}
 
void
bar (void)
{
  m2 (f);
}
 
/* { dg-final { scan-assembler-times "asmnop" 2 } } */
/* { dg-final { cleanup-saved-temps } } */
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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