From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by sourceware.org (Postfix) with ESMTPS id ECB2A385E82E for ; Fri, 12 Jan 2024 18:09:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ECB2A385E82E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org ECB2A385E82E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::232 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705082944; cv=none; b=hykTwiiAU+3hb2z8W1j8t1qyhZlDxEnreGcP9ftMbbQkEL+XqXvFNgj7St9fmveM5+fV5eU5HpjFrcIFD3fj5pz0Uw4KOyCXP3SUmvgWBGLYj4p8tLXJhmtXJCIz+d5QOrPW9EaiBHVFf6Ea/QtEs2mB++Bg4gfvjbJ9Dfbxi+s= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705082944; c=relaxed/simple; bh=OHRFatTz7JtNa1aIVL9qAyf44l35F17JZ+nGYRSOXwo=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=vURYTacWPGq126ecRnw6nQLzzJcHvTfigyEY62FoYU2migmOmtWKmRjHAoMVyi49deb3QoAEtLqfrmEjMCnjcc5Q3mDVM3SNwfjOQVpzUDFBjeaEgQ7jWBTZQ4rZulwifwBIlVj/pgaf3dcMnYOd46BrcoAFXXW8wGb9bBvC0VY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3bbbd4d2b4aso5695953b6e.0 for ; Fri, 12 Jan 2024 10:09:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1705082942; x=1705687742; darn=gcc.gnu.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=3/z5rPxUgdIaQHPDz+sQd164J4Kngqa/U2alNoHQB7c=; b=vrvNYg2Ud2JRxAL/Zw6KC5MkvsrhPx5+h1xmtH0DaMCjxRU7lPaZjq4h9hsSW0yEwY QMq/dp7pHMtFrNv+/CFPOZryYWlJGCsfiWVaNgFRQXTvMZGRyaUNbyFiQg5jHtkp7GlY li0QXZlGAF+0XNhzwTXOseE1tjLik3xsvfBAaFWOpXcj4iRxTMaBJMsP6E9jZQK/zdUs h9s6FYhXrPgh6e1K+SjjN2zGatF7aqZR72Boj9pKvOIIucoAIfcxOTm+b34BixJzQJUW GWPLPmd8OkdVX88iy5HFbLBLHgUtPf6eSrM5oolrFWw7hB4BROs7h46l8uD4+tBjnQbk 4ctg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705082942; x=1705687742; 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=3/z5rPxUgdIaQHPDz+sQd164J4Kngqa/U2alNoHQB7c=; b=gnaO8zoSYaNQG83XwCzQwr8INgvhMrmCN1k41GrurpXCiP/KEnoIyYNGuyKh7T7GPA TfY48q6r1rxd3xpJ7ZkLTouZOfhq63Db67IHDyRlZdiaRwl9PsIVeAj0oZ8YejMAh+7E PEZieZ7m8+ovxaIjEz94pZxd0ak23Vw8nLY5bynWIZjOguWuvE2f/8pdHdU5Sl1mbt0u oM9YxRFt0j+Wz/lLJUi9dXB0rXlJA5h3C2jHD6+OS3QqYUpKxXlJN2D86jj5SyPXe07h IYS3kSEWsLo9LE7THippw4J480fkkKRhxpF6XS53QNmZLKD97tQrF0MwBO7vhJ1JIIf+ NLqw== X-Gm-Message-State: AOJu0Yy/rxwu3DQfW4vCS4db/uObatHIudnqtlUdzaJzDikALyHkIe5f lvt/5u44RRiiRgAQj18cTrPBWm1XzlZBHAmA5yBYpm9KNN4= X-Google-Smtp-Source: AGHT+IHEPt5WINb5CZ3gGjxbq8dPE7ioxZbf5p70MUyKdp5N/TLMAH+7t1PibhQvNnyGRo/bPlJbMg== X-Received: by 2002:a05:6808:2f0c:b0:3bd:42ed:5a30 with SMTP id gu12-20020a0568082f0c00b003bd42ed5a30mr2105156oib.29.1705082942307; Fri, 12 Jan 2024 10:09:02 -0800 (PST) Received: from ewlu.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id k14-20020a056808068e00b003bbea886e13sm660361oig.36.2024.01.12.10.09.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 10:09:01 -0800 (PST) From: Edwin Lu To: gcc-patches@gcc.gnu.org Cc: gnu-toolchain@rivosinc.com, Edwin Lu Subject: [PATCH V3 4/4] RISC-V: Enable assert for insn_has_dfa_reservation Date: Fri, 12 Jan 2024 10:08:43 -0800 Message-Id: <20240112180844.2005246-5-ewlu@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240112180844.2005246-1-ewlu@rivosinc.com> References: <20240112180844.2005246-1-ewlu@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Enables assert that every typed instruction is associated with a dfa reservation gcc/ChangeLog: * config/riscv/riscv.cc (riscv_sched_variable_issue): enable assert Signed-off-by: Edwin Lu --- V2: - No changes V3: - No changes --- gcc/config/riscv/riscv.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index ee1a57b321d..c428d3e4e58 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -8215,9 +8215,11 @@ riscv_sched_variable_issue (FILE *, int, rtx_insn *insn, int more) /* If we ever encounter an insn without an insn reservation, trip an assert so we can find and fix this problem. */ -#if 0 + if (! insn_has_dfa_reservation_p (insn)) { + print_rtl(stderr, insn); + fprintf(stderr, "%d", get_attr_type (insn)); + } gcc_assert (insn_has_dfa_reservation_p (insn)); -#endif return more - 1; } -- 2.34.1