public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/94482] New: Inserting into vector with optimization enabled on x86 generates incorrect result
@ 2020-04-03 22:40 evan@coeus-group.com
  2020-04-04  9:36 ` [Bug target/94482] " marxin at gcc dot gnu.org
                   ` (29 more replies)
  0 siblings, 30 replies; 31+ messages in thread
From: evan@coeus-group.com @ 2020-04-03 22:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94482
           Summary: Inserting into vector with optimization enabled on x86
                    generates incorrect result
           Product: gcc
           Version: 9.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: evan@coeus-group.com
  Target Milestone: ---

Created attachment 48193
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48193&action=edit
Test case

I'm tyring to implement _mm_insert_epi64 without relying on intrinsics.  The
GCC-generated executable fails on x86 (but not x86_64) at -O2 and above. 
AFAICT it works on every other architecture and optimiaztion level I've tried. 
It happens on every version of GCC I've tested (7 - 9.3.0), in both C and C++
modes.

I've attached a test case (generated with C-Reduce, slightly modified to remove
some unnecessary macros) which reproduces the issue.  Line 4 is interesting;
the j field isn't used anywhere but if you remove it the code works
(unfortunately not an option in my project).

Please let me know if you need any additional information.

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

end of thread, other threads:[~2020-04-21 16:37 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-03 22:40 [Bug target/94482] New: Inserting into vector with optimization enabled on x86 generates incorrect result evan@coeus-group.com
2020-04-04  9:36 ` [Bug target/94482] " marxin at gcc dot gnu.org
2020-04-04 17:33 ` evan@coeus-group.com
2020-04-04 21:44 ` ubizjak at gmail dot com
2020-04-04 21:50 ` ubizjak at gmail dot com
2020-04-05 14:44 ` marxin at gcc dot gnu.org
2020-04-05 14:46 ` marxin at gcc dot gnu.org
2020-04-05 21:08 ` evan@coeus-group.com
2020-04-05 22:19 ` evan@coeus-group.com
2020-04-06  6:35 ` marxin at gcc dot gnu.org
2020-04-06  6:47 ` jakub at gcc dot gnu.org
2020-04-06  6:55 ` marxin at gcc dot gnu.org
2020-04-06  7:14 ` jakub at gcc dot gnu.org
2020-04-06  7:20 ` rguenth at gcc dot gnu.org
2020-04-06  7:28 ` [Bug target/94482] [8/9/10 Regression] " jakub at gcc dot gnu.org
2020-04-06  7:29 ` marxin at gcc dot gnu.org
2020-04-06  7:30 ` jakub at gcc dot gnu.org
2020-04-06  8:32 ` rguenth at gcc dot gnu.org
2020-04-06  8:44 ` rguenth at gcc dot gnu.org
2020-04-06  8:54 ` rguenth at gcc dot gnu.org
2020-04-06  9:32 ` rguenth at gcc dot gnu.org
2020-04-06 12:59 ` [Bug tree-optimization/94482] " rguenth at gcc dot gnu.org
2020-04-06 13:40 ` jamborm at gcc dot gnu.org
2020-04-06 16:36 ` rguenth at gcc dot gnu.org
2020-04-09 12:43 ` cvs-commit at gcc dot gnu.org
2020-04-09 12:46 ` [Bug tree-optimization/94482] [8/9 " jamborm at gcc dot gnu.org
2020-04-10  3:39 ` evan@coeus-group.com
2020-04-11  5:51 ` cvs-commit at gcc dot gnu.org
2020-04-21 12:22 ` cvs-commit at gcc dot gnu.org
2020-04-21 15:42 ` cvs-commit at gcc dot gnu.org
2020-04-21 16:37 ` jamborm 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).