Superoptimiser for Hitachi H8/300H
tm
tm@mail.kloo.net
Tue Nov 12 13:29:00 GMT 2002
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
More information about the Gcc
mailing list