> This is what Fortran standard says:
>
> The iteration count is established and is the value of the expression
> (m2-m1+m3)/m3 unless that value is negative,
> in which case the iteration count is 0.
>
> My reading of this is that the do statement is undefined when
On Fri, Jul 08, 2016 at 11:03:35AM +0200, Jan Hubicka wrote:
> > On Fri, Jul 08, 2016 at 10:33:45AM +0200, Martin Liška wrote:
> > > On 07/07/2016 04:40 PM, Jan Hubicka wrote:
> > > >>
> > > >> Why is the behavior only undefined for step 1 if the last iteration IV
> > > >> increment overflows?
> >
> On Fri, Jul 08, 2016 at 10:33:45AM +0200, Martin Liška wrote:
> > On 07/07/2016 04:40 PM, Jan Hubicka wrote:
> > >>
> > >> Why is the behavior only undefined for step 1 if the last iteration IV
> > >> increment overflows?
> > >> Doesn't this apply to all step values?
> > >
> > > This is what For
On Fri, Jul 08, 2016 at 10:33:45AM +0200, Martin Liška wrote:
> On 07/07/2016 04:40 PM, Jan Hubicka wrote:
> >>
> >> Why is the behavior only undefined for step 1 if the last iteration IV
> >> increment overflows?
> >> Doesn't this apply to all step values?
> >
> > This is what Fortran standard sa
On 07/07/2016 04:40 PM, Jan Hubicka wrote:
>>
>> Why is the behavior only undefined for step 1 if the last iteration IV
>> increment overflows?
>> Doesn't this apply to all step values?
>
> This is what Fortran standard says:
>
> The iteration count is established and is the value of the expres
>
> Why is the behavior only undefined for step 1 if the last iteration IV
> increment overflows?
> Doesn't this apply to all step values?
This is what Fortran standard says:
The iteration count is established and is the value of the expression
(m2-m1+m3)/m3 unless that value is negative,
i
On Thu, Jul 7, 2016 at 11:32 AM, marxin wrote:
> Hello.
>
> As discussed in [1], I would like to change code emission from:
>
> D.3428 = (*array)[0];
> D.3429 = (*array)[1];
> i = D.3428;
> if (i <= D.3429)
> {
> while (1)
> {
> {
>
Hello.
As discussed in [1], I would like to change code emission from:
D.3428 = (*array)[0];
D.3429 = (*array)[1];
i = D.3428;
if (i <= D.3429)
{
while (1)
{
{
logical(kind=4) D.3432;
(*block)[(integer(kind=8)) i + -