This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Superoptimiser for Hitachi H8/300H
- From: "Shrinivas Atre" <ShrinivasA at kpit dot com>
- To: "tm" <tm at mail dot kloo dot net>
- Cc: <gcc at gcc dot gnu dot org>,<shumpei dot kawasaki at hsa dot hitachi dot com>,<crossgcc at sources dot redhat dot com>
- Date: Thu, 14 Nov 2002 16:10:42 +0530
- Subject: RE: Superoptimiser for Hitachi H8/300H
Hi Toshi,
Default integer size is 16 bit for H8 compiler in GCC. This H8/300H port of SuperOpt supports only 16 bit integers. Hence I have taken shifts only upto 16 bits.
Enabling the use of extended registers is in our TODO list. Please see the TODO file shipped with the SuperOpt.
> This comment "only 16 bit operations supported by H8/300H" is
> incorrect.
I meant to say that this port of SuperOpt for H8/300H is using only 16 bit registers.
I will update the comments accordingly.
Regards,
Shrinivas
> -----Original Message-----
> From: tm [mailto:tm@mail.kloo.net]
> Sent: 13 November 2002 02:25 AM
> To: Shrinivas Atre
> Cc: gcc@gcc.gnu.org; shumpei.kawasaki@hsa.hitachi.com
> Subject: Re: Superoptimiser for Hitachi H8/300H
>
>
>
> Shrinivas Atre wrote:
>
> >Hi,
> >based upon Superoptimiser 2.5 available at
> >http://www.ensta.fr/internet/unix/programming/GNU-superoptimi
> zer.html, I
> >have added Hitachi H8/300H as one of the target to this
> project. The file
> >superopt-2.6.tar.gz is attached with this mail.
>
> >The assembly instruction sequences generated by H8/300H port
> along with
> >the testsuite are available in the attached file
> h8-testsuite.tar.gz.
>
> >Suggestions and/or comments on this are most welcome.
>
> >Regards,
> >Shrinivas
>
> You have the shifts > 16 conditionally compiled:
>
> #ifndef H8300H
>
> /* Only 16 bit operations supported by H8/300H */
>
> ...
>
> #endif // H8300H
>
> This comment "only 16 bit operations supported by H8/300H" is
> incorrect.
>
> The H8/300H has 32-bit registers, and if code is compiled
> with -mint32 -mh
> the integers become 32-bits and use a full 32-bit register.
>
> It's the H8/300 which has only 16-bit registers.
>
> Toshi
>
>