This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][GCC] Simplification of 1U << (31 - x)
- From: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- To: Sudi Das <Sudi dot Das at arm dot com>, Richard Biener <richard dot guenther at gmail dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, nd <nd at arm dot com>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>, "James Greenhalgh" <James dot Greenhalgh at arm dot com>
- Date: Tue, 7 Nov 2017 12:28:08 +0000
- Subject: Re: [PATCH][GCC] Simplification of 1U << (31 - x)
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wilco dot Dijkstra at arm dot com;
- Nodisclaimer: True
- References: <AM5PR0802MB2610B3E04DF2484B04208CEC83020@AM5PR0802MB2610.eurprd08.prod.outlook.com> <20170413112151.GD1809@tucnak> <AM5PR0802MB2610B75CC3BDBA5C021B3DA083020@AM5PR0802MB2610.eurprd08.prod.outlook.com> <20170413114125.GE1809@tucnak> <CAFiYyc1Jk2hpuw1xnGD98SNQzzQHTzaoxFhq5C0ZeJVvZ2hODw@mail.gmail.com> <AM5PR0802MB2610D2CFF2BC0E6DF5E9093683020@AM5PR0802MB2610.eurprd08.prod.outlook.com> <VI1PR08MB265576266CC24A0553CCB94898B30@VI1PR08MB2655.eurprd08.prod.outlook.com> <CAFiYyc0C79=vcjFN7e=uZZVHjORMoOyUpyo3rYd_H9XTPHoG6w@mail.gmail.com> <DB5PR08MB10484FE2601E338FC2E68208987B0@DB5PR08MB1048.eurprd08.prod.outlook.com>,<CAFiYyc1EHMUnfuE90CSa9HNXERwxu3MXQGLOC8X4ZTuL1EQ+cg@mail.gmail.com>,<DB6PR0801MB205317EB777F23956EFC57EC83740@DB6PR0801MB2053.eurprd08.prod.outlook.com>,<DB5PR08MB1048A3EF927B541E6625944A98750@DB5PR08MB1048.eurprd08.prod.outlook.com>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Sudi Das wrote:
> Thanks, I have made the changes to the patch.
> Also can someone please apply it for me. I do not have commit access.
>
> 2017-10-10 Sudakshina Das <sudi.das@arm.com>
>
> PR middle-end/80131
> * match.pd: Simplify 1 << (C - x) where C = precision (x) - 1.
>
> 2017-10-10 Sudakshina Das <sudi.das@arm.com>
>
> PR middle-end/80131
> * testsuite/gcc.dg/pr80131-1.c: New Test.
>
>
> With regards to the existing missed optimizations needed to the x86 RTL expansion,
> I think the discussions can take place on the bug report that I created and maybe someone will pick it up.
I've committed this as r254496.
Wilco