<div dir="ltr"><div><div>great, thank you!<br><br></div>Still, I have tried fast option:<span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline" id="gmail-docs-internal-guid-32e4a391-32eb-56f1-789e-2e8abde3a7ea"><br>clang -S -O3 -mllvm -ffast-math -emit-llvm sqrt.c -o sqrt.s<br><br></span></div><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline" id="gmail-docs-internal-guid-32e4a391-32eb-56f1-789e-2e8abde3a7ea">and also with specifying this option in opt (not in clang) - it stays the same sqrt.</span><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline" id="gmail-docs-internal-guid-32e4a391-32eb-56f1-789e-2e8abde3a7ea"><br><br>#include <stdlib.h><br><br>#include <stdio.h><br>int main() {<br><br> int a;<br> scanf("%d", &a);<br> double b = sqrt(a);<br> int c = (b > 10) ? 1 : 0;<br> return c;<br>}<br><br></span></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-11 20:33 GMT+02:00 Friedman, Eli <span dir="ltr"><<a href="mailto:efriedma@codeaurora.org" target="_blank">efriedma@codeaurora.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><span class="">
<div class="m_-321982690480589062moz-cite-prefix">On 7/11/2017 11:19 AM, Anastasiya
Ruzhanskaya wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">And are such intrinsics, as memset, memcpy, memmove
replaced by standard library calls? This is said in sources,
that it looks for such functions in global symbol table.<br>
</div>
<div class="gmail_extra"><br>
</div>
</blockquote>
<br></span>
The backend will sometimes generate a call to the C library memset,
memcpy, or memmove to lower a call to the LLVM intrinsics with the
same name. Depending on the target/optimization flags/length of the
operation, in some cases it will generate inline code, or generate a
call to a function with a different name.<span class=""><br>
<p>-Eli<br>
</p>
<pre class="m_-321982690480589062moz-signature" cols="72">--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project</pre>
</span></div>
</blockquote></div><br></div>