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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [sparc-trap-1.c] - Rev 823

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

/* PR target/15693 */
/* { dg-do compile { target sparc*-*-* } } */
/* { dg-options "-O2" } */
 
/* This used to fail on SPARC at -O2 because the combiner
   produces a compare insn that was not rematched by the
   compare expander.  */
 
static __inline__ __attribute__ ((always_inline))
int page_mapping (unsigned flags)
{
  if (1u & (flags >> 16))
    return 1;
  return 0;
}
void install_page (unsigned flags)
{
  if (__builtin_expect (!page_mapping (flags), 0))
    __builtin_trap ();
}
 

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.