[LLVMdev] Motivation for 'select' instruction

Vladimir Prus ghost at cs.msu.su
Thu Apr 22 04:20:02 PDT 2004


Hello,
I'm wondering what was the original motivaton for the 'select' instruction. 
Was it for convenience, or for some deep reason. I'm asking because it's 
causing me some problems (see below) and I'd like to know I understand the 
situation before working those problems around.

I have the following function:

    int logsch(int ih,int nbh)
    {
         if(nbh < 0) { nbh = 0; ih = 10; }
         if(nbh > 22528) { nbh = 22528; ih = 7; }
         return(nbh + ih);
    }



More information about the llvm-dev mailing list