This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
ppc: fsel, min, max
- From: Aldy Hernandez <aldyh at remus dot sfbay dot redhat dot com>
- To: dje at watson dot ibm dot com, gcc at gcc dot gnu dot org
- Date: Sat, 8 Jun 2002 02:39:40 -0700
- Subject: ppc: fsel, min, max
- Reply-to: aldyh at redhat dot com
hi guys!
how in the world can i trigger generation of fsel in the rs6000 port.
i've been doing things like:
float a,b,c,d;
a = b == 0.0F ? c : d;
a = b ? c : d;
and a myraid of other things, to no avail.
i even built all the libraries for a cross build, and not once was
rs6000_emit_cmove called. so unless, i'm missing something obvious,
i don't see how movsfcc, maxsf3, minsf3, etc are ever used.
from what i see, rs6000_generate_compare() may be sabotaging things for
us and generating patterns, that combin/simplify_if_then_else don't
match.
(and yes, i have the MASK_PPC_GFXOPT bits on)
does someone have a snippet of code that can trigger this? is it even
working?
aldy