Re: [PATCH v4 7/9] bitint: Do not optimize away conversion to _BitInt before a VCE

2025-07-30 Thread Jakub Jelinek
On Fri, Jul 25, 2025 at 10:53:40AM +0800, Yang Yujie wrote: > --- /dev/null > +++ b/gcc/testsuite/gcc.dg/torture/bitint-84.c > @@ -0,0 +1,19 @@ > +/* A simple variant of gcc.dg/torture/bitint-64.c */ > +/* { dg-do run { target bitint } } */ > +/* { dg-options "-std=c23 -fwrapv" } */ > +/* { dg-skip

[PATCH v4 7/9] bitint: Do not optimize away conversion to _BitInt before a VCE

2025-07-24 Thread Yang Yujie
A _BitInt value may rely on a conversion to become properly extended. So a conversion to _BitInt is not trivially removable even if the types of the result and the operand have the same precision and size. This patches fixes gcc.dg/torture/bitint-64.c at -O2 on LoongArch, which fails because exten