=?utf-8?q?Mikołaj_Piróg?= <mikolajpi...@gmail.com>,
=?utf-8?q?Mikołaj_Piróg?= <mikolajpi...@gmail.com>,
=?utf-8?q?Mikołaj_Piróg?= <mikolajpi...@gmail.com>,
=?utf-8?q?Mikołaj_Piróg?= <mikolajpi...@gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/120...@github.com>


================
@@ -24,573 +24,3369 @@
   __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"),    
\
                  __min_vector_width__(256)))
 
+//clang-format off
+
+/// Convert two 128-bit vectors, \a __A and \a __B, containing packed
+///    single-precision (32-bit) floating-point elements to a 128-bit vector
+///    containing FP16 elements.
+///
+/// \code{.operation}
+/// FOR i := 0 to 7
+///    IF i < 4
+///            dst.fp16[i] := convert_fp32_to_fp16(__B.fp32[i])
+///    ELSE
+///            dst.fp16[i] := convert_fp32_to_fp16(__A.fp32[i - 4])
+///    FI
+///
+/// dst[MAX:127] := 0
+/// ENDFOR
+/// \endcode
+///
+/// \headerfile <immintrin.h>
+///
+/// This intrinsic corresponds to the \c VCVT2PS2PHX instruction.
+///
+/// \param __A
+///    A 128-bit vector of [4 x float].
+/// \param __B
+///    A 128-bit vector of [4 x float].
+/// \returns
+///    A 128-bit vector of [8 x fp16]. Lower elements correspond to the
----------------
phoebewang wrote:

We use `half` instread of `fp16`.

https://github.com/llvm/llvm-project/pull/120766
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to