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: passing information to back-end from source code?


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~

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