public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug other/111427] New: [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42 @ 2023-09-15 20:17 seurer at gcc dot gnu.org 2023-09-17 19:30 ` [Bug middle-end/111427] " pinskia at gcc dot gnu.org ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: seurer at gcc dot gnu.org @ 2023-09-15 20:17 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111427 Bug ID: 111427 Summary: [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:3c834d85f2ec42c60995c2b678196a06cb744959, r14-3999-g3c834d85f2ec42 make -k check-gcc RUNTESTFLAGS="--target_board=unix'{-m32,-m64}' vect.exp=gfortran.dg/vect/pr60510.f" spawn [open ...] STOP 1 FAIL: gfortran.dg/vect/pr60510.f -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions execution test commit 3c834d85f2ec42c60995c2b678196a06cb744959 Author: Vladimir N. Makarov <vmakarov@redhat.com> Date: Thu Sep 14 10:26:48 2023 -0400 [RA]: Improve cost calculation of pseudos with equivalences Looks like this actually only happens with -m32. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/111427] [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42 2023-09-15 20:17 [Bug other/111427] New: [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42 seurer at gcc dot gnu.org @ 2023-09-17 19:30 ` pinskia at gcc dot gnu.org 2023-09-22 19:15 ` vmakarov at gcc dot gnu.org ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-09-17 19:30 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111427 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|other |middle-end Keywords| |ra, wrong-code Target Milestone|--- |14.0 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/111427] [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42 2023-09-15 20:17 [Bug other/111427] New: [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42 seurer at gcc dot gnu.org 2023-09-17 19:30 ` [Bug middle-end/111427] " pinskia at gcc dot gnu.org @ 2023-09-22 19:15 ` vmakarov at gcc dot gnu.org 2023-09-26 6:13 ` linkw at gcc dot gnu.org ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: vmakarov at gcc dot gnu.org @ 2023-09-22 19:15 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111427 --- Comment #1 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- Unfortunately, I did not manage to reproduce the bug. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/111427] [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42 2023-09-15 20:17 [Bug other/111427] New: [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42 seurer at gcc dot gnu.org 2023-09-17 19:30 ` [Bug middle-end/111427] " pinskia at gcc dot gnu.org 2023-09-22 19:15 ` vmakarov at gcc dot gnu.org @ 2023-09-26 6:13 ` linkw at gcc dot gnu.org 2023-09-29 19:59 ` [Bug testsuite/111427] " vmakarov at gcc dot gnu.org ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: linkw at gcc dot gnu.org @ 2023-09-26 6:13 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111427 Kewen Lin <linkw at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-09-26 Keywords|ra, wrong-code |testsuite-fail Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gnu.org CC| |linkw at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED --- Comment #2 from Kewen Lin <linkw at gcc dot gnu.org> --- I found it can be reproduced on Power8 but not on Power9 (BE since only BE supports -m32). The option can be reduced to: opts="-m32 -funroll-loops -O2 -mcpu=power8" Looking into the affected test case, IMHO this is a test issue: subroutine foo(a,x,y,n) implicit none integer n,i real*8 y(n),x(n),a do i=1,n a=a+x(i)*y(i)+x(i) enddo return end program test real*8 x(1024),y(1024),a ===> line A do i=1,1024 x(i) = i y(i) = i+1 enddo call foo(a,x,y,1024) if (a.ne.359488000.0) STOP 1 end The variable a in line A is an uninitialized variable. Without the culprit commit, the address of the passed a is 0xfffeec30: Dump of assembler code for function MAIN__: 0x100008b0 <+0>: stwu r1,-16416(r1) ... 0x100009f4 <+324>: lis r12,4096 0x100009f8 <+328>: addi r5,r1,16 0x100009fc <+332>: addi r4,r1,8208 0x10000a00 <+336>: addi r3,r1,16400 0x10000a04 <+340>: addi r6,r12,3160 => 0x10000a08 <+344>: bl 0x10000620 <foo_> (gdb) i r r3 r3 0xfffeec30 4294896688 (gdb) x /2x 0xfffeec30 0xfffeec30: 0x10000524 0x00000000 the random value of "a" is 0x1000052400000000, a tiny float value (1.289846527864432e-231) and doesn't cause the comparison to fail. With the culprit commit, the address of the passed a is 0xfffeec20: 100008b0 <MAIN__>: 100008b0: 94 21 bf d0 stwu r1,-16432(r1) 100008b4: 3d 20 10 00 lis r9,4096 ... (gdb) x /2x 0xfffeec20 0xfffeec20: 0xfffeec40 0x0fddd03c (gdb) i r r3 r3 0xfffeec20 4294896672 the random value of "a" is 0xfffeec400fddd03c, which is NAN, so it causes the comparison to fail. I'm not sure why this doesn't get exposed before (so lucky), but an explicit initialization for a should fix this. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug testsuite/111427] [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42 2023-09-15 20:17 [Bug other/111427] New: [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42 seurer at gcc dot gnu.org ` (2 preceding siblings ...) 2023-09-26 6:13 ` linkw at gcc dot gnu.org @ 2023-09-29 19:59 ` vmakarov at gcc dot gnu.org 2023-10-12 5:06 ` cvs-commit at gcc dot gnu.org 2023-10-12 5:12 ` linkw at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: vmakarov at gcc dot gnu.org @ 2023-09-29 19:59 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111427 --- Comment #3 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- Sorry for the inconvenience caused by the patch. I reverted this patch yesterday. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug testsuite/111427] [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42 2023-09-15 20:17 [Bug other/111427] New: [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42 seurer at gcc dot gnu.org ` (3 preceding siblings ...) 2023-09-29 19:59 ` [Bug testsuite/111427] " vmakarov at gcc dot gnu.org @ 2023-10-12 5:06 ` cvs-commit at gcc dot gnu.org 2023-10-12 5:12 ` linkw at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2023-10-12 5:06 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111427 --- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Kewen Lin <linkw@gcc.gnu.org>: https://gcc.gnu.org/g:610b845a426e26fa86724e5c9d6f74c7a4baf741 commit r14-4581-g610b845a426e26fa86724e5c9d6f74c7a4baf741 Author: Kewen Lin <linkw@linux.ibm.com> Date: Thu Oct 12 00:04:58 2023 -0500 testsuite: Avoid uninit var in pr60510.f [PR111427] The uninitialized variable a in pr60510.f can cause some random failures as exposed in PR111427. This patch is to make it initialized accordingly. PR testsuite/111427 gcc/testsuite/ChangeLog: * gfortran.dg/vect/pr60510.f (test): Init variable a. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug testsuite/111427] [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42 2023-09-15 20:17 [Bug other/111427] New: [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42 seurer at gcc dot gnu.org ` (4 preceding siblings ...) 2023-10-12 5:06 ` cvs-commit at gcc dot gnu.org @ 2023-10-12 5:12 ` linkw at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: linkw at gcc dot gnu.org @ 2023-10-12 5:12 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111427 Kewen Lin <linkw at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #5 from Kewen Lin <linkw at gcc dot gnu.org> --- This failure should be gone as Vladimir reverted the commit exposing this, the fix on uninit var has been also committed. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-10-12 5:12 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-09-15 20:17 [Bug other/111427] New: [14 regression] gfortran.dg/vect/pr60510.f fails after r14-3999-g3c834d85f2ec42 seurer at gcc dot gnu.org 2023-09-17 19:30 ` [Bug middle-end/111427] " pinskia at gcc dot gnu.org 2023-09-22 19:15 ` vmakarov at gcc dot gnu.org 2023-09-26 6:13 ` linkw at gcc dot gnu.org 2023-09-29 19:59 ` [Bug testsuite/111427] " vmakarov at gcc dot gnu.org 2023-10-12 5:06 ` cvs-commit at gcc dot gnu.org 2023-10-12 5:12 ` linkw at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).