This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Distinguish between instructions in print_operand_address


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


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