From patchwork Sun Oct 22 05:59:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 736941 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp1004062wrl; Sat, 21 Oct 2023 23:05:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9sS2rFK0+WOMDTUMsPLQt1QZwl3y2CevXg/UlOLBXbvJFkjoB5cxs55Ady0ugSvHCf844 X-Received: by 2002:a05:620a:8793:b0:774:1c99:daf9 with SMTP id py19-20020a05620a879300b007741c99daf9mr5111422qkn.37.1697954721133; Sat, 21 Oct 2023 23:05:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697954721; cv=none; d=google.com; s=arc-20160816; b=0ta/mznnorIZUvWhtiFwYriMrDynjEhL9kOe+no9VGTkYEVVmCRv0IubhIks94sh1L jMb/H2tnHAbGdyiHT9pGPT2zZJ5ysrPYlb5Oe65M8RBRGW5AGXTfxyrVCxMQPof1YHKB r9k4dztEd0xpVJ3qR6ndomstmydeZadqnLauXoplT80RhtfCUaQ54O+UqQh2riAgs1Ab jyfwJNZaLQZ5f148rUIbnudvvpP6zMMjSyrjd+PhQu1jTC09hsiOloK29ER8VpFpg5lW J8kpTON848fvUbSzGXcEfT9JAqIYLlapEqOOFEikfa035q6s4RMacXlh/LrH5cRrtjGW KQRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=JohjTeLgxEEBwOOQtITWo4pQmKo+Yz9DXG7dwEjVRi8=; fh=TYrED6TOMxGX0VC4GtjviASLbYyJe19+7/tKWjN44KQ=; b=mtUjnJmPhQGt5Od/VeUSH/S9xJmrHvXcHLAraPjgXPUi5z0IEZmTezHP7eDmFAatR/ A4d245gvdHhUW2JBaEXYUL3/YYxQWa1JVRMehEaN/CYnZGajRDYjBwW4oAQGF7VOKRDB y7sGSBA7G3R/O7iAzjweGmJ65PrXVRSxIGulSsY891VR1sdBxtmbfCrlI9QkI5AKgyNW UDUcEHjParaRivj3foGKv7DOT86dv8X/vtpDq8DD/ySSsK2xQ+ReUP2ubukrTl6zNKoI toV4F4hagM0Nd4QGthPL1cAcoXZHZE3gMW5xW1Q3q+qg0YTb3t6dIcJiA1PjKCNbf7rv P+0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IQYq7JaO; 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 e25-20020a05620a12d900b0077431227b58si3522434qkl.27.2023.10.21.23.05.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 21 Oct 2023 23:05: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=IQYq7JaO; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quRWZ-0000mk-Cz; Sun, 22 Oct 2023 02:01:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1quRWH-0000c0-IN for qemu-devel@nongnu.org; Sun, 22 Oct 2023 02:01:02 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1quRWF-0001cG-Q4 for qemu-devel@nongnu.org; Sun, 22 Oct 2023 02:01:01 -0400 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6b9af7d41d2so1809057b3a.0 for ; Sat, 21 Oct 2023 23:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697954458; x=1698559258; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JohjTeLgxEEBwOOQtITWo4pQmKo+Yz9DXG7dwEjVRi8=; b=IQYq7JaOyyrrtOaHjJ+FzC3Bn7oUhLMPINYzxljxmHQuOgWa1pEB8ozkw/zw8Jv1VV SCEMN0z+TqfZOH1D0NST66XLCA2LiHKOklO7mtFzEEgaq7cX2xH7kVCExSwsTvXIMi6Q W/mkZXLAekagwaDwW21z8i+FSYSdlR6KetX+KeYKTm8k6wmhDR4b3V/sRtkRlIkuPAiu UPfu494F5iRTQOyGPS3Gl+xZ5DJyMoesthozifa6viYF6Uep1pzYR+DVAGnnFpFuzBIS hrEuqRjJ7no4M/98Wb8rNpJqS7DeXpWDbcZzmnc7BQ3xodhpJobBjEeaHGgVUDViqPLo xdzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697954458; x=1698559258; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JohjTeLgxEEBwOOQtITWo4pQmKo+Yz9DXG7dwEjVRi8=; b=oel/oqbyRhqU+4F+fs8gomBab4dFMnsXFGuRU+W6Dhnezr+yMXW/vhoWAAUqnY8q/f n0zrIkjg4nEuja6Rn/qHCW1v3joGVrtd3g3tdKbJr6nZn70WZ8cWhR4eWvyysr1RlVlH 0zRdMeaK40Ep3bEMwj2ApNxr/+oLx7Xd5oK+pFSTZ8IfjdqQTQya+aAG7fVmWDR6VanX WygjZGFT8MQRnifBIYaxTdaZCPBpL/fBEgkesvS6UwHpl6WNgVzKRdR7HvVZoyfnrICP SWNI4CV3Kqa91ZZ4k5rYQmsM+h7nnfm7viH60KGbYOfy1ot/7GKJbsvGYXH6ohUlnsxx Ny3w== X-Gm-Message-State: AOJu0YxzzXVvzppv5fvLi9vWDKlSgP8su3wqmxrVNm6+X4QEta9cspdv 6F+OUNsqdp+xKrSa6kmCacoX6rggk58fpDylEA4= X-Received: by 2002:a17:902:c401:b0:1bc:5924:2da2 with SMTP id k1-20020a170902c40100b001bc59242da2mr6599964plk.56.1697954458592; Sat, 21 Oct 2023 23:00:58 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id je17-20020a170903265100b001c728609574sm3999887plb.6.2023.10.21.23.00.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 23:00:58 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: mark.cave-ayland@ilande.co.uk Subject: [PATCH v4 31/90] target/sparc: Move MULX to decodetree Date: Sat, 21 Oct 2023 22:59:32 -0700 Message-Id: <20231022060031.490251-32-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231022060031.490251-1-richard.henderson@linaro.org> References: <20231022060031.490251-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42a.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- target/sparc/insns.decode | 3 +++ target/sparc/translate.c | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/target/sparc/insns.decode b/target/sparc/insns.decode index 1cff18fa1f..1a04a8e229 100644 --- a/target/sparc/insns.decode +++ b/target/sparc/insns.decode @@ -31,6 +31,7 @@ CALL 01 i:s30 &r_r_ri_cc rd rs1 rs2_or_imm imm:bool cc:bool @r_r_ri_cc .. rd:5 . cc:1 .... rs1:5 imm:1 rs2_or_imm:s13 &r_r_ri_cc +@r_r_ri_cc0 .. rd:5 ...... rs1:5 imm:1 rs2_or_imm:s13 &r_r_ri_cc cc=0 { [ @@ -165,6 +166,8 @@ ORN 10 ..... 0.0110 ..... . ............. @r_r_ri_cc XORN 10 ..... 0.0111 ..... . ............. @r_r_ri_cc ADDC 10 ..... 0.1000 ..... . ............. @r_r_ri_cc +MULX 10 ..... 001001 ..... . ............. @r_r_ri_cc0 + Tcc_r 10 0 cond:4 111010 rs1:5 0 cc:1 0000000 rs2:5 { # For v7, the entire simm13 field is present, but masked to 7 bits. diff --git a/target/sparc/translate.c b/target/sparc/translate.c index c87125a328..be00bd00fc 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -4210,6 +4210,7 @@ TRANS(XOR, ALL, do_arith, a, CC_OP_LOGIC, tcg_gen_xor_tl, tcg_gen_xori_tl) TRANS(ANDN, ALL, do_arith, a, CC_OP_LOGIC, tcg_gen_andc_tl, NULL) TRANS(ORN, ALL, do_arith, a, CC_OP_LOGIC, tcg_gen_orc_tl, NULL) TRANS(XORN, ALL, do_arith, a, CC_OP_LOGIC, tcg_gen_eqv_tl, NULL) +TRANS(MULX, 64, do_arith, a, 0, tcg_gen_mul_tl, tcg_gen_muli_tl) static bool trans_OR(DisasContext *dc, arg_r_r_ri_cc *a) { @@ -4700,11 +4701,6 @@ static void disas_sparc_legacy(DisasContext *dc, unsigned int insn) cpu_src1 = get_src1(dc, insn); cpu_src2 = get_src2(dc, insn); switch (xop & ~0x10) { -#ifdef TARGET_SPARC64 - case 0x9: /* V9 mulx */ - tcg_gen_mul_i64(cpu_dst, cpu_src1, cpu_src2); - break; -#endif case 0xa: /* umul */ CHECK_IU_FEATURE(dc, MUL); gen_op_umul(cpu_dst, cpu_src1, cpu_src2);