From patchwork Wed Oct 6 15:20:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 515345 Delivered-To: patch@linaro.org Received: by 2002:ac0:b5cc:0:0:0:0:0 with SMTP id x12csp547032ime; Wed, 6 Oct 2021 08:44:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQdNAQVFl1of9WTr64Anoxrstvx+Hli/KACf8eJ9stQoiNSVmgS5B3kgXd7JTpunDQSGYW X-Received: by 2002:a05:622a:148:: with SMTP id v8mr19971799qtw.117.1633535061838; Wed, 06 Oct 2021 08:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633535061; cv=none; d=google.com; s=arc-20160816; b=XJnM/k8wilQ5cBxm7VxCThkxNhtfXgiGRWBw/JPiL2PjV+e9f5YcgHwOqYiWELyOAq kxA9RWtli4TSZA++lp+DRnHKKiPFkZZvwN9wRJQzKC8QAUe5adNMOP0q/iNcgdxofWK3 O3ugoY2Q1WHRLiDJkDloMyBGb9m5UHOGMtBQHQ2rBxvYH1HO4SSCdcNGiNUdrJsmqH+M pWye3HzT+LEJQW/BIGYLAqHegyjyr6RH3tqv7U/OIjyLX1wW28FhSmWyopkYVby52kTG lIbB+NFNGPEUMatvCJX/hxWN9s215JANUIYfzgvdeVN5vcRA8qwfi9SNYc0qZo4VjRAq trPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=rbtcEb8mlQvQus8bNdjwHjiWP119WKMM5P6E48gohk4=; b=BXDOeV7fPuwJYEbCNodS3t8uHSSrD7zdHSk078uPlsK0C3U8B1HmpJjaSgtDN65b1H 8pro1/BR0FR6JQabGiprvqQFiC9LfvDXvdWBmILBndNZwk+iFQ+l2yf23/7fejY0URUe Ksd2L6pK+zCV881Eu4Bp8qSuB9YMl6yk3YPps549yuFWN6oOOvpN6CT0Vv/2KveS98+z evXtTlAwRnaN3cuFL2g7eVK3yvy9TCzsjUGFktLfq0svfhfjkuBZBvtnBG7oJi86qli6 dC+/VU6DNA70tiv/HHiwTBrQMTDBk/FiIFQZ1W+lE6jgJzmeEDn4m/nrbO1E6PmMyAap DkrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iKLYE1O0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n21si16598385qta.339.2021.10.06.08.44.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Oct 2021 08:44:21 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iKLYE1O0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:54542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mY95h-0008Cj-9d for patch@linaro.org; Wed, 06 Oct 2021 11:44:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mY8jB-0002hV-IB for qemu-devel@nongnu.org; Wed, 06 Oct 2021 11:21:06 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:33428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mY8io-0007sT-Vm for qemu-devel@nongnu.org; Wed, 06 Oct 2021 11:21:05 -0400 Received: by mail-pf1-x42d.google.com with SMTP id s16so2702917pfk.0 for ; Wed, 06 Oct 2021 08:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rbtcEb8mlQvQus8bNdjwHjiWP119WKMM5P6E48gohk4=; b=iKLYE1O0wARsjD710O8tcscC9QzQ7uwehGYC2rTdrq3ggt8RJQOjIcMIShVOjTDIq2 2d+Hj/c36sug87G/uL2IIjHd855s4eHL61KMo2Hv1CPz7q76WmYNy1z7rv401GyrhIig qY8kZ6cOknxNcpCR1nCXqHTCLwFudfPv8kEyNX8lRt02F7iNMDfYpR+yGy5VHDHVqcDx 6D50q3OozDJpuxC1OZnONgFpJTMu3v8nnqYKSbbacjxcTWj+CNNmAQ3BHq/8W8GEL66O 8UO2G3qgLBaF8dOB74c1Q/uYpckHnZEC6QcdI0ruK4DpUudGZPX8mYBw7wlzNxQuNu90 HMUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rbtcEb8mlQvQus8bNdjwHjiWP119WKMM5P6E48gohk4=; b=r2IJggsYVN+fwpARrOz9GpPDZtDxzhkMREun0fiCQNHcuV4kj0KoLJmX/lJB2u189X lC2+STqNlkzTTjOacKuqJc8DNDfpKq9Oe6SfIYyl3HGTF7MbI1y66Ef1z0sae+XzhE/B vBd0vPjs44x5GB2/AhH6Ya1uN94obSs/Yb32Ougoqq8M9fAQjkpP5yU9rQBKEStkvwbw BOfoMr3OUp20s3MvTk3Iu7SemXf/upPObG0m/E6DwHu9SneRMvwPmy8cWJe7xnuYliQ8 hStO2Y7or4ZpHb8r65BGO5rHQecfjTzbgdyY91UbFsyuM65F6avM55XORuE1s0hynKYL SHIQ== X-Gm-Message-State: AOAM5312UEcWUsBDs+yTit6N2i81EKvXRo78IYJDTZJboF+5TXgu1aTZ KwVjlyp2EQ3/UYBD5ZmY0EfswXM0hPMjTQ== X-Received: by 2002:a63:950f:: with SMTP id p15mr20897963pgd.265.1633533636490; Wed, 06 Oct 2021 08:20:36 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id 130sm22239256pfz.77.2021.10.06.08.20.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 08:20:36 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 23/28] tcg/s390x: Implement TCG_TARGET_HAS_mul_vec Date: Wed, 6 Oct 2021 08:20:09 -0700 Message-Id: <20211006152014.741026-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211006152014.741026-1-richard.henderson@linaro.org> References: <20211006152014.741026-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Hildenbrand Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: David Hildenbrand Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target.h | 2 +- tcg/s390x/tcg-target.c.inc | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) -- 2.25.1 diff --git a/tcg/s390x/tcg-target.h b/tcg/s390x/tcg-target.h index a42074e451..1c581a2f60 100644 --- a/tcg/s390x/tcg-target.h +++ b/tcg/s390x/tcg-target.h @@ -154,7 +154,7 @@ extern uint64_t s390_facilities[3]; #define TCG_TARGET_HAS_shi_vec 0 #define TCG_TARGET_HAS_shs_vec 0 #define TCG_TARGET_HAS_shv_vec 0 -#define TCG_TARGET_HAS_mul_vec 0 +#define TCG_TARGET_HAS_mul_vec 1 #define TCG_TARGET_HAS_sat_vec 0 #define TCG_TARGET_HAS_minmax_vec 0 #define TCG_TARGET_HAS_bitsel_vec 0 diff --git a/tcg/s390x/tcg-target.c.inc b/tcg/s390x/tcg-target.c.inc index cbad88271a..85178c93d3 100644 --- a/tcg/s390x/tcg-target.c.inc +++ b/tcg/s390x/tcg-target.c.inc @@ -277,6 +277,7 @@ typedef enum S390Opcode { VRRc_VCEQ = 0xe7f8, /* we leave the m5 cs field 0 */ VRRc_VCH = 0xe7fb, /* " */ VRRc_VCHL = 0xe7f9, /* " */ + VRRc_VML = 0xe7a2, VRRc_VN = 0xe768, VRRc_VNC = 0xe769, VRRc_VNO = 0xe76b, @@ -2696,6 +2697,9 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc, case INDEX_op_andc_vec: tcg_out_insn(s, VRRc, VNC, a0, a1, a2, 0); break; + case INDEX_op_mul_vec: + tcg_out_insn(s, VRRc, VML, a0, a1, a2, vece); + break; case INDEX_op_or_vec: tcg_out_insn(s, VRRc, VO, a0, a1, a2, 0); break; @@ -2745,6 +2749,8 @@ int tcg_can_emit_vec_op(TCGOpcode opc, TCGType type, unsigned vece) return 1; case INDEX_op_cmp_vec: return -1; + case INDEX_op_mul_vec: + return vece < MO_64; default: return 0; } @@ -2981,6 +2987,7 @@ static TCGConstraintSetIndex tcg_target_op_def(TCGOpcode op) case INDEX_op_orc_vec: case INDEX_op_xor_vec: case INDEX_op_cmp_vec: + case INDEX_op_mul_vec: return C_O1_I2(v, v, v); default: