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]

Re: Suggestions for extended asm


> Yes. I'm agree with you.
> Example:
> asm ("mov %0,%1 /* -*-insn-length-*- 1 */", ...
> 
> I can search the asm patterns, try to extract number after
> `-*-insn-length-*-' and after that correct the `length' attribute.

No, this is just as error prone - what if the asm writer gets
the length wrong?

I mean really looking at the asm insns themselves.
I have implemented this for the SH just last month:

Wed Apr  5 23:17:10 2000  J"orn Rennecke <amylaar@cygnus.co.uk>

        * sh.c (sh_insn_length_adjustment): New function.
        * sh-protos.h (sh_insn_length_adjustment): Declare.
        * sh.h (ADJUST_INSN_LENGTH): Use it.

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