Commit 38c89763 by Alan Modra Committed by Alan Modra

rs6000.c (toc_relative_expr_p): Use add_cint_operand.

	* config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.

From-SVN: r202515
parent 1543c0ac
2013-09-12 Alan Modra <amodra@gmail.com>
* config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
2013-09-11 DJ Delorie <dj@redhat.com>
Nick Clifton <nickc@redhat.com>
......
......@@ -5926,7 +5926,7 @@ toc_relative_expr_p (const_rtx op, bool strict)
tocrel_base = op;
tocrel_offset = const0_rtx;
if (GET_CODE (op) == PLUS && CONST_INT_P (XEXP (op, 1)))
if (GET_CODE (op) == PLUS && add_cint_operand (XEXP (op, 1), GET_MODE (op)))
{
tocrel_base = XEXP (op, 0);
tocrel_offset = XEXP (op, 1);
......
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