[LLVMdev] Shifting by too many bits

Jon Sargeant delta17 at cox.net
Wed Aug 22 09:45:55 PDT 2007


The documentation for SHL, LSHR, and ASHR is unclear.  What is the 
result of shifting by the number of bits in the left operand.  For example,

<result> = shl i32 1, 32
<result> = ashr i32 1, 32
<result> = lshr i32 1, 32



More information about the llvm-dev mailing list