mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
target/arm: Implement SVE Floating Point Unary Operations - Unpredicated Group
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20180627043328.11531-21-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
23fbe79faa
commit
3887c0388d
4 changed files with 80 additions and 0 deletions
|
@ -427,6 +427,26 @@ void HELPER(gvec_fcmlad)(void *vd, void *vn, void *vm,
|
|||
clear_tail(d, opr_sz, simd_maxsz(desc));
|
||||
}
|
||||
|
||||
#define DO_2OP(NAME, FUNC, TYPE) \
|
||||
void HELPER(NAME)(void *vd, void *vn, void *stat, uint32_t desc) \
|
||||
{ \
|
||||
intptr_t i, oprsz = simd_oprsz(desc); \
|
||||
TYPE *d = vd, *n = vn; \
|
||||
for (i = 0; i < oprsz / sizeof(TYPE); i++) { \
|
||||
d[i] = FUNC(n[i], stat); \
|
||||
} \
|
||||
}
|
||||
|
||||
DO_2OP(gvec_frecpe_h, helper_recpe_f16, float16)
|
||||
DO_2OP(gvec_frecpe_s, helper_recpe_f32, float32)
|
||||
DO_2OP(gvec_frecpe_d, helper_recpe_f64, float64)
|
||||
|
||||
DO_2OP(gvec_frsqrte_h, helper_rsqrte_f16, float16)
|
||||
DO_2OP(gvec_frsqrte_s, helper_rsqrte_f32, float32)
|
||||
DO_2OP(gvec_frsqrte_d, helper_rsqrte_f64, float64)
|
||||
|
||||
#undef DO_2OP
|
||||
|
||||
/* Floating-point trigonometric starting value.
|
||||
* See the ARM ARM pseudocode function FPTrigSMul.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue