re PR target/65105 ([i386] XMM registers are not used for 64bit computations on 32bit...
authorIlya Enkovich <enkovich.gnu@gmail.com>
Tue, 29 Sep 2015 09:32:40 +0000 (09:32 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Tue, 29 Sep 2015 09:32:40 +0000 (09:32 +0000)
commit006ba5047cea15ce6f29b0847009ae901b874d50
treee4330bab14416db15ce0d200ccaf8f41519c10d2
parent2943f6f71601fa523f777d974f889efe8cf9b66b
re PR target/65105 ([i386] XMM registers are not used for 64bit computations on 32bit target)

gcc/

PR target/65105
* config/i386/i386.c: Include dbgcnt.h.
(has_non_address_hard_reg): New.
(convertible_comparison_p): New.
(scalar_to_vector_candidate_p): New.
(remove_non_convertible_regs): New.
(scalar_chain): New.
(scalar_chain::scalar_chain): New.
(scalar_chain::~scalar_chain): New.
(scalar_chain::add_to_queue): New.
(scalar_chain::mark_dual_mode_def): New.
(scalar_chain::analyze_register_chain): New.
(scalar_chain::add_insn): New.
(scalar_chain::build): New.
(scalar_chain::compute_convert_gain): New.
(scalar_chain::replace_with_subreg): New.
(scalar_chain::replace_with_subreg_in_insn): New.
(scalar_chain::emit_conversion_insns): New.
(scalar_chain::make_vector_copies): New.
(scalar_chain::convert_reg): New.
(scalar_chain::convert_op): New.
(scalar_chain::convert_insn): New.
(scalar_chain::convert): New.
(convert_scalars_to_vector): New.
(pass_data_stv): New.
(pass_stv): New.
(make_pass_stv): New.
(ix86_option_override): Created and register stv pass.
(flag_opts): Add -mstv.
(ix86_option_override_internal): Likewise.
* config/i386/i386.md (SWIM1248x): New.
(*movdi_internal): Add xmm to mem alternative for TARGET_STV.
(and<mode>3): Use SWIM1248x iterator instead of SWIM.
(*anddi3_doubleword): New.
(*zext<mode>_doubleword): New.
(*zextsi_doubleword): New.
(<code><mode>3): Use SWIM1248x iterator instead of SWIM.
(*<code>di3_doubleword): New.
* config/i386/i386.opt (mstv): New.
* dbgcnt.def (stv_conversion): New.

gcc/testsuite/

PR target/65105
* gcc.target/i386/pr65105-1.c: New.
* gcc.target/i386/pr65105-2.c: New.
* gcc.target/i386/pr65105-3.c: New.
* gcc.target/i386/pr65105-4.C: New.
* gcc.dg/lower-subreg-1.c: Add -mno-stv options for ia32.

From-SVN: r228231
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.md
gcc/config/i386/i386.opt
gcc/dbgcnt.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lower-subreg-1.c
gcc/testsuite/gcc.target/i386/pr65105-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr65105-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr65105-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr65105-4.C [new file with mode: 0644]