mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
target/arm: Implement scalar float32 to bfloat16 conversion
This is the 64-bit BFCVT and the 32-bit VCVT{B,T}.BF16.F32. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210525225817.400336-4-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
fc5200ee45
commit
3a98ac40fa
5 changed files with 51 additions and 0 deletions
|
@ -411,6 +411,11 @@ float32 VFP_HELPER(fcvts, d)(float64 x, CPUARMState *env)
|
|||
return float64_to_float32(x, &env->vfp.fp_status);
|
||||
}
|
||||
|
||||
uint32_t HELPER(bfcvt)(float32 x, void *status)
|
||||
{
|
||||
return float32_to_bfloat16(x, status);
|
||||
}
|
||||
|
||||
/*
|
||||
* VFP3 fixed point conversion. The AArch32 versions of fix-to-float
|
||||
* must always round-to-nearest; the AArch64 ones honour the FPSCR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue