Commit 5ac11cfb authored by ebotcazou's avatar ebotcazou
Browse files

PR bootstrap/48168

	* config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171197 138bc75d-0d04-0410-961f-82ee72b054a4
parent 3693f86f
2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
PR bootstrap/48168
* config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
2011-03-20 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/48156
......
......@@ -3661,6 +3661,18 @@ sparc_delegitimize_address (rtx x)
gcc_assert (GET_CODE (x) == SYMBOL_REF);
}
/* This is generated by mov{si,di}_pic_label_ref in PIC mode. */
if (GET_CODE (x) == MINUS
&& REG_P (XEXP (x, 0))
&& REGNO (XEXP (x, 0)) == PIC_OFFSET_TABLE_REGNUM
&& GET_CODE (XEXP (x, 1)) == LO_SUM
&& GET_CODE (XEXP (XEXP (x, 1), 1)) == UNSPEC
&& XINT (XEXP (XEXP (x, 1), 1), 1) == UNSPEC_MOVE_PIC_LABEL)
{
x = XVECEXP (XEXP (XEXP (x, 1), 1), 0, 0);
gcc_assert (GET_CODE (x) == LABEL_REF);
}
return x;
}
......
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