From e7b533a2d431572668daa57c9f3f57530b1f75c1 Mon Sep 17 00:00:00 2001 From: Alexander Ivchenko Date: Thu, 28 Aug 2014 06:30:27 +0000 Subject: [PATCH] AVX-512. Add integer max/min. gcc/ * config/i386/sse.md (define_mode_iterator VI128_256): New. (define_insn "3"): Ditto. Co-Authored-By: Andrey Turetskiy Co-Authored-By: Anna Tikhonova Co-Authored-By: Ilya Tocar Co-Authored-By: Ilya Verbin Co-Authored-By: Kirill Yukhin Co-Authored-By: Maxim Kuznetsov Co-Authored-By: Michael Zolotukhin From-SVN: r214669 --- gcc/ChangeLog | 13 +++++++++++++ gcc/config/i386/sse.md | 14 ++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a758ff40bf1..326919a29c9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2014-08-28 Alexander Ivchenko + Maxim Kuznetsov + Anna Tikhonova + Ilya Tocar + Andrey Turetskiy + Ilya Verbin + Kirill Yukhin + Michael Zolotukhin + + * config/i386/sse.md + (define_mode_iterator VI128_256): New. + (define_insn "3"): Ditto. + 2014-08-28 Alexander Ivchenko Maxim Kuznetsov Anna Tikhonova diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 5904450d453..6c99d846062 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 "3" + [(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\t{%2, %1, %0|%0, %1, %2}" + [(set_attr "type" "sseiadd") + (set_attr "prefix" "evex") + (set_attr "mode" "")]) + (define_expand "3" [(set (match_operand:VI8_AVX2 0 "register_operand") (maxmin:VI8_AVX2 -- 2.30.2