1. 14 Oct, 2014 20 commits
    • AVX-512. 72/n. Extend VI itterator. · 9945a432
      gcc/
      	* config/i386/i386.c
      	(ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
      	* config/i386/sse.md
      	(define_mode_iterator VI): Add V64QI and V32HI modes.
      
      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>
      
      From-SVN: r216190
      Alexander Ivchenko committed
    • AVX-512. 71/n. Remove redudant iterator attribute. · 7c3a34ae
      gcc/
      	* config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
      
      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>
      
      From-SVN: r216189
      Alexander Ivchenko committed
    • typedefs.cc: Rename to alias_decl.cc. · 181e0368
      2014-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* testsuite/20_util/add_lvalue_reference/requirements/typedefs.cc:
      	Rename to alias_decl.cc.
      	* testsuite/20_util/add_rvalue_reference/requirements/typedefs.cc:
      	Likewise.
      	* testsuite/20_util/common_type/requirements/typedefs-3.cc: Likewise.
      	* testsuite/20_util/conditional/requirements/typedefs-2.cc: Likewise.
      	* testsuite/20_util/decay/requirements/typedefs-2.cc: Likewise.
      	* testsuite/20_util/enable_if/requirements/typedefs-2.cc: Likewise.
      	* testsuite/20_util/make_signed/requirements/typedefs-3.cc: Likewise.
      	* testsuite/20_util/make_unsigned/requirements/typedefs-3.cc:
      	Likewise.
      	* testsuite/20_util/remove_reference/requirements/typedefs.cc:
      	Likewise.
      	* testsuite/20_util/result_of/requirements/typedefs.cc: Likewise.
      	* testsuite/20_util/underlying_type/requirements/typedefs-3.cc:
      	Likewise.
      
      From-SVN: r216188
      Paolo Carlini committed
    • AVX-512. 70/n. Add vpmaxmin. · c305ca7f
      gcc/
      	* config/i386/sse.md
      	(define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
      	(define_insn "*sse4_1_<code><mode>3<mask_name>"): 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>
      
      From-SVN: r216187
      Alexander Ivchenko committed
    • AVX-512. 69/n. Add vpmulhrsw insn support. · cf25c309
      gcc/
              * config/i386/sse.md
              (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
              (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): 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>
      
      From-SVN: r216186
      Alexander Ivchenko committed
    • AVX-512. 68/n. Add vpmullw, vpacksdw, pmaddwd insn. · ed3e611e
      gcc/
      	* config/i386/sse.md
      	(define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
      	(define_mode_iterator VI2_AVX2): Add V32HI mode.
      	(define_expand "mul<mode>3<mask_name>"): Add masking.
      	(define_insn "*mul<mode>3<mask_name>"): Ditto.
      	(define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
      	(define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
      	(define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
      	(define_mode_attr SDOT_PMADD_SUF): Ditto.
      	(define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
      	(define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
      	(define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
      	(define_insn "avx2_packusdw"): Delete.
      	(define_insn "sse4_1_packusdw"): Ditto.
      	(define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
      
      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>
      
      From-SVN: r216185
      Alexander Ivchenko committed
    • AVX-512. 67/n. Update constraints in vec_dup insn. · 1aff6f9a
      gcc/
      	* config/i386/sse.md
      	(define_insn "vec_dup<mode>"): Update constraints.
      
      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>
      
      From-SVN: r216184
      Alexander Ivchenko committed
    • AVX-512. 66/n. Extend vpalignr insn patterns. · b99ba39a
      gcc/
      	* config/i386/sse.md
      	(define_mode_iterator SSESCALARMODE): Add V4TI mode.
      	(define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
      	(define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
      
      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>
      
      From-SVN: r216183
      Alexander Ivchenko committed
    • AVX-512. 65/n. Add rest of VI1-AVX2: mul insn pattern. · 2ac7a566
      gcc/
      	* config/i386/sse.md
      	(define_expand "mul<mode>3<mask_name>"): Add masking.
      
      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>
      
      From-SVN: r216182
      Alexander Ivchenko committed
    • AVX-512. 64/n. Add rest of VI1-AVX2: vpack[us]wb. · d281ef42
      gcc/
      	* config/i386/sse.md
      	(define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
      	(define_insn "<sse2_avx2>_packuswb<mask_name>"): 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>
      
      From-SVN: r216181
      Alexander Ivchenko committed
    • AVX-512. 62/n. Add vpmaddubsw,vdbpsadbw insn patterns. · 5f64b496
      gcc/
      	* config/i386/sse.md
      	(define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
      	(define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
      	(define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
      	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>
      
      From-SVN: r216180
      Alexander Ivchenko committed
    • AVX-512. 61/n. Update FP logic insn patterns. · 26358fb6
      gcc/
      	* config/i386/sse.md
      	(define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
      	use VF_128_256 mode iterator and update assembler emit code.
      	(define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
      	(define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
      	Add masking, use VF_128_256 mode iterator.
      	(define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
      	(define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
      	Add masking, use VF_128_256 mode iterator and update assembler emit
      	code.
      	(define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
      	(define_mode_attr avx512flogicsuff): Delete.
      	(define_insn "avx512f_<logic><mode>"): Ditto.
      	(define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
      	MODE_TI.
      	(define_insn "<mask_codefor><code><mode>3<mask_name>"): 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>
      
      From-SVN: r216179
      Alexander Ivchenko committed
    • AVX-512. 60/n. Update 128bit ashrv insn pattern. · 06ba0585
      gcc/
      	* config/i386/sse.md
      	(define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
      	(define_expand "vashr<mode>3<mask_name>"): Add masking,
      	use VI12_128 mode iterator.
      	(define_expand "ashrv2di3<mask_name>"): New.
      
      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>
      
      From-SVN: r216178
      Alexander Ivchenko committed
    • AVX-512. 59/n. Add vptest[n]m, ucmp, cmpeq insn patterns. · 54967fb0
      gcc/
      	* config/i386/i386.c
      	(ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
      	CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
      	CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
      	CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
      	CODE_FOR_avx512vl_ucmpv4si3_mask.
      	* config/i386/sse.md
      	(define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
      	"<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
      	(define_insn
      	"<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
      	(define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
      	(define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
      	(define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
      	(define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
      	(define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): 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>
      
      From-SVN: r216177
      Alexander Ivchenko committed
    • AVX-512. 58/n. Add vpmul[u]dq insn patterns. · f1df7a1c
      gcc/
      	* config/i386/sse.md
      	(define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
      	(define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
      	(define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
      	(define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
      	(define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
      	(define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
      	(define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
      	(define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
      	(define_insn "avx512dq_mul<mode>3<mask_name>"): New.
      
      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>
      
      From-SVN: r216176
      Alexander Ivchenko committed
    • AVX-512. 57/n. Extend blend/cmp/brodcast insn patterns. · 51e14b05
      gcc/
      	* config/i386/sse.md
      	(define_insn "avx512f_blendm<mode>"): Delete.
      	(define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
      	(define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
      	(define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
      	V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
      	(define_insn
      	"avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
      	Remove.
      	(define_insn
      	"<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
      	New.
      	(define_insn
      	"<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
      	Ditto.
      	(define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
      	(define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
      	(define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
      	(define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
      	Delete.
      	(define_insn
      	"<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
      	New.
      	(define_insn
      	"<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
      	Ditto.
      	(define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
      	Delete.
      	(define_insn
      	"<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
      	New.
      	(define_insn
      	"<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
      	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>
      
      From-SVN: r216175
      Alexander Ivchenko committed
    • re PR tree-optimization/63512 (ICE: error: virtual use of statement not up-to-date) · b6fed550
      2014-10-14  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/63512
      	* tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
      	modified.
      
      	* g++.dg/torture/pr63512.C: New testcase.
      
      From-SVN: r216174
      Richard Biener committed
    • re PR target/63260 ([SH] fabs, fneg do not need fp-mode setting and do not use fpscr) · 340232b7
      gcc/
      	PR target/63260
      	* config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
      	abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
      	of FPSCR.
      	(negsf2_i): Rename to *negsf2_i.
      	(abssf2_i): Rename to *abssf2_i.
      	(negdf2_i): Rename to *negdf2_i.
      	(absdf2_i): Rename to *absdf2_i.
      
      gcc/testsuite/
      	PR target/63260
      	* gcc.target/sh/pr63260.c: New.
      
      From-SVN: r216173
      Oleg Endo committed
    • Daily bump. · f0a81c69
      From-SVN: r216172
      GCC Administrator committed
    • ira.c (struct equivalence): Change member "is_arg_equivalence" and "replace"… · 5ffa4e6a
      ira.c (struct equivalence): Change member "is_arg_equivalence" and "replace" into boolean bitfields...
      
      gcc/
              * ira.c (struct equivalence): Change member "is_arg_equivalence" and
              "replace" into boolean bitfields; turn member "loop_depth" into a short
              integer; add new member "no_equiv" and "reserved".
              (no_equiv): Set no_equiv of struct equivalence if register is marked
              as having no known equivalence.
              (update_equiv_regs): Check all definitions for a multiple-set
              register to make sure that the RHS have the same value.
      
      Co-Authored-By: Jeff Law <law@redhat.com>
      
      From-SVN: r216169
      Felix Yang committed
  2. 13 Oct, 2014 20 commits