[RS6000] rs6000_rtx_costs for PLUS/MINUS constant
These functions do behave a little differently for SImode, so the mode should be passed. * config/rs6000/rs6000.c (rs6000_rtx_costs): Pass mode to reg_or_add_cint_operand and reg_or_sub_cint_operand.
This commit is contained in:
parent
0075cea0fd
commit
34cd848904
@ -21176,9 +21176,9 @@ rs6000_rtx_costs (rtx x, machine_mode mode, int outer_code,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if ((outer_code == PLUS
|
else if ((outer_code == PLUS
|
||||||
&& reg_or_add_cint_operand (x, VOIDmode))
|
&& reg_or_add_cint_operand (x, mode))
|
||||||
|| (outer_code == MINUS
|
|| (outer_code == MINUS
|
||||||
&& reg_or_sub_cint_operand (x, VOIDmode))
|
&& reg_or_sub_cint_operand (x, mode))
|
||||||
|| ((outer_code == SET
|
|| ((outer_code == SET
|
||||||
|| outer_code == IOR
|
|| outer_code == IOR
|
||||||
|| outer_code == XOR)
|
|| outer_code == XOR)
|
||||||
|
Loading…
Reference in New Issue
Block a user