simplify-rtx: Fix the last fix (PR78638)

I managed to get the last obvious fix wrong: mode is M1, GET_MODE (op)
is M2.


	* simplify-rtx.c (simplify_truncation): M2 is not mode, it is
	GET_MODE (op).  Fix this.

From-SVN: r243210
This commit is contained in:
Segher Boessenkool 2016-12-03 00:51:31 +01:00 committed by Segher Boessenkool
parent bf7f70ffb5
commit 5bd12bafb5
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
* simplify-rtx.c (simplify_truncation): M2 is not mode, it is
GET_MODE (op). Fix this.
2016-12-02 David Malcolm <dmalcolm@redhat.com>
PR bootstrap/78616

View File

@ -752,7 +752,7 @@ simplify_truncation (machine_mode mode, rtx op,
changing len. */
if ((GET_CODE (op) == ZERO_EXTRACT || GET_CODE (op) == SIGN_EXTRACT)
&& REG_P (XEXP (op, 0))
&& GET_MODE (XEXP (op, 0)) == mode
&& GET_MODE (XEXP (op, 0)) == GET_MODE (op)
&& CONST_INT_P (XEXP (op, 1))
&& CONST_INT_P (XEXP (op, 2)))
{