Do we have the testsuite infrastructure to easily do this?
Daniel Berlin
dberlin@dberlin.org
Tue Sep 14 13:52:00 GMT 2004
On Sep 14, 2004, at 8:50 AM, Dave Korn wrote:
>> -----Original Message-----
>> From: gcc-owner On Behalf Of Daniel Berlin
>> Sent: 13 September 2004 20:29
>
>> The only real way to be sure everything worked okay is to do the
>> following:
>>
>> Make the testcase print out the values of the induction variables for
>> the iteration it is executing.
>>
>> Compile and run without -ftree-loop-linear, redirect output to file.
>>
>> Compile and run with -ftree-loop-linear, redirect output to file.
>>
>> sort -n both files, diff.
>>
>> There should be no differences.
>
> Sorry I can't comment as to the main point of the question, but as a
> side point,
> shouldn't there be no difference between the files even if you _don't_
> sort them?
Theoretically, yes (since we can't transform them if it would cause an
observable difference).
However, this is the easiest way to do it, so i was going to add a flag
to let it ignore this restriction.
More information about the Gcc
mailing list