simplify-rtx: Handle truncate of extract
authorSegher Boessenkool <segher@kernel.crashing.org>
Tue, 29 Nov 2016 01:48:30 +0000 (02:48 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Tue, 29 Nov 2016 01:48:30 +0000 (02:48 +0100)
commit48cf0e51e9cd4a78488dc216ed6f190df4c5b481
tree2c9d73fb0ca8669cbec06f9357fe5860c278ac14
parentdeb2bb610eae556f5337458b1ac14fdf95a4e070
simplify-rtx: Handle truncate of extract

simplify_truncation changes the truncation of many operations into
the operation on the truncation.  This patch makes this code also
handle extracts.

* simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
and sign_extract.

From-SVN: r242946
gcc/ChangeLog
gcc/simplify-rtx.c