public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/97642] New: Incorrect replacement of vmovdqu32 with vpblendd can cause fault
@ 2020-10-30 16:33 goldstein.w.n at gmail dot com
  2020-10-30 17:57 ` [Bug c++/97642] " jakub at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: goldstein.w.n at gmail dot com @ 2020-10-30 16:33 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97642
           Summary: Incorrect replacement of vmovdqu32 with vpblendd can
                    cause fault
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: goldstein.w.n at gmail dot com
  Target Milestone: ---

GCC sometimes replaces 

_mm256_mask_loadu_epi32(__m256i src, __mask8 k, void const * mem_addr) //
vmovdqu32

With

vpblendd

If mem_addr points to a memory region with less than 32 bytes of accessible
memory and k is a mask that would prevent reading the inaccessible bytes from
mem_addr the replacement will cause a fault.

See: https://godbolt.org/z/Y5cTxz

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

end of thread, other threads:[~2023-01-30 19:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-30 16:33 [Bug c++/97642] New: Incorrect replacement of vmovdqu32 with vpblendd can cause fault goldstein.w.n at gmail dot com
2020-10-30 17:57 ` [Bug c++/97642] " jakub at gcc dot gnu.org
2020-10-30 17:57 ` jakub at gcc dot gnu.org
2020-11-03  7:46 ` [Bug target/97642] " crazylht at gmail dot com
2020-11-03  9:03 ` jakub at gcc dot gnu.org
2020-12-03  5:34 ` cvs-commit at gcc dot gnu.org
2020-12-03  5:40 ` crazylht at gmail dot com
2023-01-30 19:10 ` pinskia 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).