[Power9] Add __float128 builtins for Round To Odd
authorStefan Pintilie <stefanp@ca.ibm.com>
Mon, 9 Jul 2018 18:50:06 +0000 (18:50 +0000)
committerStefan Pintilie <stefanp@ca.ibm.com>
Mon, 9 Jul 2018 18:50:06 +0000 (18:50 +0000)
commit83a5fe146e0728a7e61c6f17b06a3a963c5b7e00
tree59631e51758ef0a1c04d1a9768a856358b5e8004
parentfa762cc19bea654a7114f2ae83f9dd8324eac64f
[Power9] Add __float128 builtins for Round To Odd

GCC has builtins for these round to odd instructions:

__float128 __builtin_sqrtf128_round_to_odd (__float128)
__float128 __builtin_{add,sub,mul,div}f128_round_to_odd (__float128, __float128)
__float128 __builtin_fmaf128_round_to_odd (__float128, __float128, __float128)

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

llvm-svn: 336578
llvm/include/llvm/IR/Intrinsics.h
llvm/include/llvm/IR/IntrinsicsPowerPC.td
llvm/lib/IR/Function.cpp
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/builtins-ppc-p9-f128.ll [new file with mode: 0644]
llvm/utils/TableGen/IntrinsicEmitter.cpp