<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 13, 2020, at 09:31, 林政宗 via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="line-height: 1.7; font-size: 14px; font-family: Arial;" class=""><div style="margin:0;" class="">Hi, there</div><div style="margin:0;" class=""><br class=""></div><div style="margin:0;" class="">I am writing an new backend. And I don't have vsge(vector set when larger than or equal to) instruction in the instruction set.</div><div style="margin:0;" class="">How could I implement the instruction? I have vslt(vector set when less than) instruction, vseq(vector set when equal to), vneg(vector negate), vand(vector and), vor(vector or) and vxor(vector xor) in the instruction set.</div><div style="margin:0;" class="">Should I consider the situation when one of the operand of vsge is nan(not a number)?</div><div style="margin:0;" class="">Where should I implement the vsge operation? Should it be implemented in the SelectionDAG lowering step or the pseudo instruction expansion step?</div></div></div></blockquote><br class=""></div><div>Look at setCondCodeAction. Most of the expansions for different available compare types should be implemented already</div><div><br class=""></div><div>-Matt</div><br class=""></body></html>