Commit 91f9a498 by Jan Hubicka Committed by Jan Hubicka

i386.md (addsi to lea splitter, [...]): Fix bugs in my last checkin.

	* i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
	in my last checkin.

From-SVN: r35370
parent e7adb6fb
Mon Jul 31 12:27:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
* i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
in my last checkin.
Mon Jul 31 10:41:01 MET DST 2000 Jan Hubicka <jh@suse.cz> Mon Jul 31 10:41:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
* recog.c (extract_insn): Set operand_mode according to * recog.c (extract_insn): Set operand_mode according to
......
...@@ -3902,7 +3902,6 @@ ...@@ -3902,7 +3902,6 @@
" "
{ {
rtx pat; rtx pat;
operands[0] = gen_lowpart (SImode, operands[0]);
/* In -fPIC mode the constructs like (const (unspec [symbol_ref])) /* In -fPIC mode the constructs like (const (unspec [symbol_ref]))
may confuse gen_lowpart. */ may confuse gen_lowpart. */
if (GET_MODE (operands[0]) != Pmode) if (GET_MODE (operands[0]) != Pmode)
...@@ -3910,6 +3909,7 @@ ...@@ -3910,6 +3909,7 @@
operands[1] = gen_lowpart (Pmode, operands[1]); operands[1] = gen_lowpart (Pmode, operands[1]);
operands[2] = gen_lowpart (Pmode, operands[2]); operands[2] = gen_lowpart (Pmode, operands[2]);
} }
operands[0] = gen_lowpart (SImode, operands[0]);
pat = gen_rtx_PLUS (Pmode, operands[1], operands[2]); pat = gen_rtx_PLUS (Pmode, operands[1], operands[2]);
if (Pmode != SImode) if (Pmode != SImode)
pat = gen_rtx_SUBREG (SImode, pat, 0); pat = gen_rtx_SUBREG (SImode, pat, 0);
...@@ -6691,7 +6691,7 @@ ...@@ -6691,7 +6691,7 @@
(define_insn "*ashlqi3_1_lea" (define_insn "*ashlqi3_1_lea"
[(set (match_operand:QI 0 "nonimmediate_operand" "=qm,r,r") [(set (match_operand:QI 0 "nonimmediate_operand" "=qm,r,r")
(ashift:QI (match_operand:QI 1 "nonimmediate_operand" "0,0,r") (ashift:QI (match_operand:QI 1 "nonimmediate_operand" "0,0,r")
(match_operand:QI 2 "nonmemory_operand" "cI,cI,r"))) (match_operand:QI 2 "nonmemory_operand" "cI,cI,M")))
(clobber (reg:CC 17))] (clobber (reg:CC 17))]
"!TARGET_PARTIAL_REG_STALL "!TARGET_PARTIAL_REG_STALL
&& ix86_binary_operator_ok (ASHIFT, QImode, operands)" && ix86_binary_operator_ok (ASHIFT, QImode, operands)"
......
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