This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]