Revert "PR 117048: simplify-rtx: Simplify (X << C1) [+,^] (X >> C2) into ROTATE"
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 900409-1.c
blob8a6d6e54de0ce4b711cba667551cf6e8b58badd6
1 void abort (void);
2 void exit (int);
4 long f1(long a){return a&0xff000000L;}
5 long f2 (long a){return a&~0xff000000L;}
6 long f3(long a){return a&0x000000ffL;}
7 long f4(long a){return a&~0x000000ffL;}
8 long f5(long a){return a&0x0000ffffL;}
9 long f6(long a){return a&~0x0000ffffL;}
11 int
12 main (void)
14 long a = 0x89ABCDEF;
16 if (f1(a)!=0x89000000L||
17 f2(a)!=0x00ABCDEFL||
18 f3(a)!=0x000000EFL||
19 f4(a)!=0x89ABCD00L||
20 f5(a)!=0x0000CDEFL||
21 f6(a)!=0x89AB0000L)
22 abort();
23 exit(0);