This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A new patch for floating point conditional mov on PPo


> 
> Another output_int_test_compare_fcmov issue is that it clobbers cc0.
> 
> Consider:
> 
>   int a;
>   int b;
>   double d;
>   double e;
>   int g;
>   int h;
> 
>   if (a < b)
>     d = f;
> 
>   if (a < b)
>     g = h;
> 

So? The normal test/compare patterns also clobber cc0. That is the
output.

-- 
H.J. Lu (hjl@gnu.org)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]