[LLVMbugs] [Bug 588] Error in optimization: ( A || A ) << B

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Jun 25 18:29:38 PDT 2005


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=588

sabre at nondot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From sabre at nondot.org  2005-06-25 20:29 -------
This is an invalid program.  Shifting by a value that is greater than the number
of bits in the operand is undefined in C.  In particular, this effectively performs:

   X << 0xF6

Since X is a long in this case (which is 32-bits), and 0xF6 > 31, this program
is not valid.

-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list