From patchwork Sat Aug 20 11:07:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 110763 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 C36A4B6F77 for ; Sat, 20 Aug 2011 21:07:33 +1000 (EST) Received: (qmail 16306 invoked by alias); 20 Aug 2011 11:07:32 -0000 Received: (qmail 16298 invoked by uid 22791); 20 Aug 2011 11:07:31 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, TW_XF, TW_ZJ, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-pz0-f49.google.com (HELO mail-pz0-f49.google.com) (209.85.210.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 20 Aug 2011 11:07:17 +0000 Received: by pzk6 with SMTP id 6so8173432pzk.8 for ; Sat, 20 Aug 2011 04:07:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.44.13 with SMTP id r13mr291875wfr.286.1313838437016; Sat, 20 Aug 2011 04:07:17 -0700 (PDT) Received: by 10.142.54.17 with HTTP; Sat, 20 Aug 2011 04:07:16 -0700 (PDT) Date: Sat, 20 Aug 2011 13:07:16 +0200 Message-ID: Subject: [PATCH, i386]: Use satisfies_constraint_L in ix86_binary_operator_ok 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! No functional change. 2011-08-20 Uros Bizjak * config/i386/i386.c (ix86_binary_operator_ok): Use satisfies_constraint_L. Tested on x86_64-pc-linux-gnu, committed to mainline. Uros. Index: i386.c =================================================================== --- i386.c (revision 177927) +++ i386.c (working copy) @@ -15787,16 +15787,12 @@ ix86_binary_operator_ok (enum rtx_code code, enum /* Source 1 cannot be a non-matching memory. */ if (MEM_P (src1) && !rtx_equal_p (dst, src1)) - { - /* Support "andhi/andsi/anddi" as a zero-extending move. */ - return (code == AND - && (mode == HImode - || mode == SImode - || (TARGET_64BIT && mode == DImode)) - && CONST_INT_P (src2) - && (INTVAL (src2) == 0xff - || INTVAL (src2) == 0xffff)); - } + /* Support "andhi/andsi/anddi" as a zero-extending move. */ + return (code == AND + && (mode == HImode + || mode == SImode + || (TARGET_64BIT && mode == DImode)) + && satisfies_constraint_L (src2)); return true; }