Re: GCSE problem on a gcc testsuite

2010-10-17 Thread Eric Botcazou
> Well,then I am not quite sure about the usage of this testsuite.Most > testsuites seem to be used to test whether or not a kind of > optimization works,and according to your view,this testsuite seems to > be useless. The testcase only, not the testsuite. > So do you think it is proper if we

Re: GCSE problem on a gcc testsuite

2010-10-17 Thread johnc
Well,then I am not quite sure about the usage of this testsuite.Most testsuites seem to be used to test whether or not a kind of optimization works,and according to your view,this testsuite seems to be useless. So do you think it is proper if we remove this testsuite from the GCC testsuites?

Re: GCSE problem on a gcc testsuite

2010-10-13 Thread Eric Botcazou
>   But now I am facing with a new instruction which will put the result > in a single register,and thus GCC want to do GCSE on this > instruction.GCC will treat si1%si2 as a loop invariant.So si1%si2 was > moved out of the loop,just before the execution of function foo();as > si2 is equal 0,there

GCSE problem on a gcc testsuite

2010-10-12 Thread johnc
Hi all,   I am facing with a GCSE problem on this GCC testsuite(gcc/testsuite/gcc.c-torture/execute/pr38819.c),using GCC-4.4.0: extern void exit (int); extern void abort (void); volatile int a = 1; volatile int b = 0; volatile int x = 2; volatile signed int