aboutsummaryrefslogtreecommitdiff
path: root/target/s390x/helper.h
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2019-04-11 09:31:04 +0200
committerDavid Hildenbrand <david@redhat.com>2019-05-17 10:54:13 +0200
commitc1a81d4b12b8f519863db6d7a0048b5cd0a802f0 (patch)
tree8aad8be49d082051c5aeab1cbab1b1e34402beb8 /target/s390x/helper.h
parent4c1bd09a1d06e76036211d19ae35762ad131f6db (diff)
downloadqemu-c1a81d4b12b8f519863db6d7a0048b5cd0a802f0.zip
qemu-c1a81d4b12b8f519863db6d7a0048b5cd0a802f0.tar.gz
qemu-c1a81d4b12b8f519863db6d7a0048b5cd0a802f0.tar.bz2
s390x/tcg: Implement VECTOR AVERAGE
Handle 32/64-bit elements via gvec expansion and the 8/16 bits via ool helpers. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'target/s390x/helper.h')
-rw-r--r--target/s390x/helper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/s390x/helper.h b/target/s390x/helper.h
index 0b494a2..add1d33 100644
--- a/target/s390x/helper.h
+++ b/target/s390x/helper.h
@@ -145,6 +145,10 @@ DEF_HELPER_5(gvec_vpkls_cc64, void, ptr, cptr, cptr, env, i32)
DEF_HELPER_FLAGS_5(gvec_vperm, TCG_CALL_NO_RWG, void, ptr, cptr, cptr, cptr, i32)
DEF_HELPER_FLAGS_4(vstl, TCG_CALL_NO_WG, void, env, cptr, i64, i64)
+/* === Vector Integer Instructions === */
+DEF_HELPER_FLAGS_4(gvec_vavg8, TCG_CALL_NO_RWG, void, ptr, cptr, cptr, i32)
+DEF_HELPER_FLAGS_4(gvec_vavg16, TCG_CALL_NO_RWG, void, ptr, cptr, cptr, i32)
+
#ifndef CONFIG_USER_ONLY
DEF_HELPER_3(servc, i32, env, i64, i64)
DEF_HELPER_4(diag, void, env, i32, i32, i32)