From patchwork Wed May 22 03:44:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 798144 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:92:b0:351:d90a:5487 with SMTP id m18csp277055wrx; Tue, 21 May 2024 20:45:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXu430rVImgjsYmG9DAfZEGRhYQUCGf7u0pkuVkafCV0b6LT/ftvBCB1sKYtku68AXzWpxwCCYLyspbE0Eqx5Lr X-Google-Smtp-Source: AGHT+IF7hTiY3pbv/ByFHXphMMDpJa+Nu+u7jEv1sM9FDYRRXaEdtoqW20VjxwIXZN/ljKMHevjl X-Received: by 2002:ac8:57d2:0:b0:43a:d3e6:3ecb with SMTP id d75a77b69052e-43f9e0b6562mr9622091cf.26.1716349535918; Tue, 21 May 2024 20:45:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716349535; cv=none; d=google.com; s=arc-20160816; b=cVgILiofZW3y2gMOVWuhu0UaV30HCRlFIGgknUf5mHvGK0BnYYqVQc0rTCL4xEGe/Y baFZvayG6giPIuwfGzmkgxEsZahLW96MQieh93TpasRkYOw+q5hJh4JiGBzxshotxQHu xpnQtpCQVk9gDK4aWmMBWt9XQwGizYuVfS4Fv8R1UFE/nSc8yXDRRGviFZxDWDK7i9oX rbhif37/xvMDIOG+9CPfFC31kix03oBj76o0OUIvU2xda79NBmZq7AkB3bCMhn1Udp1t XkIgu25GXNNi7lj44HS7EG8cllzyHkdqk0qrY6oOzRJ6B8iE50zL82VHrTh69LqTTAd8 TxzA== 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=PbgTPq0sjha5eVItxW9gUyB/eZqIzKak4Z6cwH63+pw=; fh=aRZTpPWhHXk/ANUEh7k3oMs8V5C8zTe7pkcDFIBzjKg=; b=0GOvHjMt1JWUBT3NOAjMs5feH54ji+KUE1IS1SgUlVwsX3DRZda0MdG1JZZys176HB AAcaC4LV5W+7QDMCVD/SA729hlGEfrzuo86inh6AyDHRCZl/cdDsuj2JncmbvgoKKkHs n9gk+TUvPYyLZ1+a/K82zFJvloG1RVw7f4GG3cn+1fQOHdPXpAqmAg/tCV/Tl5KdW2Is EmvXyTER0zzX6n17F6Wi5VIVmci8+OLtN56MTqTVVFiaVm6a/QI+2FW1C/d4mhz+F2Qq tsvODRK9ybXft0JZmNGPaxR+kslpCdtBQqpkF7nyJgVaUfMCElrur4beNlOfKqLppAtl h4dA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Y9cx/qhN"; 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 d75a77b69052e-43dfe0a5e27si44079831cf.420.2024.05.21.20.45.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 May 2024 20:45:35 -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="Y9cx/qhN"; 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 1s9cuR-0003WR-7t; Tue, 21 May 2024 23:44:59 -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 1s9cuP-0003VY-5s for qemu-devel@nongnu.org; Tue, 21 May 2024 23:44:57 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s9cuK-0004C7-3t for qemu-devel@nongnu.org; Tue, 21 May 2024 23:44:53 -0400 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-6f44b390d5fso907460b3a.3 for ; Tue, 21 May 2024 20:44:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716349490; x=1716954290; 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=PbgTPq0sjha5eVItxW9gUyB/eZqIzKak4Z6cwH63+pw=; b=Y9cx/qhNCxcJ2OdrsX//4YNIxBHMI5fRX33AfuezSFSSSvrfeji2va/b2/3xEQG+P3 Z9cBy09jcP0Wn3lk/eiuscNPZNHqt4pIBhVMn+Sg3KIykL9zVEFEyqKZnjkr3omVlUY7 IZnkb6DYMuM276Yl61bq6xyNiHe0FGhYVw/MrYU66g8BYuIQXXl7sXpa7pDIzSLkg33M /4OBTJbJ+8QDq4qh6RLrxTk/1dL0EZP02anwl4TiQk6/k2+XTWEATlVkD/w/i5a03P64 ikK+65Hj9bViMC2qQKeunhbrKrSK2HZPxcwOAPC7fr0CO7CmA8UmrcdcVAQgps75rLLm DDWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716349490; x=1716954290; 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=PbgTPq0sjha5eVItxW9gUyB/eZqIzKak4Z6cwH63+pw=; b=nx3UKWEX4TmKdmYjZ3TnPT9pRz5gLeQZUlVK0Tfj/vaK9b3IDMW7i4KqlXwKW61MBl j6PWEdwsXmNlFMwVWHo68XOsBTMe75VDVY4330JBfn/hMir/MRb+3tLREM3Wmhr6V1wB SQATnVrkwyMmLyAhg3Eh66CiUj/9zyEMntb3cWamM2QUk4i05LBYf9zct46r5X8R9Hs8 AT16JDmCcMnL8jtZ1xr7vwj2fu7MdSYAWZj5NhDzVB+YCfR66+MMqinlKPZwC+tcb3Aw eCcAx9lXM3BY0WV3qHJmEJOvXFZKTy4kXlx9VZ0SH1jW4+mA6M07nYp3WIvHR95zDYAh ofOw== X-Gm-Message-State: AOJu0YzCT/169ICu6qc4GRxQYdw2MTBrybtlJ1CnGILXK7MuMXTL2wGm ePZr8rqXxEwxhzjRbTRlC2RBzN+UyjyUzcUB5K5pHIwle+oAKhdN0QCKtlz9mpjMzETgi3ab5fa l X-Received: by 2002:a05:6a00:2396:b0:6ec:fa34:34b6 with SMTP id d2e1a72fcca58-6f6d6054bf1mr817025b3a.13.1716349490112; Tue, 21 May 2024 20:44:50 -0700 (PDT) Received: from stoup.. (174-21-72-5.tukw.qwest.net. [174.21.72.5]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f4d2af2bafsm21416617b3a.162.2024.05.21.20.44.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:44:49 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, mark.cave-ayland@ilande.co.uk Subject: [PATCH RISU v2 7/8] sparc64: Add a few logical insns Date: Tue, 21 May 2024 20:44:41 -0700 Message-Id: <20240522034442.140293-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240522034442.140293-1-richard.henderson@linaro.org> References: <20240522034442.140293-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x432.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 Just a token to verify the script is working. Signed-off-by: Richard Henderson --- sparc64.risu | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 sparc64.risu diff --git a/sparc64.risu b/sparc64.risu new file mode 100644 index 0000000..b45ea86 --- /dev/null +++ b/sparc64.risu @@ -0,0 +1,30 @@ +############################################################################### +# Copyright (c) 2024 Linaro Limited +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +############################################################################### + +# Input file for risugen defining Sparc64 instructions +.mode sparc64 + +ADD_r SPARC 10 rd:5 0 cc:1 ci:1 000 rs1:5 0 00000000 rs2:5 \ + !constraints { reg_ok($rd) && reg_ok($rs1) && reg_ok($rs2); } +ADD_i SPARC 10 rd:5 0 cc:1 ci:1 000 rs1:5 1 imm:13 \ + !constraints { reg_ok($rd) && reg_ok($rs1); } + +AND_r SPARC 10 rd:5 0 cc:1 0001 rs1:5 0 00000000 rs2:5 \ + !constraints { reg_ok($rd) && reg_ok($rs1) && reg_ok($rs2); } +AND_i SPARC 10 rd:5 0 cc:1 0001 rs1:5 1 imm:13 \ + !constraints { reg_ok($rd) && reg_ok($rs1); } + +OR_r SPARC 10 rd:5 0 cc:1 0010 rs1:5 0 00000000 rs2:5 \ + !constraints { reg_ok($rd) && reg_ok($rs1) && reg_ok($rs2); } +OR_i SPARC 10 rd:5 0 cc:1 0010 rs1:5 1 imm:13 \ + !constraints { reg_ok($rd) && reg_ok($rs1); } + +XOR_r SPARC 10 rd:5 0 cc:1 0011 rs1:5 0 00000000 rs2:5 \ + !constraints { reg_ok($rd) && reg_ok($rs1) && reg_ok($rs2); } +XOR_i SPARC 10 rd:5 0 cc:1 0011 rs1:5 1 imm:13 \ + !constraints { reg_ok($rd) && reg_ok($rs1); }