Commit 591702de by Jan Hubicka Committed by Jan Hubicka

i386.c (ix86_expand_move): Never add clobbers to move patterns.

	* i386.c (ix86_expand_move): Never add clobbers to move patterns.
	* i386.md (movsi_xor): New.
	(movsi_or): New.
	(movsi_1, movhi_1, movqi_1): Remove.
	(movsi_2): Rename to movsi_1.
	(movhi_2): Rename to movhi_1.
	(movqi_2): Rename to movqi_1.
	(movdi_1): Remove; remove splitter.
	(movdi_2): Rename to movdi_1.
	(divmodsi4 splitter): Do not emit clobbers for move patterns.
	(long move peep2): Do not create QI or HI mode mov0s
	(mov -1,reg -> or peep2s): Enable again, rewrite to single peephole.

From-SVN: r30741
parent 8f7661f2
Tue Nov 30 15:20:52 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
* i386.c (ix86_expand_move): Never add clobbers to move patterns.
* i386.md (movsi_xor): New.
(movsi_or): New.
(movsi_1, movhi_1, movqi_1): Remove.
(movsi_2): Rename to movsi_1.
(movhi_2): Rename to movhi_1.
(movqi_2): Rename to movqi_1.
(movdi_1): Remove; remove splitter.
(movdi_2): Rename to movdi_1.
(divmodsi4 splitter): Do not emit clobbers for move patterns.
(long move peep2): Do not create QI or HI mode mov0s
(mov -1,reg -> or peep2s): Enable again, rewrite to single peephole.
* i386.md (zero_extend?i?i2): Rewrite to expanders; new patterns,
rewrite splitters.
......
/* C code produced by gperf version 2.7.1 (19981006 egcs) */
/* C code produced by gperf version 2.7 */
/* Command-line: gperf -L C -F , 0, 0 -p -j1 -i 1 -g -o -t -G -N is_reserved_word -k1,3,$ ./c-parse.gperf */
/* Command-line: gperf -L C -F ', 0, 0' -p -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ c-parse.gperf */
struct resword { const char *name; short token; enum rid rid; };
......
......@@ -3614,7 +3614,6 @@ ix86_expand_move (mode, operands)
rtx operands[];
{
int strict = (reload_in_progress || reload_completed);
int want_clobber = 0;
rtx insn;
if (flag_pic && mode == Pmode && symbolic_operand (operands[1], Pmode))
......@@ -3653,24 +3652,9 @@ ix86_expand_move (mode, operands)
&& ! standard_80387_constant_p (operands[1]))
operands[1] = validize_mem (force_const_mem (mode, operands[1]));
}
else
{
/* Try to guess when a cc clobber on the move might be fruitful. */
if (!strict
&& GET_CODE (operands[0]) == REG
&& operands[1] == const0_rtx
&& !flag_peephole2)
want_clobber = 1;
}
}
insn = gen_rtx_SET (VOIDmode, operands[0], operands[1]);
if (want_clobber)
{
rtx clob;
clob = gen_rtx_CLOBBER (VOIDmode, gen_rtx_REG (CCmode, FLAGS_REG));
insn = gen_rtx_PARALLEL (VOIDmode, gen_rtvec (2, insn, clob));
}
emit_insn (insn);
}
......
......@@ -1337,7 +1337,7 @@ else
fi
# Find some useful tools
for ac_prog in mawk gawk nawk awk
for ac_prog in gawk mawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment