hi, james: thank you for your reply. it seems i should use the right optimization option. the code you provided may generate 'select' instruction -- View this message in context: http://llvm.1065342.n5.nabble.com/llvm-select-instruction-tp56719p56725.html Sent from the LLVM - Dev mailing list archive at Nabble.com.