mirror of git://gcc.gnu.org/git/gcc.git
sse.md (avx512f_fmadd_<mode>_maskz): Extend to support EVEX's RC.
* config/i386/sse.md (avx512f_fmadd_<mode>_maskz): Extend to support
EVEX's RC.
(avx512f_fmaddsub_<mode>_maskz): Ditto.
* config/i386/subst.md (round_expand_name): New.
(round_expand_nimm_predicate): Ditto.
(round_expand_operand): Ditto.
(round_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: r206222
This commit is contained in:
parent
8a6ef76052
commit
7cf78561f6
|
|
@ -1,3 +1,21 @@
|
||||||
|
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.
|
||||||
|
* config/i386/subst.md (round_expand_name): New.
|
||||||
|
(round_expand_nimm_predicate): Ditto.
|
||||||
|
(round_expand_operand): Ditto.
|
||||||
|
(round_expand): Ditto.
|
||||||
|
|
||||||
2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
|
2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
|
||||||
Maxim Kuznetsov <maxim.kuznetsov@intel.com>
|
Maxim Kuznetsov <maxim.kuznetsov@intel.com>
|
||||||
Sergey Lega <sergey.s.lega@intel.com>
|
Sergey Lega <sergey.s.lega@intel.com>
|
||||||
|
|
|
||||||
|
|
@ -2741,17 +2741,17 @@
|
||||||
(match_operand:FMAMODE 3 "nonimmediate_operand")))]
|
(match_operand:FMAMODE 3 "nonimmediate_operand")))]
|
||||||
"")
|
"")
|
||||||
|
|
||||||
(define_expand "avx512f_fmadd_<mode>_maskz"
|
(define_expand "avx512f_fmadd_<mode>_maskz<round_expand_name>"
|
||||||
[(match_operand:VF_512 0 "register_operand")
|
[(match_operand:VF_512 0 "register_operand")
|
||||||
(match_operand:VF_512 1 "nonimmediate_operand")
|
(match_operand:VF_512 1 "<round_expand_nimm_predicate>")
|
||||||
(match_operand:VF_512 2 "nonimmediate_operand")
|
(match_operand:VF_512 2 "<round_expand_nimm_predicate>")
|
||||||
(match_operand:VF_512 3 "nonimmediate_operand")
|
(match_operand:VF_512 3 "<round_expand_nimm_predicate>")
|
||||||
(match_operand:<avx512fmaskmode> 4 "register_operand")]
|
(match_operand:<avx512fmaskmode> 4 "register_operand")]
|
||||||
"TARGET_AVX512F"
|
"TARGET_AVX512F"
|
||||||
{
|
{
|
||||||
emit_insn (gen_fma_fmadd_<mode>_maskz_1 (
|
emit_insn (gen_fma_fmadd_<mode>_maskz_1<round_expand_name> (
|
||||||
operands[0], operands[1], operands[2], operands[3],
|
operands[0], operands[1], operands[2], operands[3],
|
||||||
CONST0_RTX (<MODE>mode), operands[4]));
|
CONST0_RTX (<MODE>mode), operands[4]<round_expand_operand>));
|
||||||
DONE;
|
DONE;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -2983,17 +2983,17 @@
|
||||||
UNSPEC_FMADDSUB))]
|
UNSPEC_FMADDSUB))]
|
||||||
"TARGET_FMA || TARGET_FMA4 || TARGET_AVX512F")
|
"TARGET_FMA || TARGET_FMA4 || TARGET_AVX512F")
|
||||||
|
|
||||||
(define_expand "avx512f_fmaddsub_<mode>_maskz"
|
(define_expand "avx512f_fmaddsub_<mode>_maskz<round_expand_name>"
|
||||||
[(match_operand:VF_512 0 "register_operand")
|
[(match_operand:VF_512 0 "register_operand")
|
||||||
(match_operand:VF_512 1 "nonimmediate_operand")
|
(match_operand:VF_512 1 "<round_expand_nimm_predicate>")
|
||||||
(match_operand:VF_512 2 "nonimmediate_operand")
|
(match_operand:VF_512 2 "<round_expand_nimm_predicate>")
|
||||||
(match_operand:VF_512 3 "nonimmediate_operand")
|
(match_operand:VF_512 3 "<round_expand_nimm_predicate>")
|
||||||
(match_operand:<avx512fmaskmode> 4 "register_operand")]
|
(match_operand:<avx512fmaskmode> 4 "register_operand")]
|
||||||
"TARGET_AVX512F"
|
"TARGET_AVX512F"
|
||||||
{
|
{
|
||||||
emit_insn (gen_fma_fmaddsub_<mode>_maskz_1 (
|
emit_insn (gen_fma_fmaddsub_<mode>_maskz_1<round_expand_name> (
|
||||||
operands[0], operands[1], operands[2], operands[3],
|
operands[0], operands[1], operands[2], operands[3],
|
||||||
CONST0_RTX (<MODE>mode), operands[4]));
|
CONST0_RTX (<MODE>mode), operands[4]<round_expand_operand>));
|
||||||
DONE;
|
DONE;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -160,3 +160,21 @@
|
||||||
(set (match_dup 0)
|
(set (match_dup 0)
|
||||||
(match_dup 1))
|
(match_dup 1))
|
||||||
(unspec [(match_operand:SI 2 "const_4_to_5_operand")] UNSPEC_EMBEDDED_ROUNDING)])])
|
(unspec [(match_operand:SI 2 "const_4_to_5_operand")] UNSPEC_EMBEDDED_ROUNDING)])])
|
||||||
|
|
||||||
|
(define_subst_attr "round_expand_name" "round_expand" "" "_round")
|
||||||
|
(define_subst_attr "round_expand_nimm_predicate" "round_expand" "nonimmediate_operand" "register_operand")
|
||||||
|
(define_subst_attr "round_expand_operand" "round_expand" "" ", operands[5]")
|
||||||
|
|
||||||
|
(define_subst "round_expand"
|
||||||
|
[(match_operand:SUBST_V 0)
|
||||||
|
(match_operand:SUBST_V 1)
|
||||||
|
(match_operand:SUBST_V 2)
|
||||||
|
(match_operand:SUBST_V 3)
|
||||||
|
(match_operand:SUBST_S 4)]
|
||||||
|
"TARGET_AVX512F"
|
||||||
|
[(match_dup 0)
|
||||||
|
(match_dup 1)
|
||||||
|
(match_dup 2)
|
||||||
|
(match_dup 3)
|
||||||
|
(match_dup 4)
|
||||||
|
(unspec [(match_operand:SI 5 "const_0_to_4_operand")] UNSPEC_EMBEDDED_ROUNDING)])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue