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/] [unsorted/] [miscomp.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
unsigned char foo(unsigned long);
2
main()
3
{
4
    unsigned char AChar;
5
    unsigned long ALong = 0x12345678;
6
 
7
    AChar = foo(ALong);
8
 
9
    printf("AChar = %x\n",(int)AChar);
10
}
11
unsigned char
12
foo( unsigned long TheLong)
13
{
14
     return( (unsigned char) (TheLong & 0xff) );
15
}

powered by: WebSVN 2.1.0

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