This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: MN10300: Handle MDR register in movqi/movhi pattern.
- From: Jeff Law <law at redhat dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: aoliva at redhat dot com, rth at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Wed, 06 Apr 2011 09:57:04 -0600
- Subject: Re: RFA: MN10300: Handle MDR register in movqi/movhi pattern.
- References: <m3bp0jsosj.fsf@redhat.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/06/11 03:38, Nick Clifton wrote:
> Hi Jeff, Hi Alex, Hi Richard,
>
> The MN10300 gcc port currently does not build on the mainline because
> of:
>
> In file included from gcc/unwind-dw2-fde.c:35:0:
> gcc/unwind-pe.h: In function 'read_encoded_value_with_base':
> gcc/unwind-pe.h:271:1: error: insn does not satisfy its constraints:
>
> (insn 417 381 382 7 (set (reg/v:QI 50 mdr [orig:145 encoding ] [145])
> (reg:QI 0 d0)) 0 {*movqi_internal}
> (nil))
>
> Ie the movqi insn does not handle the MDR register. (A similar issue
> affects the movhi insn, although that is not triggered until later on
> in the toolchain build). I would like to propose the attached small
> patch to fix this problem.
>
> Tested without regressions on an mn10300-elf toolchain.
>
> OK to apply ?
>
> Cheers
> Nick
>
> gcc/ChangeLog
> 2011-04-05 Nick Clifton <nickc@redhat.com>
>
> * config/mn10300/mn10300.md (movqi_internal): Add alternatives
> to handle MDR <-> data register transfers.
> (movhi_internal): Likewise.
OK.
Jeff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJNnI1QAAoJEBRtltQi2kC7N9kH/386lr+MoA3I35RUjk6o4jV8
FpGxLei7T4AQTgdJ7RixmL5TiCQBsYtp3kEjauwZEpOUQKzFXfiEQT2vtsm/lqgr
Db+6dyUF0XidoEAe/nkv81jYeEtsf/Y/6ujxQ2mmQyGDEzD/GbwOovPEVtKBDrsp
47HIF0xhqvzHu7TaH6UomEqyKl0qwagC00O2TsrMTfA8ctpmAw0lF6NQbxYofRwb
f9hXl1arfvRP7B3XNSOZRpr3R9IwDOIXRYeYzr3qAShPQ+K/nooC2E387azhYnKE
eQm4VMbI8aAh48WtRRtA6T1ATLrU7nswxXhLoRW8g9zItkiAatL/N4iBNE96iTk=
=QOQp
-----END PGP SIGNATURE-----