> From: Georg-Johann Lay <[email protected]>
> To: Jamie Prescott <[email protected]>
> Cc: Eric Botcazou <[email protected]>; [email protected]; Jim Wilson
> <[email protected]>; Ian Lance Taylor <[email protected]>
> Sent: Wednesday, May 27, 2009 12:11:08 PM
> Subject: Re: Seeking suggestion
>
> Jamie Prescott schrieb:
>
> >>> Thanks for the explanation. I somehow thought that every insn spit out by
> >>> a
> >>> define_insn was automatically turned into a parallel.
> >>
> >> That's true, the template of a define_insn is automatically wrapped up in
> >> a
> PARALLEL. But your addsi3 is a define_expand and this works differently.
> >
> >
> > Oh, OK. Thanks. So in case of a define_expand I have to manually pack the
> > multiple insns into a parallel, if I want them to stick together, right?
>
> You are running in circles... you original solution with two distinct insns
> already did that (implicitely), as one insn expanded to a parallel
> add+clobber
> and the other to a plain addsi.
Yes, I know. The original solution works.
This sub-thread started from Michael response to another solution I proposed in
order to avoid doubling the instructions.
- Jamie