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]
Other format: [Raw text]

Re: Allow folding of floats on logicals


On Mon, Feb 16, 2004 at 11:48:19PM +0100, Jan Hubicka wrote:
> ! 	    real_to_target (tmp, CONST_DOUBLE_REAL_VALUE (trueop),
> ! 			    GET_MODE (trueop));
> ! 	    for (i = 0; i < 4; i++)
> ! 	      tmp[i] = ~tmp[i];
> ! 	     real_from_target (&r, tmp, mode);
> ! 	     return CONST_DOUBLE_FROM_REAL_VALUE (r, mode);

Look at the surrounding code.  You can simplify this some.
Otherwise ok.


r~


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