]> granicus.if.org Git - clang/commit
[clang] Handle lround/llround builtins
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 16 May 2019 13:43:25 +0000 (13:43 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 16 May 2019 13:43:25 +0000 (13:43 +0000)
commit5fc5440be86c714f9afcec76a65d69ab5b659552
tree25a9ecefc2d126d829c1955178660c9edd1c2c9c
parentb6c6b38192cc34367f86bb3ff150157368b19dfe
[clang] Handle lround/llround builtins

As for other floating-point rounding builtins that can be optimized
when build with -fno-math-errno, this patch adds support for lround
and llround.  It currently only optimize for AArch64 backend.

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D61392

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360896 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp
test/CodeGen/builtins.c
test/CodeGen/math-builtins.c
test/CodeGen/math-libcalls.c