[PATCH] Add missing builtins to altivec.h for ABI compliance (vol. 2)

Nemanja Ivanovic nemanja.i.ibm at gmail.com
Wed Jul 1 10:42:16 PDT 2015


Hi wschmidt, hfinkel, echristo, kbarton, seurer,

The bulk of the second round of additions to altivec.h.
The following interfaces were added:
vector double vec_floor(vector double __a)
vector double vec_madd(vector double __a, vector double __b, vector double __c)
vector float vec_msub(vector float __a, vector float __b, vector float __c)
vector double vec_msub(vector double __a, vector double __b, vector double __c)
vector float vec_mul(vector float __a, vector float __b)
vector double vec_mul(vector double __a, vector double __b)
vector float vec_nmadd(vector float __a, vector float __b, vector float __c)
vector double vec_nmadd(vector double __a, vector double __b, vector double __c)
vector double vec_nmsub(vector double __a, vector double __b, vector double __c)
vector double vec_nor(vector double __a, vector double __b)
vector double vec_or(vector double __a, vector double __b)
vector float vec_rint(vector float __a)
vector double vec_rint(vector double __a)
vector float vec_nearbyint(vector float __a)
vector double vec_nearbyint(vector double __a)
vector float vec_sqrt(vector float __a)
vector double vec_sqrt(vector double __a)
vector double vec_rsqrte(vector double __a)
vector double vec_sel(vector double __a, vector double __b, vector unsigned long long __c)
vector double vec_sel(vector double __a, vector double __b, vector unsigned long long __c)
vector double vec_sub(vector double __a, vector double __b)
vector double vec_trunc(vector double __a)
vector double vec_xor(vector double __a, vector double __b)
vector double vec_xor(vector double __a, vector bool long long __b)
vector double vec_xor(vector bool long long __a, vector double __b)

New VSX paths for the following interfaces:
vector float vec_madd(vector float __a, vector float __b, vector float __c)
vector float vec_nmsub(vector float __a, vector float __b, vector float __c)
vector float vec_rsqrte(vector float __a)
vector float vec_trunc(vector float __a)
vector float vec_floor(vector float __a)

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10875

Files:
  include/clang/Basic/BuiltinsPPC.def
  lib/CodeGen/CGBuiltin.cpp
  lib/Headers/altivec.h
  test/CodeGen/builtins-ppc-vsx.c

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10875.28882.patch
Type: text/x-patch
Size: 26270 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150701/3b031e80/attachment.bin>


More information about the cfe-commits mailing list