On Thu, May 30, 2024 at 6:33 AM Takayuki 'January June' Suwa <jjsuwa_sys3...@yahoo.co.jp> wrote: > > Instead of comparing directly, this patch replaces as much as possible with > macros that determine RTX code such as REG_P(), SUBREG_P() or MEM_P(), etc. > > gcc/ChangeLog: > > * config/xtensa/xtensa.cc (xtensa_valid_move, constantpool_address_p, > xtensa_tls_symbol_p, gen_int_relational, xtensa_emit_move_sequence, > xtensa_copy_incoming_a7, xtensa_expand_block_move, > xtensa_expand_nonlocal_goto, xtensa_emit_call, > xtensa_legitimate_address_p, xtensa_legitimize_address, > xtensa_tls_referenced_p, print_operand, print_operand_address, > xtensa_output_literal): > Replace RTX code comparisons with their predicate macros such as > REG_P(). > * config/xtensa/xtensa.h (CONSTANT_ADDRESS_P, > LEGITIMATE_PIC_OPERAND_P): Ditto. > * config/xtensa/xtensa.md (reload<mode>_literal, indirect_jump): > Ditto. > --- > gcc/config/xtensa/xtensa.cc | 90 ++++++++++++++++++------------------- > gcc/config/xtensa/xtensa.h | 10 ++--- > gcc/config/xtensa/xtensa.md | 4 +- > 3 files changed, 51 insertions(+), 53 deletions(-)
Regtested for target=xtensa-linux-uclibc, no new regressions. Committed to master. For some reason neither git am nor patch -p1 could apply this patch, so I did that manually. -- Thanks. -- Max