[PATCH] D120395: [X86] Prohibit arithmetic operations on type `__bfloat16`
Andy Kaylor via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 25 12:57:05 PST 2022
andrew.w.kaylor added inline comments.
================
Comment at: clang/lib/Headers/avx512bf16intrin.h:37
/// and fraction field is extended to 23 bits.
-static __inline__ float __DEFAULT_FN_ATTRS _mm_cvtsbh_ss(__bfloat16 __A) {
+static __inline__ float __DEFAULT_FN_ATTRS _mm_cvtsbh_ss(unsigned short __A) {
return __builtin_ia32_cvtsbf162ss_32(__A);
----------------
Are we trying to make our intrinsics weakly typed? I don't like this change at all.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120395/new/
https://reviews.llvm.org/D120395
More information about the cfe-commits
mailing list