[LLVMdev] Array Slicing?

Chris Lattner sabre at nondot.org
Wed Oct 3 13:58:21 PDT 2007


On Wed, 3 Oct 2007, Jon Sargeant wrote:
> Subject: Shifting by too many bits
> Body:
> 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

These are undefined, I'll update the doc to make that more clear.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list