Hi Suwa-san,

On Fri, Sep 19, 2025 at 5:32 AM Takayuki 'January June' Suwa
<jjsuwa_sys3...@yahoo.co.jp> wrote:
>
> This patch moves the process of splitting D[IF]mode constant assignments
> into SImode ones from the define_split implementation after reloading to
> processing within the "xt_largeconst" target-specific pass.
>
> This allows these assignments to be processed by the "constantsynth"
> optimization, which will be reimplemented later.
>
> gcc/ChangeLog:
>
>         * config/xtensa/xtensa-protos.h
>         (xtensa_split_DI_reg_imm): Remove.
>         * config/xtensa/xtensa.cc (xtensa_split_DI_reg_imm): Remove.
>         (split_DI_DF_const): New worker function.
>         (do_largeconst): Add a call to split_DI_DF_const() to the insn
>         enumeration loop.
>         * config/xtensa/xtensa.md (movdi): Remove split code when the
>         source is constant.
>         (movdi_internal): Add a new constraint pair (a, Y) to the second
>         of the existing constraint alternatives.
>         (The auxiliary define_split for movdi_internal): Remove.
> ---
>   gcc/config/xtensa/xtensa-protos.h |  1 -
>   gcc/config/xtensa/xtensa.cc       | 82 +++++++++++++++++++++++--------
>   gcc/config/xtensa/xtensa.md       | 39 +++------------
>   3 files changed, 67 insertions(+), 55 deletions(-)

This change introduces the following new regressions:

+FAIL: gcc.c-torture/execute/builtins/abs-2.c compilation,  -Og -g
(internal compiler error: in extract_constrain_insn, at recog.cc:2785)
+FAIL: gcc.c-torture/execute/builtins/abs-3.c compilation,  -Og -g
(internal compiler error: in extract_constrain_insn, at recog.cc:2785)
+FAIL: gcc.c-torture/execute/builtins/uabs-2.c compilation,  -Og -g
(internal compiler error: in extract_constrain_insn, at recog.cc:2785)
+FAIL: gcc.c-torture/execute/builtins/uabs-3.c compilation,  -Og -g
(internal compiler error: in extract_constrain_insn, at recog.cc:2785)
+FAIL: gcc.c-torture/execute/ieee/20000320-1.c compilation,  -Og -g
(internal compiler error: in extract_constrain_insn, at recog.cc:2785)
+FAIL: gcc.c-torture/execute/ieee/pr30704.c compilation,  -Og -g
(internal compiler error: in extract_constrain_insn, at recog.cc:2785)
+FAIL: gcc.c-torture/execute/ieee/rbug.c compilation,  -Og -g
(internal compiler error: in extract_constrain_insn, at recog.cc:2785)

-- 
Thanks.
-- Max

Reply via email to