bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Power PC 440 compiler problems


From: Ian Lance Taylor
Subject: Re: Power PC 440 compiler problems
Date: 13 Feb 2004 11:03:16 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Duncan Irving <address@hidden> writes:

> Where is this patch located? I can't find it on the
> http://ftp.gnu.org/gnu/binutils/ . It only has the 2.14 version!

Alan is referring a patch in the binutils CVS repository which is not
yet part of an official release.

See http://sources.redhat.com/binutils/ for access to the CVS
repository.  You can access it via the web.

Ian

> Alan Modra wrote:
> 
> >On Thu, Feb 12, 2004 at 08:27:11AM -0500, Duncan Irving wrote:
> >
> >>Dwight,
> >>
> >>   I think there is a problem with the recommended power-elf
> >> compiler, it does not like the tlbwe instruction for the PPC440
> >> booke instruction set and does not recognize it properly!
> >>
> >>These are the lines that do not work!
> >>
> >> tlbwe       r4,r3,0                            # Write word 0 of TLB Entry
> >> tlbwe       r5,r3,1                            # Write word 1 of TLB Entry
> >> tlbwe       r6,r3,2                            # Write word 2 of TLB Entry
> >>
> >>I get -------->
> >>PPC440.dcba.1.1.4.s: Assembler messages:
> >>PPC440.dcba.1.1.4.s:99: Error: junk at end of line: `r4,r3,0'
> >>PPC440.dcba.1.1.4.s:99: Error: junk at end of line: `r5,r3,1'
> >>PPC440.dcba.1.1.4.s:99: Error: junk at end of line: `r6,r3,2'
> >>
> >
> >This was probably fixed on mainline binutils with the following patch:
> >
> >2003-12-10  Zack Weinberg  <address@hidden>
> >
> >     * ppc-opc.c (MO): Make optional.
> >     (RAO, RSO, SHO): New optional forms of RA, RS, SH operands.
> >     (tlbwe): Accept for both PPC403 and BOOKE.  Make all operands optional.
> >
> >$ powerpc-linux-as --version
> >GNU assembler 2.14.90 20040109
> >Copyright 2002 Free Software Foundation, Inc.
> >This program is free software; you may redistribute it under the terms of
> >the GNU General Public License.  This program has absolutely no warranty.
> >This assembler was configured for a target of `powerpc-linux'.
> >$ powerpc-linux-as -mbooke -mregnames /src/tmp/tlbwe.s
> >$ powerpc-linux-objdump -Mbooke -dr a.out
> >
> >a.out:     file format elf32-powerpc
> >
> >Disassembly of section .text:
> >
> >00000000 <.text>:
> >   0:   7c 83 07 a4     tlbwe   r4,r3
> >   4:   7c a3 0f a4     tlbwe   r5,r3,1
> >   8:   7c c3 17 a4     tlbwe   r6,r3,2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]