This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix combine's simplify_shift_const_1 (PR rtl-optimization/70222)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Segher Boessenkool <segher at kernel dot crashing dot org>
- Cc: Bernd Schmidt <bschmidt at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 15 Mar 2016 17:13:17 +0100
- Subject: Re: [PATCH] Fix combine's simplify_shift_const_1 (PR rtl-optimization/70222)
- Authentication-results: sourceware.org; auth=none
- References: <20160315111448 dot GU3017 at tucnak dot redhat dot com> <56E7FB52 dot 2010402 at redhat dot com> <20160315131833 dot GV3017 at tucnak dot redhat dot com> <20160315145043 dot GA16836 at gate dot crashing dot org>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Mar 15, 2016 at 09:50:44AM -0500, Segher Boessenkool wrote:
> On Tue, Mar 15, 2016 at 02:18:33PM +0100, Jakub Jelinek wrote:
> > So do you prefer this instead?
> >
> > 2016-03-15 Jakub Jelinek <jakub@redhat.com>
> >
> > PR rtl-optimization/70222
> > * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
> > optimization if mode is different from result_mode, queue up masking
> > of the result in outer_op. Formatting fix.
> >
> > * gcc.c-torture/execute/pr70222-1.c: New test.
> > * gcc.c-torture/execute/pr70222-2.c: New test.
>
> This one looks fine, too (if it works ;-) )
Passed bootstrap/regtest on x86_64-linux and i686-linux, and triggers solely
on the new testcases, nothing else. Committed now.
Jakub