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: [PATCH] Document a bunch of expression tree codes


On Tue, May 25, 2004 at 09:03:23PM -0600, Roger Sayle wrote:
> 	NOT_EXPR (UNORDERED_EXPR (x, y)) => ORDERED_EXPR (x, y)
> 	NOT_EXPR (ORDERED_EXPR (x, y)) => UNORDERED_EXPR (x, y)

Yes, we already do this at the rtl level.

> 	UNORDERED (x, x) => isnan (x)
> 	ORDERED (x, x) => NOT_EXPR (isnan (x))

Definitely the other way around.

> And if -fno-trapping-math,
> 
> 	NOT_EXPR (UNLT_EXPR (x, y)) => GE_EXPR (x, y)

Also done at rtl level.

> And if -fno-trapping-math and HONOR_NANS (mode),
> 
> 	NOT_EXPR (GE_EXPR (x, y)) => UNLT_EXPR (x, y)

Sure.


r~


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