From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 709483858402; Thu, 26 Aug 2021 14:42:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 709483858402 From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/102080] New: [12 Regression] avx512vl related ICE, on firefox-92 gcc ICEs: in expand_insn, at optabs.c:7946 Date: Thu, 26 Aug 2021 14:42:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2021 14:42:28 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102080 Bug ID: 102080 Summary: [12 Regression] avx512vl related ICE, on firefox-92 gcc ICEs: in expand_insn, at optabs.c:7946 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Observed gcc-12 ICE on today's gcc when was building firefox checkout. I might have reduced it down to something invalid. Here is the minimal reproducer: // cat dec_reconstruct.cc.cc #pragma GCC target "avx" typedef float __m256 __attribute__((__vector_size__(32))); __m256 _mm256_blendv_ps___Y, _mm256_blendv_ps___M, _mm256_mul_ps___A, _mm256_mul_ps___B, IfThenElse___trans_tmp_9; void IfThenElse(__m256 no) { IfThenElse___trans_tmp_9 =3D __builtin_ia32_blendvps256( no, _mm256_blendv_ps___Y, _mm256_blendv_ps___M); } #pragma GCC target "avx512vl" void EncodedFromDisplay() { __m256 __trans_tmp_11 =3D _mm256_mul_ps___A * _mm256_mul_ps___B; IfThenElse(__trans_tmp_11); } -O0 works, -O2 fails: $ /tmp/gcc-c/gcc/xg++ -B/tmp/gcc-c/gcc -c dec_reconstruct.cc.cc -O0 $ /tmp/gcc-c/gcc/xg++ -B/tmp/gcc-c/gcc -c dec_reconstruct.cc.cc -O2 during RTL pass: expand dec_reconstruct.cc.cc: In function 'void EncodedFromDisplay()': dec_reconstruct.cc.cc:10:6: internal compiler error: in expand_insn, at optabs.c:7946 10 | void EncodedFromDisplay() { | ^~~~~~~~~~~~~~~~~~ 0x7f3941d62286 __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 0x7f3941d62337 __libc_start_main_impl ../csu/libc-start.c:409 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $ /tmp/gcc-c/gcc/xg++ -B/tmp/gcc-c/gcc -v Reading specs from /tmp/gcc-c/gcc/specs COLLECT_GCC=3D/tmp/gcc-c/gcc/xg++ COLLECT_LTO_WRAPPER=3D/tmp/gcc-c/gcc/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /home/slyfox/dev/git/gcc/configure --build=3Dx86_64-pc-lin= ux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --enable-languages=3Dc,c++ --disable-bootstrap --with-multilib-list=3Dm64 --prefix=3D/tmp/gcc-c/../gcc-native-quick-installed --disable-nls --without= -isl --disable-libsanitizer --disable-libvtv --disable-libgomp --disable-libstdcxx-pch --disable-libunwind-exceptions CFLAGS=3D'-O1 ' CXXFLAGS=3D'-O1 ' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20210826 (experimental) (GCC)=