This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help with another constraint
- From: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- To: "Balaji V. Iyer" <bviyer at ncsu dot edu>
- Cc: gcc at gcc dot gnu dot org, openrisc at opencores dot org
- Date: Sun, 9 Dec 2007 14:07:41 +0100
- Subject: Re: Help with another constraint
- References: <000c01c83a41$4499e240$33160e98@ece.ncsu.edu>
On Sun, Dec 09, 2007 at 03:55:36AM -0500, Balaji V. Iyer wrote:
> Hello Everyone,
> I am trying to partition register files in GCC port of Opencores
> (OPENRISC 1000). It is currently failing the following constraint in
> negdi2
>
> (insn 15 13 16 (set (mem:SI (plus:SI (reg/f:SI 2 r2)
^^^
> (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))
> ../../gcc-4.0.2/gcc/libgcc2.c:72: internal compiler error: in
> final_scan_insn, at final.c:2439
> Please submit a full bug report,
+(define_insn "negsi2"
+ [(set (match_operand:SI 0 "register_operand" "=r")
^^^^^^^^^^^^^^^^
+ (neg:SI (match_operand:SI 1 "register_operand" "r")))]
+ ""
+ "l.sub \t%0,r0,%1"
+ [(set_attr "type" "add")
+ (set_attr "length" "1")])
How did that happen? Look at the dump files. Btw, what is the error
message above the insn dump?
--
Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year