[LLVMdev] rotate

Joerg Sonnenberger joerg at britannica.bec.de
Tue Jul 31 07:39:16 PDT 2012


On Sat, Jul 28, 2012 at 09:11:13PM -0700, Michael Gottesman wrote:
> *NOTE* IIRC compiling this with -O0 on x86-64 can yield the wrong
> result since clang will emit shifts and on intel shifts are mod the
> register size:

The original code is depending on UB, if it doesn't mask.

Joerg



More information about the llvm-dev mailing list