------- Comment #3 from dgutson at gcc dot gnu dot org 2009-09-25 21:28 ------- Created an attachment (id=18651) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18651&action=view) Proposed fix
The attached patch attempts to solve the issue, by augmenting the range check in order to match 0 < imm <= size (increasing size in 1). I checked that the assembler DTRT, so the fix applies to gcc only. I tested the patch with the gcc test suite plus a test cases I added (included in the patch). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41196