Re: [PATCH v4 4/9] bitint: Avoid extending ABI-extended large/huge _BitInts on load

2025-07-30 Thread Jakub Jelinek
On Wed, Jul 30, 2025 at 03:44:16PM +0800, Yang Yujie wrote: > On Wed, Jul 30, 2025 at 09:29:49AM GMT, Jakub Jelinek wrote: > > On Fri, Jul 25, 2025 at 10:53:37AM +0800, Yang Yujie wrote: > > > + > > >addr_space_t as = TYPE_ADDR_SPACE (TREE_TYPE (var)); > > >if (as != TYPE_ADDR_SPACE (ltype)

Re: [PATCH v4 4/9] bitint: Avoid extending ABI-extended large/huge _BitInts on load

2025-07-30 Thread Yang Yujie
On Wed, Jul 30, 2025 at 09:29:49AM GMT, Jakub Jelinek wrote: > On Fri, Jul 25, 2025 at 10:53:37AM +0800, Yang Yujie wrote: > > + > >addr_space_t as = TYPE_ADDR_SPACE (TREE_TYPE (var)); > >if (as != TYPE_ADDR_SPACE (ltype)) > > ltype = build_qualified_type (ltype, TYPE_QUALS (ltype) > >

Re: [PATCH v4 4/9] bitint: Avoid extending ABI-extended large/huge _BitInts on load

2025-07-30 Thread Jakub Jelinek
On Fri, Jul 25, 2025 at 10:53:37AM +0800, Yang Yujie wrote: > This patch also make casts of ABI-extended large/huge _BitInts > behave the same as the small/middle case, i.e. no-op for casts > to a higher precision _BitInt with the same number of limbs / > extension for casts that turns a full top l

[PATCH v4 4/9] bitint: Avoid extending ABI-extended large/huge _BitInts on load

2025-07-24 Thread Yang Yujie
This patch also make casts of ABI-extended large/huge _BitInts behave the same as the small/middle case, i.e. no-op for casts to a higher precision _BitInt with the same number of limbs / extension for casts that turns a full top limb into a partial limb. This conveniently helps keep some code with