https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127256
Bug ID: 127256
Summary: libjxl build ICEs in simplify_gen_subreg_concatn, at
lower-subreg.cc:744
Product: gcc
Version: 16.1.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
Target Milestone: ---
Target: aarch64
We see libjxl ICEing like
./cc1plus -quiet enc_group.cc.ii -mbranch-protection=standard -mlittle-endian
-mabi=lp64 -O2 -Werror=return-type -Wno-builtin-macro-redefined -Wall -Wextra
-Wc++11-compat -Warray-bounds=1 -Wformat-security -Wimplicit-fallthrough=3
-Wno-register -Wno-unused-function -Wno-unused-parameter -Wnon-virtual-dtor
-Woverloaded-virtual=2 -Wvla -Wframe-larger-than=5632 -Woverloaded-virtual=0
-std=c++17 -fstack-protector-strong -fasynchronous-unwind-tables
-fstack-clash-protection -fno-rtti -fPIC -fvisibility=hidden
-fvisibility-inlines-hidden -funwind-tables -fno-omit-frame-pointer
-fmerge-all-constants -fno-builtin-fwrite -fno-builtin-fread
-fsized-deallocation -fno-exceptions -fmath-errno -I include
during RTL pass: subreg3
In file included from
/home/abuild/rpmbuild/BUILD/libjxl-0.12.0-build/libjxl-0.12.0/lib/jxl/enc_group.cc:40,
from /usr/include/hwy/foreach_target.h:229,
from
/home/abuild/rpmbuild/BUILD/libjxl-0.12.0-build/libjxl-0.12.0/lib/jxl/enc_group.cc:27:
/home/abuild/rpmbuild/BUILD/libjxl-0.12.0-build/libjxl-0.12.0/lib/jxl/enc_transforms-inl.h:
In function ‘void
jxl::N_SVE2_128::{anonymous}::DCFromLowestFrequencies(jxl::AcStrategyType,
const float*, float*, size_t, float*)’:
/home/abuild/rpmbuild/BUILD/libjxl-0.12.0-build/libjxl-0.12.0/lib/jxl/enc_transforms-inl.h:799:1:
internal compiler error: in simplify_gen_subreg_concatn, at lower-subreg.cc:744
0x246fc4d internal_error(char const*, ...)
/home/rguenther/src/gcc-16-branch/gcc/diagnostic-global-context.cc:787
0x2476a6f fancy_abort(char const*, int, char const*)
/home/rguenther/src/gcc-16-branch/gcc/diagnostics/context.cc:1813
0xa322a3 simplify_gen_subreg_concatn
/home/rguenther/src/gcc-16-branch/gcc/lower-subreg.cc:744
0x22454da resolve_simple_move
/home/rguenther/src/gcc-16-branch/gcc/lower-subreg.cc:1118
0x224656d decompose_multiword_subregs
/home/rguenther/src/gcc-16-branch/gcc/lower-subreg.cc:1688
0x22472ed execute
/home/rguenther/src/gcc-16-branch/gcc/lower-subreg.cc:1849
I have full preprocessed source but am reducing it right now, hoping that
trunk will be happy with it (it doesn't like GCC 16 preprocessed sources).