https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90806
--- Comment #11 from rguenther at suse dot de <rguenther at suse dot de> --- On Mon, 4 Jan 2021, ebotcazou at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90806 > > --- Comment #10 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > > Since -9223372036854775808 is 0x8000000000000000 and ar3[0] == 1 it suggests > > that the offset is somewhere truncated to 32bits ... but I can't reproduce > > with a x86_64 to aarch64 cross and your reduced testcase for example. > > I should have said that this is for a native x86-64/Linux GCC 10 compiler: if > you compile it with GCC 9 or with GCC 10, then the FRE1 pass behaves > differently So you say that a not bootstrapped GCC 10 compiler compiled with a recent host GCC 11 compiler folds to 1 while using a host GCC 10 (or 9) compiler does not fold to 1? My dev build of GCC 10 head (using GCC 7 as host compiler does not fold to 1)