From: uz Date: Sat, 7 Jul 2012 19:09:23 +0000 (+0000) Subject: Added a comment. X-Git-Tag: V2.14~302 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ae42e3b491389529be2a502db175e6d9196f48f5;p=cc65 Added a comment. git-svn-id: svn://svn.cc65.org/cc65/trunk@5769 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/coptshift.c b/src/cc65/coptshift.c index 6489ab1d3..95ad1bb4f 100644 --- a/src/cc65/coptshift.c +++ b/src/cc65/coptshift.c @@ -444,6 +444,11 @@ unsigned OptShift4 (CodeSeg* S) * dey * bpl L1 * rol a + * + * A negative shift count or one that is greater or equal than + * the bit width of the left operand (which is promoted to + * integer before the operation) causes undefined behaviour, so + * above transformation is safe. */ CodeLabel* L;