diff options
author | Richard Henderson <rth@twiddle.net> | 2012-08-16 14:42:49 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2013-01-05 12:00:28 -0800 |
commit | e272b3ace35ffafe24754986b999bda19f56f373 (patch) | |
tree | 95008edbd664a0943e5b8e9b13c50067a7749aed | |
parent | 3f4cb56a4351b0710f90d1205f2d6178a8ebc02f (diff) |
target-s390: Implement ADD LOGICAL WITH SIGNED IMMEDIATE
Signed-off-by: Richard Henderson <rth@twiddle.net>
-rw-r--r-- | target-s390x/insn-data.def | 5 | ||||
-rw-r--r-- | target-s390x/translate.c | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 44e1ca7997..acde181783 100644 --- a/target-s390x/insn-data.def +++ b/target-s390x/insn-data.def @@ -35,6 +35,11 @@ /* ADD LOGICAL IMMEDIATE */ C(0xc20b, ALFI, RIL_a, EI, r1, i2_32u, new, r1_32, add, addu32) C(0xc20a, ALGFI, RIL_a, EI, r1, i2_32u, r1, 0, add, addu64) +/* ADD LOGICAL WITH SIGNED IMMEDIATE */ + C(0xeb6e, ALSI, SIY, GIE, m1_32u, i2, new, m1_32, add, addu32) + C(0xecda, ALHSIK, RIE_d, DO, r3, i2, new, r1_32, add, addu32) + C(0xeb7e, ALGSI, SIY, GIE, m1_64, i2, new, m1_64, add, addu64) + C(0xecdb, ALGHSIK, RIE_d, DO, r3, i2, r1, 0, add, addu64) /* SUBTRACT */ C(0x1b00, SR, RR_a, Z, r1, r2, new, r1_32, sub, subs32) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index 0a916b1a3f..5d5856a114 100644 --- a/target-s390x/translate.c +++ b/target-s390x/translate.c @@ -5005,6 +5005,13 @@ static void in1_m1_32s(DisasContext *s, DisasFields *f, DisasOps *o) tcg_gen_qemu_ld32s(o->in1, o->addr1, get_mem_index(s)); } +static void in1_m1_32u(DisasContext *s, DisasFields *f, DisasOps *o) +{ + in1_la1(s, f, o); + o->in1 = tcg_temp_new_i64(); + tcg_gen_qemu_ld32u(o->in1, o->addr1, get_mem_index(s)); +} + static void in1_m1_64(DisasContext *s, DisasFields *f, DisasOps *o) { in1_la1(s, f, o); |