public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/94212] New: [AARCH64] [Regression] Incorrect vectorization of loop with FP calculations
@ 2020-03-18 12:41 dpochepk at gmail dot com
  2020-03-18 12:56 ` [Bug middle-end/94212] " pinskia at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: dpochepk at gmail dot com @ 2020-03-18 12:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94212

            Bug ID: 94212
           Summary: [AARCH64] [Regression] Incorrect vectorization of loop
                    with FP calculations
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dpochepk at gmail dot com
  Target Milestone: ---

Created attachment 48054
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48054&action=edit
example application returning different result for O3 and O2

Example application (FP polynomial loop calculations) gives different result
for O2 and O3 optimizations. Different is 1 ulp, so it might be some kind of
rounding error (unsafe math leaked?).
"-O3 -fno-tree-vectorize" gives correct result.

This issue seems to affect aarch64-only (at least x86_64 is fine).
Tried several gcc versions:

trunk: affected
gcc8.3: affected
gcc7.4: not affected

(I haven't investigated assembly)

Example application is in attachment. Method "foo" has vectorized loop, which
is probably the trigger for this bug.

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-07-26 13:47 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-18 12:41 [Bug c/94212] New: [AARCH64] [Regression] Incorrect vectorization of loop with FP calculations dpochepk at gmail dot com
2020-03-18 12:56 ` [Bug middle-end/94212] " pinskia at gcc dot gnu.org
2020-03-18 12:58 ` pinskia at gcc dot gnu.org
2020-03-18 12:59 ` [Bug middle-end/94212] " pinskia at gcc dot gnu.org
2020-03-18 13:10 ` pinskia at gcc dot gnu.org
2020-03-18 13:44 ` [Bug tree-optimization/94212] [8/9/10 Regression] " rguenth at gcc dot gnu.org
2020-03-18 14:37 ` dpochepk at gmail dot com
2020-03-18 15:14 ` rguenth at gcc dot gnu.org
2020-03-18 16:49 ` dpochepk at gmail dot com
2021-01-14  8:34 ` [Bug tree-optimization/94212] [8/9/10/11 " rguenth at gcc dot gnu.org
2021-03-26  9:40 ` qianjh at cn dot fujitsu.com
2021-03-26  9:47 ` rguenther at suse dot de
2021-05-14  9:53 ` [Bug tree-optimization/94212] [9/10/11/12 " jakub at gcc dot gnu.org
2021-06-01  8:16 ` rguenth at gcc dot gnu.org
2022-05-27  9:42 ` [Bug tree-optimization/94212] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:40 ` jakub at gcc dot gnu.org
2022-07-26 13:47 ` rguenth 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).