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.dg/] [tree-ssa/] [pr38533.c] - Diff between revs 298 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 384
/* PR middle-end/38533 */
/* PR middle-end/38533 */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-reassoc1" } */
/* { dg-options "-O2 -fdump-tree-reassoc1" } */
 
 
#define A asm volatile ("" : "=r" (f) : "0" (0)); e |= f;
#define A asm volatile ("" : "=r" (f) : "0" (0)); e |= f;
#define B A A A A A A A A A A A
#define B A A A A A A A A A A A
#define C B B B B B B B B B B B
#define C B B B B B B B B B B B
 
 
int
int
foo (void)
foo (void)
{
{
  int e = 0, f;
  int e = 0, f;
  C C B B B B B A A A A A A
  C C B B B B B A A A A A A
  return e;
  return e;
}
}
 
 
int
int
main (void)
main (void)
{
{
  if (foo ())
  if (foo ())
    __builtin_abort ();
    __builtin_abort ();
  return 0;
  return 0;
}
}
 
 
/* Verify that reassoc hasn't increased register pressure too much
/* Verify that reassoc hasn't increased register pressure too much
   by moving all bitwise ors after the last __asm__.  There should
   by moving all bitwise ors after the last __asm__.  There should
   be exactly 2 (first) __asm__ stmts with no intervening stmts,
   be exactly 2 (first) __asm__ stmts with no intervening stmts,
   all others should have some bitwise or in between.  */
   all others should have some bitwise or in between.  */
/* { dg-final { scan-tree-dump-times "__asm__\[^;\n]*;\n *__asm__" 1 "reassoc1"} } */
/* { dg-final { scan-tree-dump-times "__asm__\[^;\n]*;\n *__asm__" 1 "reassoc1"} } */
/* { dg-final { cleanup-tree-dump "reassoc1" } } */
/* { dg-final { cleanup-tree-dump "reassoc1" } } */
 
 

powered by: WebSVN 2.1.0

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