From patchwork Tue Sep 13 17:53:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 114519 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 09E64B71C1 for ; Wed, 14 Sep 2011 03:54:06 +1000 (EST) Received: (qmail 24361 invoked by alias); 13 Sep 2011 17:53:59 -0000 Received: (qmail 24347 invoked by uid 22791); 13 Sep 2011 17:53:58 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-ww0-f51.google.com (HELO mail-ww0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Sep 2011 17:53:42 +0000 Received: by wwf10 with SMTP id 10so892590wwf.8 for ; Tue, 13 Sep 2011 10:53:41 -0700 (PDT) Received: by 10.227.2.65 with SMTP id 1mr1269855wbi.47.1315936420070; Tue, 13 Sep 2011 10:53:40 -0700 (PDT) Received: from localhost (rsandifo.gotadsl.co.uk. [82.133.89.107]) by mx.google.com with ESMTPS id o16sm1225717wba.12.2011.09.13.10.53.38 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Sep 2011 10:53:39 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, nickc@redhat.com, rdsandiford@googlemail.com Cc: nickc@redhat.com Subject: [IQ2000] Use match_test rather than eq/ne symbol_ref Date: Tue, 13 Sep 2011 18:53:37 +0100 Message-ID: <87vcsw72hq.fsf@firetop.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org As per the subject. Tested by making sure that there were no new warnings building iq2000-elf, and that there were no changes in the assembly output for the C and C++ testsuite. OK to install? Richard gcc/ * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref throughout file. Index: gcc/config/iq2000/iq2000.md =================================================================== --- gcc/config/iq2000/iq2000.md 2011-09-13 18:43:40.000000000 +0100 +++ gcc/config/iq2000/iq2000.md 2011-09-13 18:52:13.000000000 +0100 @@ -161,7 +161,7 @@ (define_attr "dslot" "has_dslot,ok_in_ds (define_attr "branch_likely" "no,yes" (const - (if_then_else (ne (symbol_ref "GENERATE_BRANCHLIKELY") (const_int 0)) + (if_then_else (match_test "GENERATE_BRANCHLIKELY") (const_string "yes") (const_string "no"))))