From patchwork Wed Sep 6 17:50:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edwin Lu X-Patchwork-Id: 13794 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp2471125vqo; Wed, 6 Sep 2023 10:51:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJQsHu9Vil1i4LePp1GR4OYC3cC7e5jXr42iuHzoBvum8O9qjaOWtY1VMAJ5y9k/1Mw9WX X-Received: by 2002:a2e:9811:0:b0:2bc:efa4:2c36 with SMTP id a17-20020a2e9811000000b002bcefa42c36mr2602981ljj.11.1694022694991; Wed, 06 Sep 2023 10:51:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694022694; cv=none; d=google.com; s=arc-20160816; b=M9ZapyPH4P/nk1idUJg8N+IdHY8h/zYYhaxliYc6dcWBtvSkOP5nMDyf7CzS25lm+Y q1gkVHNOoNgTycoxAhHmzKahkydyVG/TAmj9P810XbVh+ydTI7nACXzImpEXycuRC5Pu MAALwJ00VCVE7M7+cnLi95DciMDJyuIf4twn36gvOPMH75TEM8gFPiylLX+1yn7xygf1 kHg9bAnOe6kY1L2Y/NJWupuAKZKZdk2Y44gJzhuLeyekNWuEZl2jvdIvXDCEdMNwv7PV FUvfJK0rcnQe/kZynf+dEPO3qCvG5u/2evLEtB1gvpytbbXywMQlUKy4tih+HNoUEecv Qg8A== 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:message-id:date:subject:to:from:dkim-signature :dmarc-filter:delivered-to; bh=e75wLOoqEr6YqzuAdFQ9MA1COeeRKX3Ba5WCjx/jrvc=; fh=FJbxQR/u5tD8wyenJM73SKFkIvrOVh63uwew/lx6xYE=; b=WmF+EoPPkXq7xRot9X5S7hfVOWhRyD/DrGifNRV1mxnsoJvAUJkAt860ORw4S/OQUp RzfQC0YiKnF5w+uCMn9tBY4Z58BrIyjYICH3EbXEndHuZL4sx5w0rGrcGZq5R2z1utJW VPbxsj04RsG7xOIgxFINywOKCxTwywDaP23jDDY5GTOzEifdUJmkicpALMfU5FloenD1 IQxTK3pCzoweMBYD4T3+gDrwmaJe+qtYbNjeF1xVT3kyn3t9Q/gD/gF9AC2ma/QP8rOD CC4goZsLfHEWfC/QykgQT0Pe+iOlDVdzdg0Dh1TnNyGlSDh6sL4hUvoCHvo3ks1PUFNb IJ7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=frC9GWtL; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id oz9-20020a170906cd0900b009a190ce8512si9728171ejb.67.2023.09.06.10.51.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 10:51:34 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=fail header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=frC9GWtL; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 67F593853D05 for ; Wed, 6 Sep 2023 17:50:56 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id 5100E3858C3A for ; Wed, 6 Sep 2023 17:50:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5100E3858C3A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-68a440a8a20so99101b3a.3 for ; Wed, 06 Sep 2023 10:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1694022629; x=1694627429; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=e75wLOoqEr6YqzuAdFQ9MA1COeeRKX3Ba5WCjx/jrvc=; b=frC9GWtLNi3GtU5W2vNURG7IeQCzQAizyFIZk9AQPRpqO/od8efx1U3O8q1r4cSPDO z3YYzhysglelxbl8Ydhu8xBP5WzjJWbhEEUk+Ns/vt/MMycjMDogNJ/V9R4/lspu1/Z5 59IQx4qsl9J8BLsU+nFDzPIXB5aHX/O5KOfDXuaV1fJ6nRHkoxhAVBfdwGk5ZUHv2Udx FUjdjGLnucWFOBvLV4aV6LXxCzp6nltLricWiTYEm3QENQe+ri2ZS+AudDs1niCavj0L umxId+pvhXEhbb5Svk29pAReDox5METkCz/WDQ8LZ+7/Enyr9kGd52eGV7FdB53lYems WTmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694022629; x=1694627429; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e75wLOoqEr6YqzuAdFQ9MA1COeeRKX3Ba5WCjx/jrvc=; b=jbuJpQ8GL9Pjb7gf63iUogszD8SNR/LYcNbBteiqTDXKo+sPxAjdQkP3rQtbuNtnPP 1U5xGJbqOcbxTl4j7ZLvIAT9IXQaDWqRiogCCozZQze/UZHxaSlX1OEINkSzYNzgFnon OiRhRB0EPXtN8R9UcFVYR7aJy+dmy72XgdBFHftJlb9aOZncZjXBZvgLsOKKieo6Y9hF zSjBMWBWmwMqlOmWj6Lspqw0AAxB0CIfTbyavH4KoPs+WEQ77sS0X8hRNrPEFZ6me2t0 8UO6z6o85cqRy67hfv4RzntPGkgIxR8Ay1p733tZC9L1ILx3nKZZyWVJVRLdtbMvjhgx V1vQ== X-Gm-Message-State: AOJu0YyV5h7WFQ7pymxTGxvSCE+NQNLpDttjCbP0RjXd8lbTJEBj2Rmk hSoSXDFAXY0GiXic3bWQLnTO8TjBo2B3kJT2iDQ= X-Received: by 2002:a05:6a00:2192:b0:68c:57c7:1eb0 with SMTP id h18-20020a056a00219200b0068c57c71eb0mr17535230pfi.11.1694022629240; Wed, 06 Sep 2023 10:50:29 -0700 (PDT) Received: from ewlu.ba.rivosinc.com ([66.220.2.162]) by smtp.gmail.com with ESMTPSA id f8-20020aa782c8000000b00687a4b70d1esm11017428pfn.218.2023.09.06.10.50.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 10:50:28 -0700 (PDT) From: Edwin Lu To: gcc-patches@gcc.gnu.org Subject: [PATCH 0/5] RISC-V: Add Types to Untyped Instructions Date: Wed, 6 Sep 2023 10:50:18 -0700 Message-ID: <20230906175025.935887-1-ewlu@rivosinc.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gnu-toolchain@rivosinc.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776311541611324262 X-GMAIL-MSGID: 1776311541611324262 This series adds types to the remaining untyped instructions. Related Discussion: https://inbox.sourceware.org/gcc-patches/12fb5088-3f28-0a69-de1e-f387371a5eb2@gmail.com/ Also enables assert which checks to make sure every instruction has a type All patches were tested with rv32/rv64 linux/newlib multilib Additional extensions tested: gcv gc_zba_zbb_zbc_zbs Edwin Lu (5): RISC-V: Update Types for Vector Instructions RISC-V: Add Types for Un-Typed zc Instructions RISC-V: Add Types to Un-Typed Zicond Instructions RISC-V: Add Types to Un-Typed Zicond Instructions RISC-V: Remove Assert Protecting Types gcc/config/riscv/autovec-opt.md | 42 ++++++++----- gcc/config/riscv/autovec.md | 28 ++++++--- gcc/config/riscv/riscv.cc | 2 - gcc/config/riscv/riscv.md | 9 ++- gcc/config/riscv/zc.md | 102 ++++++++++++++++---------------- gcc/config/riscv/zicond.md | 8 +-- 6 files changed, 110 insertions(+), 81 deletions(-)