From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 4D66338560BD for ; Wed, 25 May 2022 10:44:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4D66338560BD Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-344-52T9VI3KNJaFfcisOJqSWQ-1; Wed, 25 May 2022 06:44:12 -0400 X-MC-Unique: 52T9VI3KNJaFfcisOJqSWQ-1 Received: by mail-qv1-f70.google.com with SMTP id dy10-20020ad44e8a000000b004625c7238edso2686768qvb.0 for ; Wed, 25 May 2022 03:44:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=d0FeUE6ZzlRZQzqh/Elf6jd2RxILchaDSnbAKAl3Gi0=; b=1HpI61dYXehQe9Hmz/f120IeYMJqn5Yzma2QXFTOUSZmXo4JvD5+XqRi30NU/knx9Z 8OLVZETQ5EE/ZCvz2QR0HRkMosShbldPwQqsk9JwVkQw6Em9126B81/RoQFbg+y7mn06 b3Sjdlknk+hRZZmENoHlONviVNctBGjYy3dTiJxuTMLRnIVf+RXsEqQe/1ViL9KiJkuI 77V/Eir9t3xVOEyf578wY1a3Yx/E6uVc0zzCVz94gednB0JsC5dJle2uKPnozTWwMg5e pukEBtPKSm2ZiecPYKn1kMpFDx/O8iRuXicxeOnOSgkg1+h4xfqPjGIaxUuh9EoMM22q Gniw== X-Gm-Message-State: AOAM530Jzvo5GPreEKq/CErJiwDG3qjWqvlpfYyQwWruqBGyEsFRAMh1 HW+Am8zui6BwjZSYvNQ3xznsKCUnaLsWJZLrGr6lBRmXazbjg30n0ewOBLObo3ky68vTUy+NQCx NI+PvM9c= X-Received: by 2002:a05:622a:4ce:b0:2f9:3e6e:475 with SMTP id q14-20020a05622a04ce00b002f93e6e0475mr8237386qtx.469.1653475451803; Wed, 25 May 2022 03:44:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtCLX7VJmH75rj+El+m3gFNBA3lW4Jiw7mlMh0hVrxxzScgqaQEgLV1eQp0gP6gxSZP8PJUQ== X-Received: by 2002:a05:622a:4ce:b0:2f9:3e6e:475 with SMTP id q14-20020a05622a04ce00b002f93e6e0475mr8237377qtx.469.1653475451564; Wed, 25 May 2022 03:44:11 -0700 (PDT) Received: from t14s.localdomain (c-73-69-212-193.hsd1.nh.comcast.net. [73.69.212.193]) by smtp.gmail.com with ESMTPSA id cj23-20020a05622a259700b002f39b99f689sm1215561qtb.35.2022.05.25.03.44.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 03:44:10 -0700 (PDT) Message-ID: Subject: Re: Adding log files to gcc dump and adding testcase-rtl From: David Malcolm To: RICHU NORMAN , gcc@gcc.gnu.org Date: Wed, 25 May 2022 06:44:10 -0400 In-Reply-To: References: User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, 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 X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2022 10:44:16 -0000 On Wed, 2022-05-25 at 10:25 +0530, RICHU NORMAN wrote: > Hi, > I am a beginner in gcc. I am trying to add an instruction to riscv- > gcc.It > would be helpful could help with a few tips . Hi Richu - welcome to GCC development. FWIW I've written a guide for new GCC contributors which you might find helpful: https://gcc-newbies-guide.readthedocs.io/en/latest/index.html Caveat: I'm much more familiar with the frontends/diagnostics, rather than the backends/RTL, so there may be a "frontend" bias in that guide. > 1.How to write comments to rtl or create a custom log file to log > comments > to rtl dump? > 2.How to run testsuite ? > 3.Is there a way to directly run an rtl test case? Like giving rtl > input > and checking the generated asm.(Like in the attachment which is > posted in > bugzilla[ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82815 ]) > Please suggest a way to run the gcc-testsuite with these cases. Pfa I wrote some notes on dealing with the testsuite, and on running individual cases here: https://gcc-newbies-guide.readthedocs.io/en/latest/working-with-the-testsuite.html Hope this is helpful; good luck Dave