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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20030605-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
/* Test for proper preparation of the comparison operands for
2
   generation of a conditional trap.  Produced unrecognizable
3
   rtl on Sparc.  */
4
 
5
struct blah { char *b_data; };
6
 
7
void set_bh_page(struct blah *bh, unsigned long offset)
8
{
9
        if ((1UL << 12 ) <= offset)
10
                __builtin_trap() ;
11
        bh->b_data = (char *)offset;
12
}

powered by: WebSVN 2.1.0

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