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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20020418-1.c] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
/* ifcvt accidently deletes a referenced label while generating
2
   conditional traps on machines having such patterns */
3
 
4
struct foo { int a; };
5
 
6
void gcc_crash(struct foo *p)
7
{
8
        if (__builtin_expect(p->a < 52, 0))
9
                __builtin_trap();
10
 top:
11
        p->a++;
12
        if (p->a >= 62)
13
                goto top;
14
}
15
 
16
int main(void)
17
{
18
        struct foo x;
19
 
20
        x.a = 53;
21
        gcc_crash(&x);
22
 
23
        exit (0);
24
}

powered by: WebSVN 2.1.0

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