From: Dimitar Dimitrov Date: Sat, 2 Mar 2024 13:05:12 +0000 (+0200) Subject: pru: Use HOST_WIDE_INT_1U macro X-Git-Tag: basepoints/gcc-16~9322 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d342993a4d5000bcd3fd407e42e348c6d4a80b3;p=thirdparty%2Fgcc.git pru: Use HOST_WIDE_INT_1U macro Use the HOST_WIDE_INT_1U macro instead of literal 1 when constructing constants for RTL. gcc/ChangeLog: * config/pru/pru.md (lshrdi3): Use HOST_WIDE_INT_1U macro. (ashldi3): Ditto. Signed-off-by: Dimitar Dimitrov --- diff --git a/gcc/config/pru/pru.md b/gcc/config/pru/pru.md index 2ceea2e7b1c..db7a5af6875 100644 --- a/gcc/config/pru/pru.md +++ b/gcc/config/pru/pru.md @@ -870,7 +870,8 @@ JUMP_LABEL (j) = skip_hiset_label; LABEL_NUSES (skip_hiset_label)++; - emit_insn (gen_iorsi3 (dst_lo, dst_lo, GEN_INT (1 << 31))); + const HOST_WIDE_INT bit31_mask = HOST_WIDE_INT_1U << 31; + emit_insn (gen_iorsi3 (dst_lo, dst_lo, GEN_INT (bit31_mask))); emit_label (skip_hiset_label); emit_insn (gen_rtx_SET (dst_hi, gen_rtx_LSHIFTRT (SImode, src_hi, const1_rtx))); @@ -959,7 +960,8 @@ JUMP_LABEL (j) = skip_hiset_label; LABEL_NUSES (skip_hiset_label)++; - emit_insn (gen_iorsi3 (dst_hi, dst_hi, GEN_INT (1 << 0))); + const HOST_WIDE_INT bit0_mask = HOST_WIDE_INT_1U << 0; + emit_insn (gen_iorsi3 (dst_hi, dst_hi, GEN_INT (bit0_mask))); emit_label (skip_hiset_label); emit_insn (gen_rtx_SET (dst_lo, gen_rtx_ASHIFT (SImode, src_lo, const1_rtx)));