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
On Wed, 22 Aug 2007, Jon Sargeant wrote:> 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, 32the result is undefined. These shift operators could return anything. -Chris -- nondot.org/sabre llvm.org