Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 920501-23.c
blob291d93e6c5d6665ab0d6bdd2beebf9d6e2653aa8
1 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];}