Displaying 1 result from an estimated 1 matches for "test_regist".
Did you mean:
test_register
2014 Jan 18
2
[LLVMdev] Scheduling quirks
Hello all!
When I compile the following more or less stupid functions with
clang++ -O3 -S test.cpp
===>
int test_register(int x) {
x ^= (x >> 2);
x ^= (x >> 3);
x = x ^ (x >> 4);
int y = x; x >>= 5; x ^= y; // almost the same but explicit
return x;
}
int test_scheduler(int x) {
return ((x>>2) & 15) ^ ((x>>3) & 31);
}
<===
...I get the followi...