Re: [PATCH] PR tree-optimization/31178 - Add rshift side effect.

2022-05-18 Thread Richard Biener via Gcc-patches
On Wed, May 18, 2022 at 3:16 PM Andrew MacLeod wrote: > > On 5/18/22 02:41, Richard Biener wrote: > > On Tue, May 17, 2022 at 8:41 PM Andrew MacLeod via Gcc-patches > > wrote: > >> This patch implements side effects of the second operand of a shift > >> operation. > >> > >> given A >> B or A << B

Re: [PATCH] PR tree-optimization/31178 - Add rshift side effect.

2022-05-18 Thread Andrew MacLeod via Gcc-patches
On 5/18/22 02:41, Richard Biener wrote: On Tue, May 17, 2022 at 8:41 PM Andrew MacLeod via Gcc-patches wrote: This patch implements side effects of the second operand of a shift operation. given A >> B or A << B, the range of B is restricted to [0, PRECISION_A). Fortran is currently more perm

Re: [PATCH] PR tree-optimization/31178 - Add rshift side effect.

2022-05-17 Thread Richard Biener via Gcc-patches
On Tue, May 17, 2022 at 8:41 PM Andrew MacLeod via Gcc-patches wrote: > > This patch implements side effects of the second operand of a shift > operation. > > given A >> B or A << B, the range of B is restricted to [0, PRECISION_A). > > Fortran is currently more permissive than this, allowing the

[PATCH] PR tree-optimization/31178 - Add rshift side effect.

2022-05-17 Thread Andrew MacLeod via Gcc-patches
This patch implements side effects of the second operand of a shift operation. given A >> B or A << B, the range of B is restricted to [0, PRECISION_A). Fortran is currently more permissive than this, allowing the range to be [0, PRECISION_A], so this si the value we currently default to in th