This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/30652] SSE expansion is missing for isinf() and other fpclassify functions
- From: "ghazi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jun 2007 15:57:21 -0000
- Subject: [Bug target/30652] SSE expansion is missing for isinf() and other fpclassify functions
- References: <bug-30652-1649@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ghazi at gcc dot gnu dot org 2007-06-13 15:57 -------
(In reply to comment #2)
> The generic implementation, including for SSE, is
> isgreater (abs(f), FLT_MAX)
> For isfinite, use islessequal instead. For isnan, one can use
> isunordered(f, f)
> For isnormal, it'd be
> isgreaterequal(abs(f), FLT_MIN) & islessequal(abs(f), FLT_MAX)
> which is less likely to be friendly to inline.
I'd like to do this, but how does one generate FLT_MAX et al. from the
middle-end?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30652