From patchwork Fri Jul 30 13:02:31 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 60354 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 8492BB70C1 for ; Fri, 30 Jul 2010 23:02:41 +1000 (EST) Received: (qmail 13516 invoked by alias); 30 Jul 2010 13:02:40 -0000 Received: (qmail 13349 invoked by uid 22791); 30 Jul 2010 13:02:39 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, TW_ZJ, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-px0-f175.google.com (HELO mail-px0-f175.google.com) (209.85.212.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 30 Jul 2010 13:02:33 +0000 Received: by pxi12 with SMTP id 12so537432pxi.20 for ; Fri, 30 Jul 2010 06:02:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.131.14 with SMTP id e14mr2218211wad.59.1280494951693; Fri, 30 Jul 2010 06:02:31 -0700 (PDT) Received: by 10.229.228.148 with HTTP; Fri, 30 Jul 2010 06:02:31 -0700 (PDT) Date: Fri, 30 Jul 2010 15:02:31 +0200 Message-ID: Subject: [PATCH, i386]: Remove unneeded comparison code iterators From: Uros Bizjak To: gcc-patches@gcc.gnu.org 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 Hello! These code iterators are unused. Also, the patch changes "comparison_operator" to "ordered_comparison_operator" for integer-only patterns. 2010-07-29 Uros Bizjak * config/i386/i386.md (int_cond): Remove code iterator. (fp_cond): Ditto. (cbranch4): Use ordered_comparison_operator predicate for operator0. (cstore4): Ditto for operator1. (movcc): Ditto. Bootstrapped and regression tested on x86_64-pc-linux-gnu {,-m32} and committed to mainline SVN. Uros. Index: i386.md =================================================================== --- i386.md (revision 162704) +++ i386.md (working copy) @@ -684,13 +684,6 @@ [(set_attr "length" "128") (set_attr "type" "multi")]) -;; All integer comparison codes. -(define_code_iterator int_cond [ne eq ge gt le lt geu gtu leu ltu]) - -;; All floating-point comparison codes. -(define_code_iterator fp_cond [unordered ordered - uneq unge ungt unle unlt ltgt]) - (define_code_iterator plusminus [plus minus]) (define_code_iterator sat_plusminus [ss_plus us_plus ss_minus us_minus]) @@ -941,7 +934,7 @@ (compare:CC (match_operand:SDWIM 1 "nonimmediate_operand" "") (match_operand:SDWIM 2 "" ""))) (set (pc) (if_then_else - (match_operator 0 "comparison_operator" + (match_operator 0 "ordered_comparison_operator" [(reg:CC FLAGS_REG) (const_int 0)]) (label_ref (match_operand 3 "" "")) (pc)))] @@ -960,7 +953,7 @@ (compare:CC (match_operand:SWIM 2 "nonimmediate_operand" "") (match_operand:SWIM 3 "" ""))) (set (match_operand:QI 0 "register_operand" "") - (match_operator 1 "comparison_operator" + (match_operator 1 "ordered_comparison_operator" [(reg:CC FLAGS_REG) (const_int 0)]))] "" { @@ -16028,7 +16021,7 @@ (define_expand "movcc" [(set (match_operand:SWIM 0 "register_operand" "") - (if_then_else:SWIM (match_operand 1 "comparison_operator" "") + (if_then_else:SWIM (match_operand 1 "ordered_comparison_operator" "") (match_operand:SWIM 2 "general_operand" "") (match_operand:SWIM 3 "general_operand" "")))] ""