[LLVMdev] rotate (original) (raw)
Joerg Sonnenberger joerg at britannica.bec.de
Tue Jul 31 07:39:16 PDT 2012
- Previous message: [LLVMdev] rotate
- Next message: [LLVMdev] global control flow graph at machine code level
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [LLVMdev] rotate
- Next message: [LLVMdev] global control flow graph at machine code level
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]