Jeffrey Walton wrote: > If you want thorough testing, then you might consider adding a test > for code generation. The rotates should be optimized down to a single > rotate left or rotate right instruction.
I would say that such tests belong in the compiler's test suite, not in Gnulib's tests. (We don't want test failures because the code is being compiled by, say, TinyCC.) For Gnulib, it is sufficient if one of us looks at the generated code one. > If I recall correctly, GCC 4.6 and below > have trouble recognizing the pattern and generating good code. It's certainly also CPU/arch dependent. Bruno
