diff options
author | Alexander Ivchenko <alexander.ivchenko@intel.com> | 2013-12-27 14:37:34 +0000 |
---|---|---|
committer | Kirill Yukhin <kyukhin@gcc.gnu.org> | 2013-12-27 14:37:34 +0000 |
commit | 4de67111df21f434ea650ecb83306807ee7f3068 (patch) | |
tree | c7622df0b4e4f438e1107c89aa47c46c36cd901a | |
parent | 7cf78561f6e669e4d482ad078e9258c6f5ce1aee (diff) | |
download | gcc-4de67111df21f434ea650ecb83306807ee7f3068.zip gcc-4de67111df21f434ea650ecb83306807ee7f3068.tar.gz gcc-4de67111df21f434ea650ecb83306807ee7f3068.tar.bz2 |
sse.md (avx512f_fixupimm<mode>_maskz): Extend to support EVEX's RC.
* config/i386/sse.md (avx512f_fixupimm<mode>_maskz): Extend to support
EVEX's RC.
(avx512f_sfixupimm<mode>_maskz): Ditto.
* config/i386/subst.md (round_saeonly_expand_name): New.
(round_saeonly_expand_nimm_predicate): Ditto.
(round_saeonly_expand_operand6): Ditto.
(round_saeonly_expand): 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>
Co-Authored-By: Sergey Lega <sergey.s.lega@intel.com>
From-SVN: r206223
-rw-r--r-- | gcc/ChangeLog | 18 | ||||
-rw-r--r-- | gcc/config/i386/sse.md | 18 | ||||
-rw-r--r-- | gcc/config/i386/subst.md | 20 |
3 files changed, 48 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9cd2138..601bc76 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -8,6 +8,24 @@ Kirill Yukhin <kirill.yukhin@intel.com> Michael Zolotukhin <michael.v.zolotukhin@intel.com> + * config/i386/sse.md (avx512f_fixupimm<mode>_maskz): Extend to support + EVEX's RC. + (avx512f_sfixupimm<mode>_maskz): Ditto. + * config/i386/subst.md (round_saeonly_expand_name): New. + (round_saeonly_expand_nimm_predicate): Ditto. + (round_saeonly_expand_operand6): Ditto. + (round_saeonly_expand): Ditto. + +2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com> + Maxim Kuznetsov <maxim.kuznetsov@intel.com> + Sergey Lega <sergey.s.lega@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 (avx512f_fmadd_<mode>_maskz): Extend to support EVEX's RC. (avx512f_fmaddsub_<mode>_maskz): Ditto. diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 4e4d5c7..7beb245 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -6626,18 +6626,19 @@ }) -(define_expand "avx512f_fixupimm<mode>_maskz" +(define_expand "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" [(match_operand:VF_512 0 "register_operand") (match_operand:VF_512 1 "register_operand") (match_operand:VF_512 2 "register_operand") - (match_operand:<sseintvecmode> 3 "nonimmediate_operand") + (match_operand:<sseintvecmode> 3 "<round_saeonly_expand_nimm_predicate>") (match_operand:SI 4 "const_0_to_255_operand") (match_operand:<avx512fmaskmode> 5 "register_operand")] "TARGET_AVX512F" { - emit_insn (gen_avx512f_fixupimm<mode>_maskz_1 ( + emit_insn (gen_avx512f_fixupimm<mode>_maskz_1<round_saeonly_expand_name> ( operands[0], operands[1], operands[2], operands[3], - operands[4], CONST0_RTX (<MODE>mode), operands[5])); + operands[4], CONST0_RTX (<MODE>mode), operands[5] + <round_saeonly_expand_operand6>)); DONE; }) @@ -6670,18 +6671,19 @@ [(set_attr "prefix" "evex") (set_attr "mode" "<MODE>")]) -(define_expand "avx512f_sfixupimm<mode>_maskz" +(define_expand "avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>" [(match_operand:VF_128 0 "register_operand") (match_operand:VF_128 1 "register_operand") (match_operand:VF_128 2 "register_operand") - (match_operand:<sseintvecmode> 3 "nonimmediate_operand") + (match_operand:<sseintvecmode> 3 "<round_saeonly_expand_nimm_predicate>") (match_operand:SI 4 "const_0_to_255_operand") (match_operand:<avx512fmaskmode> 5 "register_operand")] "TARGET_AVX512F" { - emit_insn (gen_avx512f_sfixupimm<mode>_maskz_1 ( + emit_insn (gen_avx512f_sfixupimm<mode>_maskz_1<round_saeonly_expand_name> ( operands[0], operands[1], operands[2], operands[3], - operands[4], CONST0_RTX (<MODE>mode), operands[5])); + operands[4], CONST0_RTX (<MODE>mode), operands[5] + <round_saeonly_expand_operand6>)); DONE; }) diff --git a/gcc/config/i386/subst.md b/gcc/config/i386/subst.md index 595dfb9..4a6d477 100644 --- a/gcc/config/i386/subst.md +++ b/gcc/config/i386/subst.md @@ -178,3 +178,23 @@ (match_dup 3) (match_dup 4) (unspec [(match_operand:SI 5 "const_0_to_4_operand")] UNSPEC_EMBEDDED_ROUNDING)]) + +(define_subst_attr "round_saeonly_expand_name" "round_saeonly_expand" "" "_round") +(define_subst_attr "round_saeonly_expand_nimm_predicate" "round_saeonly_expand" "nonimmediate_operand" "register_operand") +(define_subst_attr "round_saeonly_expand_operand6" "round_saeonly_expand" "" ", operands[6]") + +(define_subst "round_saeonly_expand" + [(match_operand:SUBST_V 0) + (match_operand:SUBST_V 1) + (match_operand:SUBST_V 2) + (match_operand:SUBST_A 3) + (match_operand:SI 4) + (match_operand:SUBST_S 5)] + "TARGET_AVX512F" + [(match_dup 0) + (match_dup 1) + (match_dup 2) + (match_dup 3) + (match_dup 4) + (match_dup 5) + (unspec [(match_operand:SI 6 "const_4_to_5_operand")] UNSPEC_EMBEDDED_ROUNDING)]) |