sse.md (maskload<mode>): Rename to ...
authorIlya Enkovich <enkovich.gnu@gmail.com>
Tue, 10 Nov 2015 12:08:02 +0000 (12:08 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Tue, 10 Nov 2015 12:08:02 +0000 (12:08 +0000)
2015-11-10  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.

From-SVN: r230100

gcc/ChangeLog
gcc/config/i386/sse.md

index a7421a995debad9323f1deb3126d12d23cd02864..2360be2c3805a463d082ccb9056e690ed2b2a37f 100644 (file)
@@ -1,3 +1,12 @@
+2015-11-10  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.
+
 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
 
        * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
index 57feb27798bc84db1870a5d981be7647412b8bd4..f804255aedf2d3218e18e6b2d75660a9dd1e344a 100644 (file)
    (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")
          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")
          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