* [mask-load, patch 2/2, i386] Add/modify mask load/store patterns
@ 2015-10-08 15:42 Ilya Enkovich
2015-11-10 11:06 ` Kirill Yukhin
0 siblings, 1 reply; 2+ messages in thread
From: Ilya Enkovich @ 2015-10-08 15:42 UTC (permalink / raw)
To: gcc-patches
Hi,
This patch reflects changes in maskload and maskstore optabs and adds patterns for AVX-512.
Thanks,
Ilya
--
2015-10-08 Ilya Enkovich <enkovich.gnu@gmail.com>
* config/i386/sse.md (maskload<mode>): Rename to ...
(maskload<mode><sseintvecmodelower>): ... this.
(maskstore<mode>): Rename to ...
(maskstore<mode><sseintvecmodelower>): ... this.
(maskload<mode><avx512fmaskmodelower>): New.
(maskstore<mode><avx512fmaskmodelower>): New.
diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md
index 3a9d2d3..48424fc 100644
--- a/gcc/config/i386/sse.md
+++ b/gcc/config/i386/sse.md
@@ -18153,7 +18153,7 @@
(set_attr "btver2_decode" "vector")
(set_attr "mode" "<sseinsnmode>")])
-(define_expand "maskload<mode>"
+(define_expand "maskload<mode><sseintvecmodelower>"
[(set (match_operand:V48_AVX2 0 "register_operand")
(unspec:V48_AVX2
[(match_operand:<sseintvecmode> 2 "register_operand")
@@ -18161,7 +18161,23 @@
UNSPEC_MASKMOV))]
"TARGET_AVX")
-(define_expand "maskstore<mode>"
+(define_expand "maskload<mode><avx512fmaskmodelower>"
+ [(set (match_operand:V48_AVX512VL 0 "register_operand")
+ (vec_merge:V48_AVX512VL
+ (match_operand:V48_AVX512VL 1 "memory_operand")
+ (match_dup 0)
+ (match_operand:<avx512fmaskmode> 2 "register_operand")))]
+ "TARGET_AVX512F")
+
+(define_expand "maskload<mode><avx512fmaskmodelower>"
+ [(set (match_operand:VI12_AVX512VL 0 "register_operand")
+ (vec_merge:VI12_AVX512VL
+ (match_operand:VI12_AVX512VL 1 "memory_operand")
+ (match_dup 0)
+ (match_operand:<avx512fmaskmode> 2 "register_operand")))]
+ "TARGET_AVX512BW")
+
+(define_expand "maskstore<mode><sseintvecmodelower>"
[(set (match_operand:V48_AVX2 0 "memory_operand")
(unspec:V48_AVX2
[(match_operand:<sseintvecmode> 2 "register_operand")
@@ -18170,6 +18186,22 @@
UNSPEC_MASKMOV))]
"TARGET_AVX")
+(define_expand "maskstore<mode><avx512fmaskmodelower>"
+ [(set (match_operand:V48_AVX512VL 0 "memory_operand")
+ (vec_merge:V48_AVX512VL
+ (match_operand:V48_AVX512VL 1 "register_operand")
+ (match_dup 0)
+ (match_operand:<avx512fmaskmode> 2 "register_operand")))]
+ "TARGET_AVX512F")
+
+(define_expand "maskstore<mode><avx512fmaskmodelower>"
+ [(set (match_operand:VI12_AVX512VL 0 "memory_operand")
+ (vec_merge:VI12_AVX512VL
+ (match_operand:VI12_AVX512VL 1 "register_operand")
+ (match_dup 0)
+ (match_operand:<avx512fmaskmode> 2 "register_operand")))]
+ "TARGET_AVX512BW")
+
(define_insn_and_split "avx_<castmode><avxsizesuffix>_<castmode>"
[(set (match_operand:AVX256MODE2P 0 "nonimmediate_operand" "=x,m")
(unspec:AVX256MODE2P
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [mask-load, patch 2/2, i386] Add/modify mask load/store patterns
2015-10-08 15:42 [mask-load, patch 2/2, i386] Add/modify mask load/store patterns Ilya Enkovich
@ 2015-11-10 11:06 ` Kirill Yukhin
0 siblings, 0 replies; 2+ messages in thread
From: Kirill Yukhin @ 2015-11-10 11:06 UTC (permalink / raw)
To: Ilya Enkovich; +Cc: gcc-patches
Hi Ilya,
On 08 Oct 18:42, Ilya Enkovich wrote:
> Hi,
>
> This patch reflects changes in maskload and maskstore optabs and adds patterns for AVX-512.
The patch is OK for trunk.
--
Thanks, K
>
> Thanks,
> Ilya
> --
> 2015-10-08 Ilya Enkovich <enkovich.gnu@gmail.com>
>
> * config/i386/sse.md (maskload<mode>): Rename to ...
> (maskload<mode><sseintvecmodelower>): ... this.
> (maskstore<mode>): Rename to ...
> (maskstore<mode><sseintvecmodelower>): ... this.
> (maskload<mode><avx512fmaskmodelower>): New.
> (maskstore<mode><avx512fmaskmodelower>): New.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-10 11:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-08 15:42 [mask-load, patch 2/2, i386] Add/modify mask load/store patterns Ilya Enkovich
2015-11-10 11:06 ` Kirill Yukhin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).