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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr28230.c] - Blame information for rev 827

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-fwrapv" } */
3
 
4
void foo( unsigned long long bb, unsigned short tn, unsigned e, unsigned* w );
5
void foo( unsigned long long bb, unsigned short tn, unsigned e, unsigned* w )
6
{
7
        unsigned n = tn + bb;
8
        do {
9
                e = (e > n) ? e : *w;
10
                n -= (e > n) ? n : e;
11
                if (*w)
12
                        *w = 0;
13
        } while ( n );
14
}
15
int main()
16
{
17
        unsigned w = 0;
18
        foo( 0, 0, 0, &w );
19
        return 0;
20
}

powered by: WebSVN 2.1.0

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