On 8/14/26 12:02 AM, Jin Ma wrote:
Recognize the descending-address counterpart of the integer
load/store pair fusion.  Reuse the common pair matcher and select the
reversed one-access-size offset relationship.

Leave the fusion disabled by default and XFAIL its positive dump
checks until a CPU enables it.

gcc/ChangeLog:

        * config/riscv/riscv-fusion.cc (riscv_fuse_ldst_pair_dec): New
        function.
        (riscv_fusion_table): Add RISCV_FUSE_LDST_PAIR_DEC.
        * config/riscv/riscv-protos.h (enum riscv_fusion_pairs): Add
        RISCV_FUSE_LDST_PAIR_DEC.

gcc/testsuite/ChangeLog:

        * gcc.target/riscv/fusion-ldst-pair-dec.c: New test.
OK once prereqs are approved.

Jeff


Reply via email to