[clang] Handle lrint/llrint builtins
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 May 2019 21:16:04 +0000 (21:16 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 May 2019 21:16:04 +0000 (21:16 +0000)
commit14689910737b8e63a0ef7caf407d13aa68bbd6f8
tree2f4c086044199b5542bdb8150112cf074676fb7f
parent34d8daae539dfdbb3133d18b61caddd57e29adfe
[clang] Handle lrint/llrint builtins

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

Reviewed By: craig.topper

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

llvm-svn: 361878
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGen/builtins.c
clang/test/CodeGen/math-builtins.c
clang/test/CodeGen/math-libcalls.c