[PATCH] D140489: Add builtin_elementwise_log

Xiang Li via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 11 10:49:36 PST 2023


python3kgae added inline comments.


================
Comment at: clang/docs/LanguageExtensions.rst:638
  T __builtin_elementwise_floor(T x)          return the largest integral value less than or equal to x        floating point types
+ T __builtin_elementwise_log(T x)            return the natural logarithm of x                                floating point types
  T __builtin_elementwise_roundeven(T x)      round x to the nearest integer value in floating point format,   floating point types
----------------
Shall we add log2 and log10 together?


================
Comment at: clang/test/Sema/riscv-sve-vector-log-ops.c:11
+
+  return __builtin_elementwise_sin(v);
+  // expected-error at -1 {{1st argument must be a vector, integer or floating point type}}
----------------
log here?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140489/new/

https://reviews.llvm.org/D140489



More information about the cfe-commits mailing list