Commit c0657872 by Richard Sandiford Committed by Richard Sandiford

combine.c (combine_simplify_rtx): Don't pass VOIDmode to…

combine.c (combine_simplify_rtx): Don't pass VOIDmode to simplify_unary_operation if the operand has a known mode.

	* combine.c (combine_simplify_rtx): Don't pass VOIDmode to
	simplify_unary_operation if the operand has a known mode.

From-SVN: r75709
parent d2288d5d
2004-01-12 Richard Sandiford <rsandifo@redhat.com>
* combine.c (combine_simplify_rtx): Don't pass VOIDmode to
simplify_unary_operation if the operand has a known mode.
2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
* gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
......
......@@ -3690,6 +3690,8 @@ combine_simplify_rtx (rtx x, enum machine_mode op0_mode, int last,
switch (GET_RTX_CLASS (code))
{
case '1':
if (op0_mode == VOIDmode)
op0_mode = GET_MODE (XEXP (x, 0));
temp = simplify_unary_operation (code, mode, XEXP (x, 0), op0_mode);
break;
case '<':
......
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