public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* using recog_data.operand in ASM_OUTPUT_OPCODE
@ 2005-08-04 18:58 Tabony, Charles
  2005-08-05  2:53 ` James E Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Tabony, Charles @ 2005-08-04 18:58 UTC (permalink / raw)
  To: gcc

Hi,

I am trying to use recog_data.operand in ASM_OUTPUT_OPCODE to access the
operands of the current insn for printing as the documentation for
ASM_OUTPUT_OPCODE suggests.  However, this does not work for printing
inline assembly because asm insns are never matched.  How can I
distinguish recognized from unrecognized insns in ASM_OUTPUT_OPCODE?

Thank you,
Charles

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: using recog_data.operand in ASM_OUTPUT_OPCODE
  2005-08-04 18:58 using recog_data.operand in ASM_OUTPUT_OPCODE Tabony, Charles
@ 2005-08-05  2:53 ` James E Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: James E Wilson @ 2005-08-05  2:53 UTC (permalink / raw)
  To: Tabony, Charles; +Cc: gcc

Tabony, Charles wrote:
> How can I
> distinguish recognized from unrecognized insns in ASM_OUTPUT_OPCODE?

Try using the variable this_is_asm_operands.

ASM_OUTPUT_OPCODE is an old macro that doesn't get used much anymore. 
FINAL_PRESCAN_INSN is better if you can use it.  No recog_data.operand 
trickery is needed here, as this one has the operands passed into it as 
a macro argument.  Or maybe you can use the two macros in combination to 
get the behaviour you need.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-05  2:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-04 18:58 using recog_data.operand in ASM_OUTPUT_OPCODE Tabony, Charles
2005-08-05  2:53 ` James E Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).