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: GCC hacking questions (peepholes etc.)


On Wed, Jul 26, 2000 at 09:09:59AM +0200, Marek Michalkiewicz wrote:
>  - is it allowed to mix both define_peephole and define_peephole2 in
>    one md file?

Yes.

>  - if the answer to the above is "no", is it possible for define_peephole
>    to request a scratch register (as documented for define_peephole2)?

No.

>  - how to tell GCC that it is cheaper to load constants to a certain
>    register class (r16-r31) than to other registers (r0-r15)?

Use "?" or "!" in the constraint string.  Probably "?" is enough
deprecation.

>  - is it safe to use a constraint letter for which REG_CLASS_FROM_LETTER
>    returns either GENERAL_REGS or NO_REGS depending on target_flags, to
>    optionally enable some alternatives in a define_insn?

Yes.


r~

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