This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, GCC] PR middle-end/55299, fold bitnot through ASR and rotates
- From: Mikhail Maltsev <maltsevm at gmail dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 17 May 2016 16:59:57 +0300
- Subject: Re: [PATCH, GCC] PR middle-end/55299, fold bitnot through ASR and rotates
- Authentication-results: sourceware.org; auth=none
- References: <572F6B36 dot 8050804 at gmail dot com> <alpine dot DEB dot 2 dot 20 dot 1605082148450 dot 2068 at laptop-mg dot saclay dot inria dot fr> <5731E816 dot 9050006 at gmail dot com> <alpine dot DEB dot 2 dot 20 dot 1605110924430 dot 1902 at laptop-mg dot saclay dot inria dot fr> <5735C0A4 dot 50106 at gmail dot com> <alpine dot DEB dot 2 dot 20 dot 1605131506540 dot 16902 at laptop-mg dot saclay dot inria dot fr> <CAFiYyc1ofPTcqV+FT1F-eFtRzJEkcJSmgOW_c5HXtMhZVxvwKw at mail dot gmail dot com>
On 05/17/2016 04:39 PM, Richard Biener wrote:
>
> Are you sure narrowing conversions are valid for rotates?
>
> (char)short_var <<r 8 == (char)short_var but short_var << r8 is its upper byte.
>
Yes, but the transformation leaves conversions as-is. Only bit_not is removed.
--
Regards,
Mikhail Maltsev
- References:
- [PATCH, GCC] PR middle-end/55299, fold bitnot through ASR and rotates
- Re: [PATCH, GCC] PR middle-end/55299, fold bitnot through ASR and rotates
- Re: [PATCH, GCC] PR middle-end/55299, fold bitnot through ASR and rotates
- Re: [PATCH, GCC] PR middle-end/55299, fold bitnot through ASR and rotates
- Re: [PATCH, GCC] PR middle-end/55299, fold bitnot through ASR and rotates
- Re: [PATCH, GCC] PR middle-end/55299, fold bitnot through ASR and rotates
- Re: [PATCH, GCC] PR middle-end/55299, fold bitnot through ASR and rotates