From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13879 invoked by alias); 11 May 2010 12:35:28 -0000 Received: (qmail 13870 invoked by uid 22791); 11 May 2010 12:35:28 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-wy0-f175.google.com (HELO mail-wy0-f175.google.com) (74.125.82.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 May 2010 12:35:23 +0000 Received: by wyb34 with SMTP id 34so409473wyb.20 for ; Tue, 11 May 2010 05:35:20 -0700 (PDT) Received: by 10.227.133.137 with SMTP id f9mr5130084wbt.215.1273581320412; Tue, 11 May 2010 05:35:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.232.234 with HTTP; Tue, 11 May 2010 05:35:00 -0700 (PDT) From: "Paulo J. Matos" Date: Tue, 11 May 2010 12:35:00 -0000 Message-ID: Subject: Coverage of backend rules To: gcc@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2010-05/txt/msg00190.txt.bz2 Hi, I have a backend and I would like to have a systematic way to know if my testsuite covers all the define_insn and define_expand rules in my md file. What's the best way to achieve this? I initially thought I could use gcov to check the coverage of the code that is generated from the md file but I would like to know if there is any better way to do this since I doubt I am the only one wishing to do this. Cheers, -- PMatos