From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28192 invoked by alias); 13 Oct 2004 23:14:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 28173 invoked by uid 48); 13 Oct 2004 23:14:30 -0000 Date: Wed, 13 Oct 2004 23:14:00 -0000 From: "hp at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20041013231425.17984.hp@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/17984] New: Recent peephole2:s may cause internal compiler errors (2) X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg01836.txt.bz2 List-Id: See also PR 17626. This is another bug in the peephole2 patterns; constants aren't truncated/sign-extended when changing to a shorter mode. This causes ICEs like the following: x/gcc/testsuite/gcc.dg/cris-peep2-xsrand2.c: In function 'andwlsr': x/gcc/testsuite/gcc.dg/cris-peep2-xsrand2.c:16: error: unrecognizable insn: (insn 31 30 25 0 (set (reg:HI 10 r10) (and:HI (reg:HI 10 r10) (const_int 65399 [0xff77]))) -1 (nil) (nil)) x/gcc/testsuite/gcc.dg/cris-peep2-xsrand2.c:16: internal compiler error: in extract_insn, at recog.c:2034 -- Summary: Recent peephole2:s may cause internal compiler errors (2) Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: target AssignedTo: hp at gcc dot gnu dot org ReportedBy: hp at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: cris-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17984