ppc: fsel, min, max
Aldy Hernandez
aldyh@remus.sfbay.redhat.com
Sat Jun 8 02:47:00 GMT 2002
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
More information about the Gcc
mailing list