mirror of https://github.com/xemu-project/xemu.git
s390x/tcg: Implement VECTOR REPLICATE IMMEDIATE
Like VECTOR REPLICATE, but the element to be replicated comes from an immediate. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20190307121539.12842-24-david@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
This commit is contained in:
parent
28d08731b1
commit
3a338e29df
|
@ -1025,6 +1025,8 @@
|
|||
F(0xe784, VPDI, VRR_c, V, 0, 0, 0, 0, vpdi, 0, IF_VEC)
|
||||
/* VECTOR REPLICATE */
|
||||
F(0xe74d, VREP, VRI_c, V, 0, 0, 0, 0, vrep, 0, IF_VEC)
|
||||
/* VECTOR REPLICATE IMMEDIATE */
|
||||
F(0xe745, VREPI, VRI_a, V, 0, 0, 0, 0, vrepi, 0, IF_VEC)
|
||||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
/* COMPARE AND SWAP AND PURGE */
|
||||
|
|
|
@ -707,3 +707,17 @@ static DisasJumpType op_vrep(DisasContext *s, DisasOps *o)
|
|||
16, 16);
|
||||
return DISAS_NEXT;
|
||||
}
|
||||
|
||||
static DisasJumpType op_vrepi(DisasContext *s, DisasOps *o)
|
||||
{
|
||||
const int64_t data = (int16_t)get_field(s->fields, i2);
|
||||
const uint8_t es = get_field(s->fields, m3);
|
||||
|
||||
if (es > ES_64) {
|
||||
gen_program_exception(s, PGM_SPECIFICATION);
|
||||
return DISAS_NORETURN;
|
||||
}
|
||||
|
||||
gen_gvec_dupi(es, get_field(s->fields, v1), data);
|
||||
return DISAS_NEXT;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue