From: Alexander Ivchenko Date: Thu, 28 Aug 2014 06:30:27 +0000 (+0000) Subject: AVX-512. Add integer max/min. X-Git-Tag: upstream/12.2.0~60703 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7b533a2d431572668daa57c9f3f57530b1f75c1;p=platform%2Fupstream%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a758ff4..326919a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -8,6 +8,19 @@ 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 + Ilya Tocar + Andrey Turetskiy + Ilya Verbin + Kirill Yukhin + Michael Zolotukhin + + * config/i386/sse.md (define_mode_iterator VI8_256_512): New. (define_insn "avx512dq_cvtps2qq"): 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 "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