This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: passing information to back-end from source code?
- To: Michael Poole <poole at troilus dot org>
- Subject: Re: passing information to back-end from source code?
- From: Richard Henderson <rth at cygnus dot com>
- Date: Tue, 15 Aug 2000 15:18:16 -0700
- Cc: Joern Rennecke <amylaar at cygnus dot co dot uk>, gcc at gcc dot gnu dot org
- References: <200008151703.SAA01974@phal.cygnus.co.uk> <m34s4migsf.fsf@troilus.org>
On Tue, Aug 15, 2000 at 01:18:56PM -0400, Michael Poole wrote:
> (define_insn "*sing"
> [(set (reg:QI 33) (const_int 1))
> (unspec_volatile [(reg:QI 33)] 0)]
> ""
> "sing"
> [(set_attr "length" "0")])
>
> (define_insn "*dance"
> [(set (reg:QI 33) (const_int 0))
> (unspec_volatile [(reg:QI 33)] 1)]
> ""
> "dance"
> [(set_attr "length" "0")])
Incidentally, you may want to look at using the OPTIMIZE_MODE_SWITCHING
machinery to do some of this.
r~