|
| From: | LIU Zhiwei |
| Subject: | Re: [PATCH] fpu: Add conversions between bfloat16 and [u]int8 |
| Date: | Thu, 1 Jun 2023 09:49:30 +0800 |
| User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 |
On 5/30/23 23:54, LIU Zhiwei wrote:
We missed these functions when upstreaming the bfloat16 support.
Signed-off-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
They look ok, so far as it goes. What will they be used for?
T-Head Xuantie CPUs custom extension need these interfaces. It
uses a custom CSR(still not upstream) to switch between the fp16
and bfloat16. All fp16 instructions(Zfh) can process the bfloat16
types. In its custom matrix extension[1] or vector extension, this
feature is also supported.
As a side note, the RISC-V port support for custom extension at
least should have these aspects:
1.
https://github.com/T-head-Semi/riscv-matrix-extension-spec/releases/tag/v0.1.0
r~
| [Prev in Thread] | Current Thread | [Next in Thread] |