This is the mail archive of the gcc-patches@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: [G]CSE of extended asm statements


On Sep  1, 2000, Bernd Schmidt <bernds@cygnus.co.uk> wrote:

> On Thu, 31 Aug 2000, Jeffrey A Law wrote:
>> *However* there isn't necessarily a single mode that will be
>> correct for an ASM_OPERANDS expression -- it might have multiple
>> outputs with different modes for example and since the ASM_OPERANDS
>> is shared, we can't have different copies of it with different modes.

> [...]

>> Thoughts?

> Why exactly do we share ASM_OPERANDS?  (I.e. why can't we just change
> that convention?)

We don't.  expand_asm_operands create a separate ASM_OPERANDS for each
output operand.  It's just the input and input constraint vectors that
are shared.  My patch works correctly even if there are multiple
output operands.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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