On Fri, 2025-11-14 at 10:04 +0800, Deng Jianbo wrote:

/* snip */

> diff --git a/gcc/config/loongarch/loongarch.cc 
> b/gcc/config/loongarch/loongarch.cc
> index 1f29de5f6e1..207af959b2e 100644
> --- a/gcc/config/loongarch/loongarch.cc
> +++ b/gcc/config/loongarch/loongarch.cc
> @@ -1941,8 +1941,170 @@ loongarch_check_vect_par_cnst_half (rtx op, 
> machine_mode mode, bool high_p)
>    return true;
>  }
>  
> +/* VLDI or XVLDI instruction could have 13 bits imm part, this mask is used 
> to
> +   indicate the highest bit is 1.  */
> +#define VLDI_NEG_MASK 0xFFFFFFFFFFFFF000

HOST_WIDE_INT_C (0xFFFFFFFFFFFFF000) to avoid a warning on 32-bit hosts.

-- 
Xi Ruoyao <[email protected]>

Reply via email to