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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [920501-23.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
typedef unsigned char qi;
2
typedef unsigned short hi;
3
typedef unsigned long si;
4
typedef unsigned long long di;
5
subi(a){return 100-a;}
6
add(a,b){return a+b;}
7
mul(a){return 85*a;}
8
memshift(p)unsigned*p;{unsigned x;for(;;){x=*p++>>16;if(x)return x;}}
9
ldw(xp)si*xp;{return xp[4];}
10
ldws_m(xp)si*xp;{si x;do{x=xp[3];xp+=3;}while(x);}
11
postinc_si(p)si*p;{si x;for(;;){x=*p++;if(x)return x;}}
12
preinc_si(p)si*p;{si x;for(;;){x=*++p;if(x)return x;}}
13
postinc_di(p)di*p;{di x;for(;;){x=*p++;if(x)return x;}}
14
preinc_di(p)di*p;{di x;for(;;){x=*++p;if(x)return x;}}
15
inc_overlap(p,a)di*p;{do{p=*(di**)p;p=(di*)((int)p+4);}while(*p);}
16
di move_di(p,p2)di*p,*p2;{di x=p;p2=((di*)x)[1];return p2[1];}

powered by: WebSVN 2.1.0

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