From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3585F3858C52; Mon, 1 Aug 2022 11:46:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3585F3858C52 From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106480] FAIL: gcc.dg/Warray-bounds-48.c pr102706 (test for warnings, line 33) Date: Mon, 01 Aug 2022 11:46:36 +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: testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net 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: 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 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: Mon, 01 Aug 2022 11:46:36 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106480 --- Comment #2 from dave.anglin at bell dot net --- On 2022-08-01 5:12 a.m., rguenth at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106480 > > Richard Biener changed: > > What |Removed |Added > -------------------------------------------------------------------------= --- > Keywords| |testsuite-fail > > --- Comment #1 from Richard Biener --- > Both are guarded like > > p->a0[0] =3D 4; p->a0[1] =3D 5; // { dg-warning "\\\[-Wstringop-overf= low" > "pr102706" { target { vect_slp_v2hi_store_align && { ! > vect_slp_v4hi_store_unalign } } } } > > the vect_slp_* predicates according to comments implement exactly the cas= e in > the testsuite, but for some reason it doesn't work on hppa? Yes, I guess this implies a problem with # Return the true if target support vectorization of 4-byte short stores # with 4-byte aligned address at plain O2. proc check_effective_target_vect_slp_v2hi_store_align { } { =C2=A0=C2=A0=C2=A0 set pattern {add new stmt: MEM } =C2=A0=C2=A0=C2=A0 set macro "TEST_V2HI_2" =C2=A0=C2=A0=C2=A0 return [check_cached_effective_target vect_slp_v2hi_sto= re_align { =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 expr [check_vect_slp_store_usag= e $pattern $macro ] }] } # Return the true if target support vectorization of 8-byte short stores # with unaligned address at plain O2. # NB: This target should be removed after real issues are fixed for # -Wstringop-overflow with O2 vect. Be careful if you want to reuse # this target since tests in check_vect_slp_store_usage # is the exact match of relative testcases proc check_effective_target_vect_slp_v4hi_store_unalign { } { =C2=A0=C2=A0=C2=A0 set pattern {add new stmt: MEM } =C2=A0=C2=A0=C2=A0 set macro "TEST_V4HI" =C2=A0=C2=A0=C2=A0 return [check_cached_effective_target vect_slp_v4hi_sto= re_unalign { =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 expr [check_vect_slp_store_usag= e $pattern $macro ] }] } in target-supports.exp.=