diff options
author | David Hildenbrand <david@redhat.com> | 2019-02-25 21:03:17 +0100 |
---|---|---|
committer | Cornelia Huck <cohuck@redhat.com> | 2019-03-04 11:49:31 +0100 |
commit | 86b59624c4aa2a383aca7a1798740779ac8967ce (patch) | |
tree | c00b592406218153b745d43fc5b3e35ef85cc5de /target/s390x/translate.c | |
parent | 2a1cf844520748a18740a905e6286987d3e4e62d (diff) |
s390x/tcg: Implement LOAD LENGTHENED short HFP to long HFP
Nice trick to load a 32 bit value into vector element 0 (32 bit element
size) from memory, zeroing out element1. The short HFP to long HFP
conversion really only is a shift.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20190225200318.16102-7-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'target/s390x/translate.c')
-rw-r--r-- | target/s390x/translate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/s390x/translate.c b/target/s390x/translate.c index f7de77192c..59e71128d2 100644 --- a/target/s390x/translate.c +++ b/target/s390x/translate.c @@ -2725,6 +2725,12 @@ static DisasJumpType op_lxeb(DisasContext *s, DisasOps *o) return DISAS_NEXT; } +static DisasJumpType op_lde(DisasContext *s, DisasOps *o) +{ + tcg_gen_shli_i64(o->out, o->in2, 32); + return DISAS_NEXT; +} + static DisasJumpType op_llgt(DisasContext *s, DisasOps *o) { tcg_gen_andi_i64(o->out, o->in2, 0x7fffffff); |