Commit ed6ba1a5 by Roman Zippel Committed by Jan Hubicka

m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead of doing the change by hand.

	* m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
	of doing the change by hand.

Co-Authored-By: Jan Hubicka <jh@suse.cz>

From-SVN: r44212
parent 38f4324c
Fri Jul 20 22:14:49 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
Jan Hubicka <jh@suse.cz>
* m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
of doing the change by hand.
Fri Jul 20 21:59:42 CEST 2001 Jan Hubicka <jh@suse.cz>
* rtlanal.c (set_noop_p): Return true for noop jumps.
......
......@@ -1551,11 +1551,7 @@
"
{
operands[1] = make_safe_from (operands[1], operands[0]);
if (GET_CODE (operands[0]) == SUBREG)
operands[2] = gen_rtx_SUBREG (HImode, SUBREG_REG (operands[0]),
SUBREG_BYTE (operands[0]));
else
operands[2] = gen_rtx_SUBREG (HImode, operands[0], 0);
operands[2] = gen_lowpart (HImode, operands[0]);
}")
(define_expand "zero_extendqihi2"
......@@ -1567,11 +1563,7 @@
"
{
operands[1] = make_safe_from (operands[1], operands[0]);
if (GET_CODE (operands[0]) == SUBREG)
operands[2] = gen_rtx_SUBREG (QImode, SUBREG_REG (operands[0]),
SUBREG_BYTE (operands[0]));
else
operands[2] = gen_rtx_SUBREG (QImode, operands[0], 0);
operands[2] = gen_lowpart (QImode, operands[0]);
}")
(define_expand "zero_extendqisi2"
......@@ -1583,11 +1575,7 @@
"
{
operands[1] = make_safe_from (operands[1], operands[0]);
if (GET_CODE (operands[0]) == SUBREG)
operands[2] = gen_rtx_SUBREG (QImode, SUBREG_REG (operands[0]),
SUBREG_BYTE (operands[0]));
else
operands[2] = gen_rtx_SUBREG (QImode, operands[0], 0);
operands[2] = gen_lowpart (QImode, operands[0]);
}")
;; Patterns to recognize zero-extend insns produced by the combiner.
......
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