diff options
author | Alexander Ivchenko <alexander.ivchenko@intel.com> | 2014-08-28 06:30:27 +0000 |
---|---|---|
committer | Kirill Yukhin <kyukhin@gcc.gnu.org> | 2014-08-28 06:30:27 +0000 |
commit | e7b533a2d431572668daa57c9f3f57530b1f75c1 (patch) | |
tree | 63512c2ad8bc6f1b9f6bcfdde7cac148e380281f | |
parent | dc3b8d27d4b98cb35404713f6dcb9017f583c2c8 (diff) | |
download | gcc-e7b533a2d431572668daa57c9f3f57530b1f75c1.zip gcc-e7b533a2d431572668daa57c9f3f57530b1f75c1.tar.gz gcc-e7b533a2d431572668daa57c9f3f57530b1f75c1.tar.bz2 |
AVX-512. Add integer max/min.
gcc/
* config/i386/sse.md
(define_mode_iterator VI128_256): New.
(define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
Co-Authored-By: Andrey Turetskiy <andrey.turetskiy@intel.com>
Co-Authored-By: Anna Tikhonova <anna.tikhonova@intel.com>
Co-Authored-By: Ilya Tocar <ilya.tocar@intel.com>
Co-Authored-By: Ilya Verbin <ilya.verbin@intel.com>
Co-Authored-By: Kirill Yukhin <kirill.yukhin@intel.com>
Co-Authored-By: Maxim Kuznetsov <maxim.kuznetsov@intel.com>
Co-Authored-By: Michael Zolotukhin <michael.v.zolotukhin@intel.com>
From-SVN: r214669
-rw-r--r-- | gcc/ChangeLog | 13 | ||||
-rw-r--r-- | gcc/config/i386/sse.md | 14 |
2 files changed, 27 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a758ff4..326919a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -8,6 +8,19 @@ Michael Zolotukhin <michael.v.zolotukhin@intel.com> * config/i386/sse.md + (define_mode_iterator VI128_256): New. + (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto. + +2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com> + Maxim Kuznetsov <maxim.kuznetsov@intel.com> + Anna Tikhonova <anna.tikhonova@intel.com> + Ilya Tocar <ilya.tocar@intel.com> + Andrey Turetskiy <andrey.turetskiy@intel.com> + Ilya Verbin <ilya.verbin@intel.com> + Kirill Yukhin <kirill.yukhin@intel.com> + Michael Zolotukhin <michael.v.zolotukhin@intel.com> + + * config/i386/sse.md (define_mode_iterator VI8_256_512): New. (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"): Ditto. diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 5904450..6c99d84 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -281,6 +281,9 @@ (define_mode_iterator VI8_256_512 [V8DI (V4DI "TARGET_AVX512VL")]) +(define_mode_iterator VI128_256 + [V4DI V2DI V4SI (V16QI "TARGET_AVX512BW") (V8HI "TARGET_AVX512BW")]) + (define_mode_iterator VI1_AVX2 [(V32QI "TARGET_AVX2") V16QI]) @@ -8922,6 +8925,17 @@ (set_attr "prefix" "maybe_evex") (set_attr "mode" "OI")]) +(define_insn "<mask_codefor><code><mode>3<mask_name>" + [(set (match_operand:VI128_256 0 "register_operand" "=v") + (maxmin:VI128_256 + (match_operand:VI128_256 1 "register_operand" "v") + (match_operand:VI128_256 2 "nonimmediate_operand" "vm")))] + "TARGET_AVX512VL" + "vp<maxmin_int><ssemodesuffix>\t{%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %2}" + [(set_attr "type" "sseiadd") + (set_attr "prefix" "evex") + (set_attr "mode" "<sseinsnmode>")]) + (define_expand "<code><mode>3" [(set (match_operand:VI8_AVX2 0 "register_operand") (maxmin:VI8_AVX2 |