[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PATCH v3 13/40] s390x/tcg: Implement VECTOR EXCLUSIVE OR
From: |
David Hildenbrand |
Subject: |
[qemu-s390x] [PATCH v3 13/40] s390x/tcg: Implement VECTOR EXCLUSIVE OR |
Date: |
Thu, 2 May 2019 16:09:52 +0200 |
Easy, we can reuse an existing gvec helper.
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: David Hildenbrand <address@hidden>
---
target/s390x/insn-data.def | 2 ++
target/s390x/translate_vx.inc.c | 7 +++++++
2 files changed, 9 insertions(+)
diff --git a/target/s390x/insn-data.def b/target/s390x/insn-data.def
index a355b7f62f..b8400c191a 100644
--- a/target/s390x/insn-data.def
+++ b/target/s390x/insn-data.def
@@ -1088,6 +1088,8 @@
F(0xe753, VCLZ, VRR_a, V, 0, 0, 0, 0, vclz, 0, IF_VEC)
/* VECTOR COUNT TRAILING ZEROS */
F(0xe752, VCTZ, VRR_a, V, 0, 0, 0, 0, vctz, 0, IF_VEC)
+/* VECTOR EXCLUSIVE OR */
+ F(0xe76d, VX, VRR_c, V, 0, 0, 0, 0, vx, 0, IF_VEC)
#ifndef CONFIG_USER_ONLY
/* COMPARE AND SWAP AND PURGE */
diff --git a/target/s390x/translate_vx.inc.c b/target/s390x/translate_vx.inc.c
index ac1a2d77ad..0c67f53d1c 100644
--- a/target/s390x/translate_vx.inc.c
+++ b/target/s390x/translate_vx.inc.c
@@ -1472,3 +1472,10 @@ static DisasJumpType op_vctz(DisasContext *s, DisasOps
*o)
gen_gvec_2(get_field(s->fields, v1), get_field(s->fields, v2), &g[es]);
return DISAS_NEXT;
}
+
+static DisasJumpType op_vx(DisasContext *s, DisasOps *o)
+{
+ gen_gvec_fn_3(xor, ES_8, get_field(s->fields, v1), get_field(s->fields,
v2),
+ get_field(s->fields, v3));
+ return DISAS_NEXT;
+}
--
2.20.1
- Re: [qemu-s390x] [Qemu-devel] [PATCH v3 04/40] s390x/tcg: Implement VECTOR ADD WITH CARRY COMPUTE CARRY, (continued)
- [qemu-s390x] [PATCH v3 05/40] s390x/tcg: Implement VECTOR AND (WITH COMPLEMENT), David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 06/40] s390x/tcg: Implement VECTOR AVERAGE, David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 07/40] s390x/tcg: Implement VECTOR AVERAGE LOGICAL, David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 09/40] s390x/tcg: Implement VECTOR ELEMENT COMPARE *, David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 08/40] s390x/tcg: Implement VECTOR CHECKSUM, David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 10/40] s390x/tcg: Implement VECTOR COMPARE *, David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 11/40] s390x/tcg: Implement VECTOR COUNT LEADING ZEROS, David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 12/40] s390x/tcg: Implement VECTOR COUNT TRAILING ZEROS, David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 13/40] s390x/tcg: Implement VECTOR EXCLUSIVE OR,
David Hildenbrand <=
- [qemu-s390x] [PATCH v3 15/40] s390x/tcg: Implement VECTOR LOAD COMPLEMENT, David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 14/40] s390x/tcg: Implement VECTOR GALOIS FIELD MULTIPLY SUM (AND ACCUMULATE), David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 16/40] s390x/tcg: Implement VECTOR LOAD POSITIVE, David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 17/40] s390x/tcg: Implement VECTOR (MAXIMUM|MINIMUM) (LOGICAL), David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 18/40] s390x/tcg: Implement VECTOR MULTIPLY AND ADD *, David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 19/40] s390x/tcg: Implement VECTOR MULTIPLY *, David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 20/40] s390x/tcg: Implement VECTOR NAND, David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 21/40] s390x/tcg: Implement VECTOR NOR, David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 22/40] s390x/tcg: Implement VECTOR NOT EXCLUSIVE OR, David Hildenbrand, 2019/05/02
- [qemu-s390x] [PATCH v3 23/40] s390x/tcg: Implement VECTOR OR, David Hildenbrand, 2019/05/02