@@ -127,6 +127,36 @@ static void do_zzz_genfn(DisasContext *s, arg_rrr_esz *a, GVecGen3Fn *fn)
do_genfn3(s, fn, a->esz, a->rd, a->rn, a->rm);
}
+void trans_ADD_zzz(DisasContext *s, arg_rrr_esz *a, uint32_t insn)
+{
+ do_zzz_genfn(s, a, tcg_gen_gvec_add);
+}
+
+void trans_SUB_zzz(DisasContext *s, arg_rrr_esz *a, uint32_t insn)
+{
+ do_zzz_genfn(s, a, tcg_gen_gvec_sub);
+}
+
+void trans_SQADD_zzz(DisasContext *s, arg_rrr_esz *a, uint32_t insn)
+{
+ do_zzz_genfn(s, a, tcg_gen_gvec_ssadd);
+}
+
+void trans_SQSUB_zzz(DisasContext *s, arg_rrr_esz *a, uint32_t insn)
+{
+ do_zzz_genfn(s, a, tcg_gen_gvec_sssub);
+}
+
+void trans_UQADD_zzz(DisasContext *s, arg_rrr_esz *a, uint32_t insn)
+{
+ do_zzz_genfn(s, a, tcg_gen_gvec_usadd);
+}
+
+void trans_UQSUB_zzz(DisasContext *s, arg_rrr_esz *a, uint32_t insn)
+{
+ do_zzz_genfn(s, a, tcg_gen_gvec_ussub);
+}
+
void trans_AND_zzz(DisasContext *s, arg_rrr_esz *a, uint32_t insn)
{
do_zzz_genfn(s, a, tcg_gen_gvec_and);
@@ -53,6 +53,9 @@
# Named instruction formats. These are generally used to
# reduce the amount of duplication between instruction patterns.
+# Three operand
+@rd_rn_rm_esz ........ esz:2 . rm:5 ... ... rn:5 rd:5 &rrr_esz
+
# Three operand with unused vector element size
@rd_rn_rm ........ ... rm:5 ... ... rn:5 rd:5 &rrr_esz esz=0
@@ -183,6 +186,16 @@ MLS 00000100 .. 0 ..... 011 ... ..... ..... @rda_pg_rn_rm_esz
MLA 00000100 .. 0 ..... 110 ... ..... ..... @rdn_pg_ra_rm_esz # MAD
MLS 00000100 .. 0 ..... 111 ... ..... ..... @rdn_pg_ra_rm_esz # MSB
+### SVE Integer Arithmetic - Unpredicated Group
+
+# SVE integer add/subtract vectors (unpredicated)
+ADD_zzz 00000100 .. 1 ..... 000 000 ..... ..... @rd_rn_rm_esz
+SUB_zzz 00000100 .. 1 ..... 000 001 ..... ..... @rd_rn_rm_esz
+SQADD_zzz 00000100 .. 1 ..... 000 100 ..... ..... @rd_rn_rm_esz
+UQADD_zzz 00000100 .. 1 ..... 000 101 ..... ..... @rd_rn_rm_esz
+SQSUB_zzz 00000100 .. 1 ..... 000 110 ..... ..... @rd_rn_rm_esz
+UQSUB_zzz 00000100 .. 1 ..... 000 111 ..... ..... @rd_rn_rm_esz
+
### SVE Logical - Unpredicated Group
# SVE bitwise logical operations (unpredicated)
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/arm/translate-sve.c | 30 ++++++++++++++++++++++++++++++ target/arm/sve.def | 13 +++++++++++++ 2 files changed, 43 insertions(+) -- 2.14.3