public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/3] [i386] Support cond_{smax, smin, umax, umin, xor, ior, and} for vector modes under AVX512
@ 2021-08-04 12:39 liuhongt
  2021-08-04 12:39 ` [PATCH 1/3] [i386] Support cond_{smax, smin, umax, umin} for vector integer " liuhongt
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: liuhongt @ 2021-08-04 12:39 UTC (permalink / raw)
  To: gcc-patches

Hi:
  Together with the previous 3 patches, all cond_op expanders of vector
modes are supported (if they have a corresponding avx512 mask instruction).

  Bootstrapped and regtested on x86_64-linux-gnu{-m32,}.
  
liuhongt (3):
  [i386] Support cond_{smax,smin,umax,umin} for vector integer modes
    under AVX512.
  [i386] Support cond_{smax,smin} for vector float/double modes under
    AVX512.
  [i386] Support cond_{xor,ior,and} for vector integer mode under
    AVX512.

 gcc/config/i386/sse.md                        | 54 +++++++++++++
 .../gcc.target/i386/cond_op_anylogic_d-1.c    | 38 +++++++++
 .../gcc.target/i386/cond_op_anylogic_d-2.c    | 78 +++++++++++++++++++
 .../gcc.target/i386/cond_op_anylogic_q-1.c    | 10 +++
 .../gcc.target/i386/cond_op_anylogic_q-2.c    |  5 ++
 .../gcc.target/i386/cond_op_maxmin_b-1.c      |  8 ++
 .../gcc.target/i386/cond_op_maxmin_b-2.c      |  6 ++
 .../gcc.target/i386/cond_op_maxmin_d-1.c      | 41 ++++++++++
 .../gcc.target/i386/cond_op_maxmin_d-2.c      | 67 ++++++++++++++++
 .../gcc.target/i386/cond_op_maxmin_double-1.c | 39 ++++++++++
 .../gcc.target/i386/cond_op_maxmin_double-2.c | 67 ++++++++++++++++
 .../gcc.target/i386/cond_op_maxmin_float-1.c  |  8 ++
 .../gcc.target/i386/cond_op_maxmin_float-2.c  |  5 ++
 .../gcc.target/i386/cond_op_maxmin_q-1.c      |  8 ++
 .../gcc.target/i386/cond_op_maxmin_q-2.c      |  5 ++
 .../gcc.target/i386/cond_op_maxmin_ub-1.c     |  8 ++
 .../gcc.target/i386/cond_op_maxmin_ub-2.c     |  6 ++
 .../gcc.target/i386/cond_op_maxmin_ud-1.c     |  8 ++
 .../gcc.target/i386/cond_op_maxmin_ud-2.c     |  5 ++
 .../gcc.target/i386/cond_op_maxmin_uq-1.c     |  8 ++
 .../gcc.target/i386/cond_op_maxmin_uq-2.c     |  5 ++
 .../gcc.target/i386/cond_op_maxmin_uw-1.c     |  8 ++
 .../gcc.target/i386/cond_op_maxmin_uw-2.c     |  6 ++
 .../gcc.target/i386/cond_op_maxmin_w-1.c      |  8 ++
 .../gcc.target/i386/cond_op_maxmin_w-2.c      |  6 ++
 25 files changed, 507 insertions(+)
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_anylogic_d-1.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_anylogic_d-2.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_anylogic_q-1.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_anylogic_q-2.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_b-1.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_b-2.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_d-1.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_d-2.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_double-1.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_double-2.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_float-1.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_float-2.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_q-1.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_q-2.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_ub-1.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_ub-2.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_ud-1.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_ud-2.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_uq-1.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_uq-2.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_uw-1.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_uw-2.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_w-1.c
 create mode 100644 gcc/testsuite/gcc.target/i386/cond_op_maxmin_w-2.c

-- 
2.18.1


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

end of thread, other threads:[~2021-08-04 12:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-04 12:39 [PATCH 0/3] [i386] Support cond_{smax, smin, umax, umin, xor, ior, and} for vector modes under AVX512 liuhongt
2021-08-04 12:39 ` [PATCH 1/3] [i386] Support cond_{smax, smin, umax, umin} for vector integer " liuhongt
2021-08-04 12:39 ` [PATCH 2/3] [i386] Support cond_{smax, smin} for vector float/double " liuhongt
2021-08-04 12:39 ` [PATCH 3/3] [i386] Support cond_{xor, ior, and} for vector integer mode " liuhongt
2021-08-04 12:48 ` [PATCH 0/3] [i386] Support cond_{smax, smin, umax, umin, xor, ior, and} for vector modes " Hongtao Liu

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).