From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24026 invoked by alias); 10 Dec 2007 17:16:01 -0000 Received: (qmail 24012 invoked by uid 22791); 10 Dec 2007 17:16:00 -0000 X-Spam-Check-By: sourceware.org Received: from pfepc.post.tele.dk (HELO pfepc.post.tele.dk) (195.41.46.237) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 10 Dec 2007 17:15:53 +0000 Received: from x1-6-00-0f-9f-c6-3e-90 (unknown [80.197.1.215]) by pfepc.post.tele.dk (Postfix) with ESMTP id 8C7428A0007; Mon, 10 Dec 2007 18:15:44 +0100 (CET) Received: from x1-6-00-0f-9f-c6-3e-90 (localhost.localdomain [127.0.0.1]) by x1-6-00-0f-9f-c6-3e-90 (8.14.0/8.14.0) with ESMTP id lBAHFh2q022741; Mon, 10 Dec 2007 18:15:43 +0100 Received: (from rask@localhost) by x1-6-00-0f-9f-c6-3e-90 (8.14.0/8.14.0/Submit) id lBAHFgeW022734; Mon, 10 Dec 2007 18:15:42 +0100 Date: Mon, 10 Dec 2007 17:31:00 -0000 From: "'Rask Ingemann Lambertsen'" To: "Balaji V. Iyer" Cc: gcc@gcc.gnu.org, openrisc@opencores.org Subject: Re: Help with another constraint Message-ID: <20071210171542.GL17368@sygehus.dk> References: <000c01c83a41$4499e240$33160e98@ece.ncsu.edu> <20071209130740.GI17368@sygehus.dk> <000d01c83a81$85462ca0$33160e98@ece.ncsu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000d01c83a81$85462ca0$33160e98@ece.ncsu.edu> User-Agent: Mutt/1.5.14 (2007-02-12) Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00320.txt.bz2 On Sun, Dec 09, 2007 at 11:35:32AM -0500, Balaji V. Iyer wrote: > Hello Rask, > I am not understanding your response, can you clarify it for me? > > As per the question about the error message above? > > ../../gcc-4.0.2/gcc/libgcc2.c -o libgcc/./_negdi2.o > ../../gcc-4.0.2/gcc/libgcc2.c: In function '__negdi2': > ../../gcc-4.0.2/gcc/libgcc2.c:72: error: insn does not satisfy its > constraints: I think this is misleading you. It seems likely that the problem is with the predicate and not the constraint. > (insn 15 13 16 (set (mem:SI (plus:SI (reg/f:SI 2 r2) ^^^ This has to be a register, doesn't it? If so, use -fdump-rtl-all and look at the dump files to see where it goes wrong. > (const_int -28 [0xffffffe4])) [0 D.1256+0 S4 A32]) > (neg:SI (reg:SI 3 r3 [orig:80 D.1255 ] [80]))) 38 {negsi2} (nil) > (nil)) Please also post your negsi2 pattern. -- Rask Ingemann Lambertsen Danish law requires addresses in e-mail to be logged and stored for a year