Commit e7adb6fb by Jan Hubicka Committed by Jan Hubicka

recog.c (extract_insn): Set operand_mode according to operand if match_operand is VOIDmode.

	* recog.c (extract_insn): Set operand_mode according to
	operand if match_operand is VOIDmode.

From-SVN: r35369
parent 22251f80
Mon Jul 31 10:36:38 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
operand if match_operand is VOIDmode.
Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
* recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
......
......@@ -2076,6 +2076,9 @@ extract_insn (insn)
{
recog_data.constraints[i] = insn_data[icode].operand[i].constraint;
recog_data.operand_mode[i] = insn_data[icode].operand[i].mode;
/* VOIDmode match_operands gets mode from their real operand. */
if (recog_data.operand_mode[i] == VOIDmode)
recog_data.operand_mode[i] = GET_MODE (recog_data.operand[i]);
}
}
for (i = 0; i < noperands; i++)
......
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