This is the mail archive of the gcc@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]

ppc: fsel, min, max


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


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