<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 09/25/2018 12:21 PM, Kevin Neal via cfe-dev wrote:<br>
</div>
<blockquote type="cite" cite="mid:CY1PR05MB2745EB05F6ED4634E89FBF8783160@CY1PR05MB2745.namprd05.prod.outlook.com">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style><font size="2" face="Courier New"><span style="font-size:11pt;">
<div>I’m working on support for clang emitting the new experimental builtins when #pragma STDC FENV_ACCESS ON is enabled. I mostly care about C code currently.</div>
<div><font face="Calibri"> </font></div>
<div>I notice that there are calls to Builder.CreateFAdd() in some of the Neon specific builtins in CGBuiltin.cpp. Does that pragma apply to host-specific, CPU-specific, OS-specific, whatever-specific cases? What’s the rule?
</div>
</span></font></blockquote>
<br>
I see no reason why, in theory, FENV_ACCESS would not apply to these builtins. The IR, in this case, is trying to model what actually happens on the processor, and presumably the execution of these builtins is also affected by the FP-environment that the user
 is modifying. If there are builtins which are not affected, because of the way that the underlying implementation functions, then that's a different story.<br>
<br>
 -Hal<br>
<br>
<blockquote type="cite" cite="mid:CY1PR05MB2745EB05F6ED4634E89FBF8783160@CY1PR05MB2745.namprd05.prod.outlook.com">
<font size="2" face="Courier New"><span style="font-size:11pt;">
<div><font face="Calibri"> </font></div>
<div><font size="2" face="Calibri"><span style="font-size:10pt;">--<font size="2"><span style="font-size:11pt;">
<br>
</span></font><font face="Courier New">Kevin P. Neal<br>
</font><font face="Courier New">SAS/C and SAS/C++ Compiler</font></span></font></div>
<div><font size="2"><span style="font-size:10pt;">Host Research and Development</span></font></div>
<div><font size="2"><span style="font-size:10pt;">SAS Institute, Inc.</span></font></div>
<div><font face="Calibri"> </font></div>
<div><font face="Calibri"> </font></div>
<div><font face="Calibri"> </font></div>
<div><font face="Calibri"> </font></div>
</span></font><br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory</pre>
</body>
</html>