On Tue, 2022-11-01 at 20:04 +0800, Lulu Cheng wrote:
> gcc/ChangeLog:
> 
>         * config/loongarch/constraints.md (x): New constraint.
>         * config/loongarch/loongarch.cc (struct loongarch_address_info):
>         Adds a method to load the immediate 32 to 64 bit field.
>         (struct loongarch_integer_op): Define a new member curr_value,
>         that records the value of the number stored in the destination
>         register immediately after the current instruction has run.
>         (LARCH_MAX_INTEGER_OPS): Define this macro as 3.
>         (LU32I_B): Move to the loongarch.h.
>         (LU52I_B): Likewise.
>         (loongarch_build_integer): Adds a method to load the immediate
>         32 to 63 bits.
>         (loongarch_move_integer): Likewise.

We need to mention "call set_unique_reg_note" here because it seems the
key to resolve the issue.

Otherwise LGTM.

>         (loongarch_print_operand_reloc): Modifying comment information.
>         * config/loongarch/loongarch.h (LU32I_B): Move from loongarch.cc.
>         (LU52I_B): Likewise.
>         (HWIT_UC_0xFFFFFFFF): New macro.
>         (HI32_OPERAND): New macro.
>         * config/loongarch/loongarch.md (load_hi32): New template.
>         * config/loongarch/predicates.md (const_hi32_operand): Determines
>         whether the value is an immediate number that has a value of only
>         the higher 32 bits.
>         (hi32_mask_operand): Immediately counts the mask of 32 to 61 bits.

-- 
Xi Ruoyao <xry...@xry111.site>
School of Aerospace Science and Technology, Xidian University

Reply via email to