Skip to content

Commit

Permalink
target/arm: Clear tail in gvec_fmul_idx_*, gvec_fmla_idx_*
Browse files Browse the repository at this point in the history
Must clear the tail for AdvSIMD when SVE is enabled.

Fixes: ca40a6e
Cc: qemu-stable@nongnu.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200513163245.17915-15-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  • Loading branch information
rth7680 authored and pm215 committed May 14, 2020
1 parent e286bf4 commit 525d9b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions target/arm/vec_helper.c
Expand Up @@ -747,6 +747,7 @@ void HELPER(NAME)(void *vd, void *vn, void *vm, void *stat, uint32_t desc) \
d[i + j] = TYPE##_mul(n[i + j], mm, stat); \
} \
} \
clear_tail(d, oprsz, simd_maxsz(desc)); \
}

DO_MUL_IDX(gvec_fmul_idx_h, float16, H2)
Expand All @@ -771,6 +772,7 @@ void HELPER(NAME)(void *vd, void *vn, void *vm, void *va, \
mm, a[i + j], 0, stat); \
} \
} \
clear_tail(d, oprsz, simd_maxsz(desc)); \
}

DO_FMLA_IDX(gvec_fmla_idx_h, float16, H2)
Expand Down

0 comments on commit 525d9b6

Please sign in to comment.