This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Superoptimiser for Hitachi H8/300H
- From: tm <tm at mail dot kloo dot net>
- To: shrinivasa at kpit dot com
- Cc: gcc at gcc dot gnu dot org, shumpei dot kawasaki at hsa dot hitachi dot com
- Date: Tue, 12 Nov 2002 12:54:30 -0800 (PST)
- 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-superoptimizer.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