OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [980526-1.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile { target fpic } } */
2
/* { dg-options "-O2 -fpic" } */
3
 
4
int
5
test(void)
6
{
7
    double value, maxValue = - (__extension__   ((union { unsigned __l __attribute__((__mode__(__DI__))); double __d; }) { __l: 0x7ff0000000000000ULL }).__d)  ;
8
    int idx, maxIdx = 1;
9
 
10
    for (idx = 1; idx < 22; idx++) {
11
        if (value > maxValue) {
12
            maxValue = value;
13
            maxIdx = idx;
14
        }
15
    }
16
    return 0 ;
17
}

powered by: WebSVN 2.1.0

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