- fixed r22803
[libfirm] / ir / be / test / rot.c
1 #include <stdio.h>
2
3 int main(int argc, char **argv) {
4         printf("Result: %d (should be 42)\n", rot(21,1));
5
6         return 0;
7 }
8
9 unsigned rot(unsigned x, unsigned y)
10 {
11         return x << y | x >> (32-y);
12 }