Re: RFA: MN10300: Fix splitting AND insns

2011-09-09 Thread Nick Clifton
Hi Jeff, This is fine, Thanks - committed. after adding a function comment for mn10300_split_and_operand_count; I added this comment: /* This function is used to help split: (set (reg) (and (reg) (int))) into: (set (reg) (shift (reg) (int)) (set (reg) (shift (reg) (in

Re: RFA: MN10300: Fix splitting AND insns

2011-09-08 Thread Jeff Law
redhat.com Cc: gcc-patches@gcc.gnu.org Sent: Wednesday, September 7, 2011 10:08:48 AM Subject: RFA: MN10300: Fix splitting AND insns Hi Jeff, Hi Alex, I have finally tracked down a bug in the MN10300 backend which has been causing all kinds of weird behaviour in generated code. The proble

RFA: MN10300: Fix splitting AND insns

2011-09-07 Thread Nick Clifton
Hi Jeff, Hi Alex, I have finally tracked down a bug in the MN10300 backend which has been causing all kinds of weird behaviour in generated code. The problem was that the pattern to split an AND insn into two shift insns was using a left shift followed by a right shift to clear bits at th