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] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR target/15693 */
2
/* { dg-do compile { target sparc*-*-* } } */
3
/* { dg-options "-O2" } */
4
 
5
/* This used to fail on SPARC at -O2 because the combiner
6
   produces a compare insn that was not rematched by the
7
   compare expander.  */
8
 
9
static __inline__ __attribute__ ((always_inline))
10
int page_mapping (unsigned flags)
11
{
12
  if (1u & (flags >> 16))
13
    return 1;
14
  return 0;
15
}
16
void install_page (unsigned flags)
17
{
18
  if (__builtin_expect (!page_mapping (flags), 0))
19
    __builtin_trap ();
20
}

powered by: WebSVN 2.1.0

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