mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
target/arm: Implement MVE VSUB, VMUL, VABD, VMAXNM, VMINNM
Implement more simple 2-operand floating point MVE insns. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
1e35cd9166
commit
82af0153d3
4 changed files with 42 additions and 0 deletions
|
@ -2838,3 +2838,19 @@ DO_VMAXMINA(vminaw, 4, int32_t, uint32_t, DO_MIN)
|
|||
DO_2OP_FP(OP##s, 4, float32, float32_##FN)
|
||||
|
||||
DO_2OP_FP_ALL(vfadd, add)
|
||||
DO_2OP_FP_ALL(vfsub, sub)
|
||||
DO_2OP_FP_ALL(vfmul, mul)
|
||||
|
||||
static inline float16 float16_abd(float16 a, float16 b, float_status *s)
|
||||
{
|
||||
return float16_abs(float16_sub(a, b, s));
|
||||
}
|
||||
|
||||
static inline float32 float32_abd(float32 a, float32 b, float_status *s)
|
||||
{
|
||||
return float32_abs(float32_sub(a, b, s));
|
||||
}
|
||||
|
||||
DO_2OP_FP_ALL(vfabd, abd)
|
||||
DO_2OP_FP_ALL(vmaxnm, maxnum)
|
||||
DO_2OP_FP_ALL(vminnm, minnum)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue