[PATCH] D48526: [Power9] Add six __float128 builtins found in gcc
Stefan Pintilie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 23 17:49:34 PDT 2018
stefanp created this revision.
stefanp added reviewers: nemanjai, kbarton, hfinkel, sfertile, syzaara, lei.
The following 6 builtins are found in GCC:
__float128 __builtin_infq (void)
__float128 __builtin_huge_valq (void)
__float128 __builtin_nanq (void)
__float128 __builtin_nansq (void)
__float128 __builtin_fabsq (__float128)
__float128 __builtin_copysignq (__float128, __float128)
This patch adds them to clang as well.
They should do the exact same thing as the f128 version of the same builtin. (So, __float128 __builtin_nanq (void) should behave the same way as __float128 __builtin_nanf128 (void)).
The reason for adding these builtins is to support code that uses the initial GCC naming for them.
https://reviews.llvm.org/D48526
Files:
include/clang/Basic/Builtins.def
lib/AST/ExprConstant.cpp
lib/CodeGen/CGBuiltin.cpp
test/CodeGen/builtins-ppc-p9-f128.c
test/Sema/constant-builtins-2.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48526.152609.patch
Type: text/x-patch
Size: 7252 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180624/6abe89db/attachment.bin>
More information about the llvm-commits
mailing list