From patchwork Fri Oct 13 21:27:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 733268 Delivered-To: patch@linaro.org Received: by 2002:a5d:54d1:0:b0:31d:da82:a3b4 with SMTP id x17csp1678159wrv; Fri, 13 Oct 2023 14:31:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHrYnR2yv/yjflD8tRZSAZDvgo/Mw5xxi+o8bbps0jk5D7rA+TtPH7aKPGtdlMQuMKM9YC X-Received: by 2002:a0c:fc49:0:b0:651:800d:ffc9 with SMTP id w9-20020a0cfc49000000b00651800dffc9mr2309168qvp.22.1697232669615; Fri, 13 Oct 2023 14:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697232669; cv=none; d=google.com; s=arc-20160816; b=TundvDdajH0yv49rYJF3OSRGVt3qfIqFRslN4MW4y7ltulsC+jh0OPSvU5jvd71RVx L/URQx58X3OtrrKZDaaPzsNwEE3tVecVEVvFV12/Ty7lK/AHqV8JkPbYeuDdGg8Wnrfy kipILuBAxCF6ZSndBKzkM4SOE7fyCPJn3L6ZS4kFXGL5MKlI8lhNWDNXEhe1AvZ1EqiW OOg+GvAKTwJxo3VD0DW5zfcZ/BpZSkN3dvmYcSnoVd2fTK+izL7StlMqXQuquER8m4Bh PKBZdZeEN6k9cA1xUao6EDPjmvazDBalP/a9lHUkcPbaIMjKvSdUY9uDGyIqrorODaxU 4o7A== 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=aR/6YK4ZSvvWC0fnzOM6CLDYWM4TIoHTM+fei4eVb6E=; fh=OY/jf0qYEhT53LcIJp8d/e39mN3vEzshkseI36O8N8s=; b=aU6c5UjHslNhwjIydzRbJSgAbzVpR/vdt3gZJOsR6a7lBtYuLn3D54nve4ed4xhXgd FblyHzxe5SQ5DOzHhJ7vWZXYic24P5vKjxhAQogb/LR/JpWVs2RinaVTuN+7htxuUsW9 wOs2liSTSyCtld0raHMfzHEf+ypo0tiPL0BPqgFRhzezli1W5SLikrbkcZkriTmhQKsj RSOuIlvpqUTu24RqHyUfV0ZiV97/tgVCqaaNJkYYKNucOyCFP7L2tH4txY/+0qM35VfT 6pNRvmAK1i+7k60bFgC155P0lPnCLbxUQwT71khrmgs/ybh4GnTKUgTfq77lTmxd25Jp ghrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=imxDT4lR; 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 tl19-20020a05620a3b1300b007758e5dba35si1721464qkn.484.2023.10.13.14.31.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Oct 2023 14:31:09 -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=imxDT4lR; 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 1qrPih-0006LT-2R; Fri, 13 Oct 2023 17:29: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 1qrPif-0006Kt-8K for qemu-devel@nongnu.org; Fri, 13 Oct 2023 17:29:17 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrPic-0000Ur-PJ for qemu-devel@nongnu.org; Fri, 13 Oct 2023 17:29:16 -0400 Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-27d1aee5aa1so1920274a91.0 for ; Fri, 13 Oct 2023 14:29:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697232552; x=1697837352; 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=aR/6YK4ZSvvWC0fnzOM6CLDYWM4TIoHTM+fei4eVb6E=; b=imxDT4lRbq37FnT0p7V5ZDCtyMRF7G+c92yMK6BB9gxxd+wBvVxcDcSiw+AB6ZocyE YZXi6PDluEHBN9ZopnwDWhnNn/SvlmxEcw72yRfr8EId0VmvOTOB0Ay4/g1UpZtol/7A B16PoeOOYmf/6UukVc75EItVXzZuGhb2Ys0MQU1VqhfLK1im/8OOFiQzhF+0MI5yCeEk cZypT7W64ADx/RlMTiBXjHp9Uam/SYMaMCcF59ad/HpzMSoTJ1hIoWxsyucX0Q2oT5ux uGS7oPR9LODhF/HPDQhuQCyQkdCEGqEt7YgxqCAoeNgI3OQIrn+IUo3jscorX2fGtEt1 9WFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697232552; x=1697837352; 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=aR/6YK4ZSvvWC0fnzOM6CLDYWM4TIoHTM+fei4eVb6E=; b=VByIm6usgw3STPnjOOVO867XLnBiHd22tjjqIjCLBOGi/OPX15PtyjFcvhSQ48VLmv GfDT6HIHmziRce842C2/jKGsP6DEC2CuZ7cH3ro9k9GrWxboaozlhyVBGr49gzmedSSX bW3KdXqBX5jzZa+jlfNz8jNsMawWpzvl3JWXpdp6NcWTVbzZaMBRJPfQ8AAKcOIKtKWS DrkL+8nvR4QOayw8j23CuSmhkBsbxgQqeDP6Txg7rrV14F+fpsyAeasnIN/nuhADkfGM ZGUrDZsX53Li/eg75NZeZOEG/9luwkd1G6QhzRuluuzKELPL0oomEaYeziwsX+FGvFOq O3NA== X-Gm-Message-State: AOJu0YzYOnQ/8hFZEQa1jNvayRr+QQQjvQKQH+u7qDJcDuzojQHoZMES 5CY/ow7fA3vV3eUQ+4Lm+Oz0c6jQsvraTfYUl/g= X-Received: by 2002:a17:90a:fb87:b0:27c:ecec:8854 with SMTP id cp7-20020a17090afb8700b0027cecec8854mr1994183pjb.7.1697232552446; Fri, 13 Oct 2023 14:29:12 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id b185-20020a6334c2000000b0058988954686sm70753pga.90.2023.10.13.14.29.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 14:29:12 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: mark.cave-ayland@ilande.co.uk, atar4qemu@gmail.com Subject: [PATCH 26/85] target/sparc: Move MULX to decodetree Date: Fri, 13 Oct 2023 14:27:47 -0700 Message-Id: <20231013212846.165724-27-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231013212846.165724-1-richard.henderson@linaro.org> References: <20231013212846.165724-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.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 | 1 + target/sparc/translate.c | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/target/sparc/insns.decode b/target/sparc/insns.decode index 87108da5da..d907a4a69f 100644 --- a/target/sparc/insns.decode +++ b/target/sparc/insns.decode @@ -174,3 +174,4 @@ XORN 10 ..... 000111 ..... . ............. @r_r_ri XORNcc 10 ..... 010111 ..... . ............. @r_r_ri ADDC 10 ..... 001000 ..... . ............. @r_r_ri ADDCcc 10 ..... 011000 ..... . ............. @r_r_ri +MULX 10 ..... 001001 ..... . ............. @r_r_ri diff --git a/target/sparc/translate.c b/target/sparc/translate.c index 37917ad397..7a7d517fac 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -4149,6 +4149,7 @@ TRANS(SUB, ALL, do_arith, a, tcg_gen_sub_tl, tcg_gen_subi_tl) TRANS(ANDN, ALL, do_arith, a, tcg_gen_andc_tl, NULL) TRANS(ORN, ALL, do_arith, a, tcg_gen_orc_tl, NULL) TRANS(XORN, ALL, do_arith, a, tcg_gen_eqv_tl, NULL) +TRANS(MULX, 64, do_arith, a, tcg_gen_mul_tl, tcg_gen_muli_tl) TRANS(ADDcc, ALL, do_cc_arith, a, CC_OP_ADD, gen_op_add_cc, NULL) TRANS(ANDcc, ALL, do_cc_arith, a, CC_OP_LOGIC, tcg_gen_and_tl, tcg_gen_andi_tl) @@ -4620,11 +4621,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 */ gen_op_umul(cpu_dst, cpu_src1, cpu_src2); if (xop & 0x10) {