From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B14713858C35; Mon, 26 Feb 2024 13:56:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B14713858C35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708955817; bh=u59U03YnvzmYU93hln2r42GaFmJW08EP+w8Vi+1dEXA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kbecNpgTYTLphSIV+gBIZbUDyNPOTtg3XcYo4imT+m/ldiiOHYqyGKm4DUypNpMUM AEzWA/CmUWXTqwfblzNwNoPdbcs1A8w8em8Zw8y4Z31jHT2qYJWD3hiTfnagBnWSjr duPdzCO8oXphkisvIRD8h+NEkYoty8bpivEhk5Gs= From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107855] gcc.dg/vect/vect-ifcvt-18.c FAILs Date: Mon, 26 Feb 2024 13:56:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107855 --- Comment #8 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #6 from Xi Ruoyao --- > Hmm, the test contains > > "/* { dg-additional-options "-Ofast -mavx" { target avx_runtime } } */" > > So it passes on AVX capable native builds, but fails otherwise. I can reproduce things in a VM now: when it doesn't have avx support, the test is compiled with -msse2 only and FAILs both for the dump and execution: FAIL: gcc.dg/vect/vect-ifcvt-18.c -flto -ffat-lto-objects scan-tree-dump v= ect "vectorized 3 loops" FAIL: gcc.dg/vect/vect-ifcvt-18.c -flto -ffat-lto-objects execution test FAIL: gcc.dg/vect/vect-ifcvt-18.c execution test FAIL: gcc.dg/vect/vect-ifcvt-18.c scan-tree-dump vect "vectorized 3 loops" The test aborts here: Thread 2 received signal SIGABRT, Aborted. #0 0xfe26e385 in __lwp_sigqueue () from /lib/libc.so.1 #1 0xfe2660ef in thr_kill () from /lib/libc.so.1 #2 0xfe19db82 in raise () from /lib/libc.so.1 #3 0xfe16b1f4 in abort () from /lib/libc.so.1 #4 0x08050d58 in main () at /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c:34 and the dump shows /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c:28:1= 7: note: =3D=3D=3D analyze_loop_nest =3D=3D=3D /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c:28:1= 7: note: =3D=3D=3D vect_analyze_loop_form =3D=3D=3D /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c:28:1= 7: note: using as main loop exit: 13 -> 14 [AUX: 0] /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c:28:1= 7: missed: not vectorized: unsupported control flow in loop. /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c:28:1= 7: missed: bad loop form. /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c:28:1= 7: missed: couldn't vectorize loop When I add avx support to the VM, the test PASSes. It seems the test is missing some requirement here.=