From patchwork Fri Sep 8 18:16:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edwin Lu X-Patchwork-Id: 13807 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp713696vqo; Fri, 8 Sep 2023 11:18:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpk7bfwrjyMCbtVvbIa530G6jhfoWvP0u18ktACMRJLghm7/2rjGHTt4dfS/jkgeVM90ab X-Received: by 2002:a05:6512:3f12:b0:4e0:a426:6ddc with SMTP id y18-20020a0565123f1200b004e0a4266ddcmr2718337lfa.0.1694197115805; Fri, 08 Sep 2023 11:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694197115; cv=none; d=google.com; s=arc-20160816; b=VLigjyfrNFLP7PemUTa+/N8oQVJf448xu19SWJ38G8ayPAzeW5+3jigs8I+u33AmKq 4f0PC6yd4Aoo7Ndh4BDCgJp5honGwAKl7VD+RuMzO6MO2J3HDYQ99/r49cmPNdPseU1N tWv2ScJbdW8x4Qk6qKJxFHpOmgKrIhgRbeDGDXa0ghMFNHOZUSgbjx1IN3sIWFmR+5bX PmConQn3gaUbbPXRnSx5pEiDt1/kOe2pCWY7H4vj+aYeaLYtYlEdYHnLLEqajJJKJjk3 4LPQN5KZFs1cOh3MHY87l66K8uwlOAZoT2uFjyRn37h35YocKNjA/Aq/scF8zH0T2ZKt uQdA== 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=/6L1yF6roxRjC7cNVrvLZpS0+29+efjrEC2EZdbxzi8=; fh=FJbxQR/u5tD8wyenJM73SKFkIvrOVh63uwew/lx6xYE=; b=v7BWsfxPMBwzznGCT5xqrZVYW4lUuJlLrlU/VwTGLRZosarTxdmCw1n+7bgVcD785T JkQSZsASNHEvB5g9wy5X1g4LF8Pff3VGKLDdCIYNpT8LRBDIYDNCuhXfcBt01IS5oS0Z DWUhQBTngCCguEoU3kWKveoa5aP5DCe0u/tiwamkvkNuNXPGzQDqCWAJBlrNU81VjON8 f4HIKqoWOsbMdPe+g3ckCd09TcCH1YXOG+ikFFEvOTCm3B3QRFIB15dTD1LJyacSd0BR jhvqe4YJBVC4es0QedNac4fzO6TzmGPxmdEUaRsWP9Rpf5YQNh/0l+MzFL/BPJ4kavo5 ToTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=x+i0Lwkd; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id a17-20020aa7d911000000b0052e86c2fbbdsi1927736edr.344.2023.09.08.11.18.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 11:18:35 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=fail header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=x+i0Lwkd; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 E66683851C00 for ; Fri, 8 Sep 2023 18:17:34 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id 69B44385770D for ; Fri, 8 Sep 2023 18:17:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 69B44385770D 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-pl1-x62a.google.com with SMTP id d9443c01a7336-1c1f8aaab9aso20378875ad.1 for ; Fri, 08 Sep 2023 11:17:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1694197022; x=1694801822; 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=/6L1yF6roxRjC7cNVrvLZpS0+29+efjrEC2EZdbxzi8=; b=x+i0Lwkd5iNpkFcZy0mMAhg+E7PW7RJ9E/AVseNh/8DZ8qxISGjSDvGko/DtcmO14/ jtew9OeTmKb42kjK4kHMNqnTbqe5yqN0G1QZxTkvroc3MNtUGfQE6ZvTKsgcb1BOSRcA i9JWC+a3E5ChS4r0lMFjoGdJzs8rouyQjJRQCVBhZ90Qpng5T5o3b4rVMKnkI/RAagG1 xi3yo7vh8pWkPeFQMjf/LD+LrC2SfDgWE47haYKVJ28o1JiVBoIWMo8dr8HNCC0/IzAy JqS4ZIWg3YB4ISs1V7G1hUjKmoaXQWbitSvuiV4VAvonjOH5WDRB3bIJklkx9ORbHwLs O3lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694197022; x=1694801822; 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=/6L1yF6roxRjC7cNVrvLZpS0+29+efjrEC2EZdbxzi8=; b=mFts348ziGG2D4MlLG6bTSR6QhncpEk9SsPbo9SaoK2Edb/zcpheAx3BNQUGzo5fv6 WuoK53bIeaQV/FLm0Rm0NXLiDhKHYmOq0+cbAu0VNCw2AY23rpXEjsxnoIjSrbtjfRMB ROPsI/xQBU+Ogfj/uLzt1VUbOfGVDVIxyiT8Xah3Ag+9RhsQWOFhYhzlRh9DAiYLDd2o nSKQakV2pxcKSYG+7krCJXCdt7FIa1Fu2VxYKmpEiq3ZHxshaNjMSX3cqkZGu9thoNSe zKoD6AiQq72cG1gsm0rsJZ8Ggy8DZPfrUXgTOUYH7GyypRktE1bYFtq8WpzE8hXPcH1w VxSQ== X-Gm-Message-State: AOJu0Yw1zafqlMs3p1iZjplgYvBIwQEReSZ7sVxslYIRZAdB6Yaz4/JU 2/1zNMKDVE+HxpJ9/g1oDKdOvSuLzmmWeUQSKto= X-Received: by 2002:a17:903:234b:b0:1bd:e9de:ccd7 with SMTP id c11-20020a170903234b00b001bde9deccd7mr4246551plh.24.1694197022247; Fri, 08 Sep 2023 11:17:02 -0700 (PDT) Received: from ewlu.ba.rivosinc.com ([66.220.2.162]) by smtp.gmail.com with ESMTPSA id j7-20020a170902da8700b001bdeedd8579sm1027393plx.252.2023.09.08.11.17.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 11:17:02 -0700 (PDT) From: Edwin Lu To: gcc-patches@gcc.gnu.org Subject: [PATCH v2 0/5] RISC-V: Add Types to Untyped Instructions Date: Fri, 8 Sep 2023 11:16:44 -0700 Message-ID: <20230908181659.3345602-1-ewlu@rivosinc.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-5.7 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: 1776494434501801730 X-GMAIL-MSGID: 1776494434501801730 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 | 72 ++++++++++++++-------- gcc/config/riscv/autovec.md | 52 ++++++++++------ gcc/config/riscv/riscv.cc | 2 - gcc/config/riscv/riscv.md | 10 +++- gcc/config/riscv/zc.md | 102 ++++++++++++++++---------------- gcc/config/riscv/zicond.md | 8 +-- 6 files changed, 147 insertions(+), 99 deletions(-)