public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/111119] New: maskload and maskstore for integer modes are oddly conditional on AVX2
@ 2023-08-23 12:29 rguenth at gcc dot gnu.org
  2023-08-24 12:47 ` [Bug target/111119] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-08-23 12:29 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111119
           Summary: maskload and maskstore for integer modes are oddly
                    conditional on AVX2
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

We have

(define_expand "maskload<mode><sseintvecmodelower>"
  [(set (match_operand:V48_AVX2 0 "register_operand")
    (unspec:V48_AVX2
      [(match_operand:<sseintvecmode> 2 "register_operand")
       (match_operand:V48_AVX2 1 "memory_operand")]
      UNSPEC_MASKMOV))]
  "TARGET_AVX")

and

(define_mode_iterator V48_AVX2
  [V4SF V2DF
   V8SF V4DF
   (V4SI "TARGET_AVX2") (V2DI "TARGET_AVX2")
   (V8SI "TARGET_AVX2") (V4DI "TARGET_AVX2")])

so for example maskloadv4siv4si is disabled with just -mavx while the actual
instruction can operate just fine on SImode sized data by pretending its
SFmode.

check_effective_target_vect_masked_load is conditional on AVX, not AVX2.

With just AVX we can still use SSE2 vectorization for integer operations using
masked loads/stores from AVX.

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

end of thread, other threads:[~2023-08-29 12:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-23 12:29 [Bug target/111119] New: maskload and maskstore for integer modes are oddly conditional on AVX2 rguenth at gcc dot gnu.org
2023-08-24 12:47 ` [Bug target/111119] " rguenth at gcc dot gnu.org
2023-08-25  0:36 ` crazylht at gmail dot com
2023-08-25  0:46 ` crazylht at gmail dot com
2023-08-28  1:26 ` cvs-commit at gcc dot gnu.org
2023-08-28  1:26 ` crazylht at gmail dot com
2023-08-29 12:12 ` 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).