* Distinguish between instructions in print_operand_address
@ 2012-10-16 17:52 Jan Tlatlik
2012-10-16 19:23 ` Georg-Johann Lay
0 siblings, 1 reply; 2+ messages in thread
From: Jan Tlatlik @ 2012-10-16 17:52 UTC (permalink / raw)
To: gcc-help
Hi,
is there a way to get information about the current insn inside the
print_operand_address worker?
I need to print register indirect addresses differently for a specific
branch instruction.
Thanks in advance,
Jan Tlatlik
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Distinguish between instructions in print_operand_address
2012-10-16 17:52 Distinguish between instructions in print_operand_address Jan Tlatlik
@ 2012-10-16 19:23 ` Georg-Johann Lay
0 siblings, 0 replies; 2+ messages in thread
From: Georg-Johann Lay @ 2012-10-16 19:23 UTC (permalink / raw)
To: Jan Tlatlik; +Cc: gcc-help
Jan Tlatlik wrote:
> is there a way to get information about the current insn inside the
> print_operand_address worker?
> I need to print register indirect addresses differently for a specific
> branch instruction.
Cant' you use print_operand hook for this and use an target-specific %-code?
See avr_print_operand for an example and how it handles MEM_P or the 'j' and
'k' codes.
Johann
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-15 16:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-16 17:52 Distinguish between instructions in print_operand_address Jan Tlatlik
2012-10-16 19:23 ` Georg-Johann Lay
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).