<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;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 24, 2016, at 12:15, Jan Vesely via Libclc-dev <<a href="mailto:libclc-dev@lists.llvm.org" class="">libclc-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">We are using builtins.<br class="">Some builtins (copysign, fmax, fmin, ...) are translated to lirbary calls.<br class="">Using -fno-builtin makes those calls tagged nobuiltin and starting with 273039,<br class="">they are no longer translated to llvm opcodes, resulting in failed function call;<br class="">"<unknown>:0:0: in function test_1_copysign_float void (float addrspace(1)*, float addrspace(1)*, float addrspace(1)*): unsupported call to function copysignf"<br class="">Fixes: r273039<br class=""><br class="">Signed-off-by: Jan Vesely <<a href="mailto:jan.vesely@rutgers.edu" class="">jan.vesely@rutgers.edu</a>><br class="">---<br class="">The alternative is to keep -fno-builtin and avoid using some __builtins.<br class=""><br class=""> configure.py | 1 -<br class=""> 1 file changed, 1 deletion(-)<br class=""><br class="">diff --git a/configure.py b/configure.py<br class="">index b96faee..d3a3977 100755<br class="">--- a/configure.py<br class="">+++ b/configure.py<br class="">@@ -181,7 +181,6 @@ for target in targets:<br class="">   for device in available_targets[target]['devices']:<br class="">     # The rule for building a .bc file for the specified architecture using clang.<br class="">     clang_bc_flags = "-target %s -I`dirname $in` %s " \<br class="">-                     "-fno-builtin " \<br class="">                      "-D__CLC_INTERNAL " \<br class="">                      "-emit-llvm" % (target, clang_cl_includes)<br class="">     if device['gpu'] != '':<br class="">-- <br class="">2.7.4<br class=""><br class="">_______________________________________________<br class="">Libclc-dev mailing list<br class=""><a href="mailto:Libclc-dev@lists.llvm.org" class="">Libclc-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/libclc-dev<br class=""></div></div></blockquote></div><br class=""><div class="">I think we should continue using it, but fix the builtins we expect to really be emitting intrinsics: <a href="http://reviews.llvm.org/D5896" class="">http://reviews.llvm.org/D5896</a></div><div class=""><br class=""></div><div class="">-Matt</div></body></html>