mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
s390x/tcg: Simplify vfll32() handling
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20210608092337.12221-9-david@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
This commit is contained in:
parent
34142ffdee
commit
860b707bbb
@ -262,7 +262,6 @@ DEF_HELPER_FLAGS_4(gvec_vclgd64, TCG_CALL_NO_WG, void, ptr, cptr, env, i32)
|
||||
DEF_HELPER_FLAGS_5(gvec_vfd64, TCG_CALL_NO_WG, void, ptr, cptr, cptr, env, i32)
|
||||
DEF_HELPER_FLAGS_4(gvec_vfi64, TCG_CALL_NO_WG, void, ptr, cptr, env, i32)
|
||||
DEF_HELPER_FLAGS_4(gvec_vfll32, TCG_CALL_NO_WG, void, ptr, cptr, env, i32)
|
||||
DEF_HELPER_FLAGS_4(gvec_vfll32s, TCG_CALL_NO_WG, void, ptr, cptr, env, i32)
|
||||
DEF_HELPER_FLAGS_4(gvec_vflr64, TCG_CALL_NO_WG, void, ptr, cptr, env, i32)
|
||||
DEF_HELPER_FLAGS_4(gvec_vflr64s, TCG_CALL_NO_WG, void, ptr, cptr, env, i32)
|
||||
DEF_HELPER_FLAGS_5(gvec_vfm64, TCG_CALL_NO_WG, void, ptr, cptr, cptr, env, i32)
|
||||
|
@ -2570,18 +2570,14 @@ static DisasJumpType op_vfll(DisasContext *s, DisasOps *o)
|
||||
{
|
||||
const uint8_t fpf = get_field(s, m3);
|
||||
const uint8_t m4 = get_field(s, m4);
|
||||
gen_helper_gvec_2_ptr *fn = gen_helper_gvec_vfll32;
|
||||
|
||||
if (fpf != FPF_SHORT || extract32(m4, 0, 3)) {
|
||||
gen_program_exception(s, PGM_SPECIFICATION);
|
||||
return DISAS_NORETURN;
|
||||
}
|
||||
|
||||
if (extract32(m4, 3, 1)) {
|
||||
fn = gen_helper_gvec_vfll32s;
|
||||
}
|
||||
gen_gvec_2_ptr(get_field(s, v1), get_field(s, v2), cpu_env,
|
||||
0, fn);
|
||||
m4, gen_helper_gvec_vfll32);
|
||||
return DISAS_NEXT;
|
||||
}
|
||||
|
||||
|
@ -287,9 +287,10 @@ DEF_GVEC_VFC(vfce, eq)
|
||||
DEF_GVEC_VFC(vfch, lt)
|
||||
DEF_GVEC_VFC(vfche, le)
|
||||
|
||||
static void vfll32(S390Vector *v1, const S390Vector *v2, CPUS390XState *env,
|
||||
bool s, uintptr_t retaddr)
|
||||
void HELPER(gvec_vfll32)(void *v1, const void *v2, CPUS390XState *env,
|
||||
uint32_t desc)
|
||||
{
|
||||
const bool s = extract32(simd_data(desc), 3, 1);
|
||||
uint8_t vxc, vec_exc = 0;
|
||||
S390Vector tmp = {};
|
||||
int i;
|
||||
@ -306,20 +307,8 @@ static void vfll32(S390Vector *v1, const S390Vector *v2, CPUS390XState *env,
|
||||
break;
|
||||
}
|
||||
}
|
||||
handle_ieee_exc(env, vxc, vec_exc, retaddr);
|
||||
*v1 = tmp;
|
||||
}
|
||||
|
||||
void HELPER(gvec_vfll32)(void *v1, const void *v2, CPUS390XState *env,
|
||||
uint32_t desc)
|
||||
{
|
||||
vfll32(v1, v2, env, false, GETPC());
|
||||
}
|
||||
|
||||
void HELPER(gvec_vfll32s)(void *v1, const void *v2, CPUS390XState *env,
|
||||
uint32_t desc)
|
||||
{
|
||||
vfll32(v1, v2, env, true, GETPC());
|
||||
handle_ieee_exc(env, vxc, vec_exc, GETPC());
|
||||
*(S390Vector *)v1 = tmp;
|
||||
}
|
||||
|
||||
static void vflr64(S390Vector *v1, const S390Vector *v2, CPUS390XState *env,
|
||||
|
Loading…
Reference in New Issue
Block a user