From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D1B2C04AB6 for ; Mon, 3 Jun 2019 09:08:44 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E9933270B9 for ; Mon, 3 Jun 2019 09:08:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E9933270B9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([127.0.0.1]:60020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXixP-0005ib-35 for qemu-devel@archiver.kernel.org; Mon, 03 Jun 2019 05:08:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXivX-0004FK-DG for qemu-devel@nongnu.org; Mon, 03 Jun 2019 05:06:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXivU-00024j-H1 for qemu-devel@nongnu.org; Mon, 03 Jun 2019 05:06:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46674) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hXivU-0001xe-72; Mon, 03 Jun 2019 05:06:44 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 61E7588305; Mon, 3 Jun 2019 09:06:40 +0000 (UTC) Received: from t460s.redhat.com (unknown [10.36.117.0]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6256361101; Mon, 3 Jun 2019 09:06:36 +0000 (UTC) From: David Hildenbrand To: qemu-devel@nongnu.org Date: Mon, 3 Jun 2019 11:06:13 +0200 Message-Id: <20190603090635.10631-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 03 Jun 2019 09:06:40 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 00/22] s390x/tcg: Vector Instruction Support Part 4 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , Denys Vlasenko , David Hildenbrand , Cornelia Huck , Pino Toscano , Christian Borntraeger , qemu-s390x@nongnu.org, Richard Henderson Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" This is the final part of vector instruction support for s390x. Part 1: Vector Support Instructions Part 2: Vector Integer Instructions Part 3: Vector String Instructions Part 4: Vector Floating-Point Instructions The current state can be found at (kept updated): https://github.com/davidhildenbrand/qemu/tree/vx It is based on: - [PATCH v2 0/5] s390x/tcg: Vector Instruction Support Part 3 - [PATCH v1 0/2] s390x: Fix vector register alignment With the current state I can boot Linux kernel + user space compiled with SIMD support. This allows to boot distributions compiled exclusively for z13, requiring SIMD support. Also, it is now possible to build a complete kernel using rpmbuild as quite some issues have been sorted out. While the current state works fine for me with RHEL 8, I am experiencing some issues with newer userspace versions. I already found and fixed some stack overflow protection issues (stfle instruction). I still see random rpm database corruptions and rpmbuild doesn't work correctly (looks like another stack protection issue). In this part, all Vector Floating-Point Instructions introduced with the "Vector Facility" are added. Also, the "qemu" model is changed to a z13 machine. v1 -> v2: - get rid of make_float64() and float64_val(). - fixed two cc calculation issues (thanks Richard) - Rework "VECTOR FP COMPARE (EQUAL|HIGH|HIGH OR EQUAL)" - Rework "VECTOR FP MULTIPLY AND (ADD|SUBTRACT)" - Use gvec expansion in "s390x/tcg: Implement VECTOR FP PERFORM SIGN OPERATION" Cc: Denys Vlasenko Cc: Christian Borntraeger Cc: Pino Toscano David Hildenbrand (22): s390x/tcg: Store only the necessary amount of doublewords for STFLE s390x/tcg: Introduce tcg_s390_vector_exception() s390x/tcg: Export float_comp_to_cc() and float(32|64|128)_dcmask() s390x/tcg: Implement VECTOR FP ADD s390x/tcg: Implement VECTOR FP COMPARE (AND SIGNAL) SCALAR s390x/tcg: Implement VECTOR FP COMPARE (EQUAL|HIGH|HIGH OR EQUAL) s390x/tcg: Implement VECTOR FP CONVERT FROM FIXED 64-BIT s390x/tcg: Implement VECTOR FP CONVERT FROM LOGICAL 64-BIT s390x/tcg: Implement VECTOR FP CONVERT TO FIXED 64-BIT s390x/tcg: Implement VECTOR FP CONVERT TO LOGICAL 64-BIT s390x/tcg: Implement VECTOR FP DIVIDE s390x/tcg: Implement VECTOR LOAD FP INTEGER s390x/tcg: Implement VECTOR LOAD LENGTHENED s390x/tcg: Implement VECTOR LOAD ROUNDED s390x/tcg: Implement VECTOR FP MULTIPLY s390x/tcg: Implement VECTOR FP MULTIPLY AND (ADD|SUBTRACT) s390x/tcg: Implement VECTOR FP PERFORM SIGN OPERATION s390x/tcg: Implement VECTOR FP SQUARE ROOT s390x/tcg: Implement VECTOR FP SUBTRACT s390x/tcg: Implement VECTOR FP TEST DATA CLASS IMMEDIATE s390x/tcg: Allow linux-user to use vector instructions s390x/tcg: We support the Vector Facility target/s390x/Makefile.objs | 1 + target/s390x/cpu.c | 3 + target/s390x/cpu.h | 1 + target/s390x/excp_helper.c | 15 + target/s390x/fpu_helper.c | 4 +- target/s390x/gen-features.c | 1 + target/s390x/helper.h | 46 +++ target/s390x/insn-data.def | 45 +++ target/s390x/internal.h | 4 + target/s390x/misc_helper.c | 8 +- target/s390x/tcg_s390x.h | 2 + target/s390x/translate_vx.inc.c | 284 +++++++++++++++ target/s390x/vec_fpu_helper.c | 625 ++++++++++++++++++++++++++++++++ 13 files changed, 1036 insertions(+), 3 deletions(-) create mode 100644 target/s390x/vec_fpu_helper.c --=20 2.21.0