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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr33142.c] - Blame information for rev 301

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

Line No. Rev Author Line
1 297 jeremybenn
int abs(int j);
2
extern void abort(void);
3
 
4
__attribute__((noinline)) int lisp_atan2(long dy, long dx) {
5
    if (dx <= 0)
6
        if (dy > 0)
7
            return abs(dx) <= abs(dy);
8
    return 0;
9
}
10
 
11
int main() {
12
    volatile long dy = 63, dx = -77;
13
    if (lisp_atan2(dy, dx))
14
        abort();
15
    return 0;
16
}

powered by: WebSVN 2.1.0

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