<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Hal, <div><br></div><div>I think that the round intrinsic should support all of the popular rounding mode, and not only nearest integer. </div><div><br></div><div>Thanks,</div><div>Nadav</div><div><br><div><div>On Jul 7, 2013, at 9:04 PM, Hal Finkel <<a href="mailto:hfinkel@anl.gov">hfinkel@anl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Hello!<br><br>round() has been feeling a little left out; all of its friends (like rint() and nearbyint()) have their own ISD nodes, and round() doesn't. Recent PowerPC cores have an instruction for round(), and so I'd like to correct this injustice and add ISD::FROUND.<br><br>For the most part, this is extremely straightforward. I've added an intrinsic and matching ISD node just like those for nearbyint() and friends. The SelectionDAG pattern I've named frnd (because ISD::FP_ROUND has already claimed fround); obviously we can use a different name if someone has a better suggestion. Please review.<br><br>Thanks again,<br>Hal<br><br>--<br>Hal Finkel<br>Assistant Computational Scientist<br>Leadership Computing Facility<br>Argonne National Laboratory<br><span><isd_round.patch></span>_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a></div></blockquote></div><br></div></body></html>