This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Suggestions for extended asm
- To: Denis Chertykov <denisc at overta dot ru>
- Subject: Re: Suggestions for extended asm
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Sat, 13 May 2000 00:16:09 +0100 (BST)
- CC: marekm at linux dot org dot pl, gcc at gcc dot gnu dot org
> 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.