From patchwork Sat Jul 9 20:48:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 104025 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 964B6B7199 for ; Sun, 10 Jul 2011 06:48:34 +1000 (EST) Received: (qmail 4603 invoked by alias); 9 Jul 2011 20:48:33 -0000 Received: (qmail 4595 invoked by uid 22791); 9 Jul 2011 20:48:33 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga14.intel.com (HELO mga14.intel.com) (143.182.124.37) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 09 Jul 2011 20:48:15 +0000 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 09 Jul 2011 13:48:15 -0700 X-ExtLoop1: 1 Received: from gnu-4.sc.intel.com ([10.3.194.56]) by azsmga001.ch.intel.com with ESMTP; 09 Jul 2011 13:48:14 -0700 Received: by gnu-4.sc.intel.com (Postfix, from userid 500) id 95C8420290; Sat, 9 Jul 2011 13:48:14 -0700 (PDT) Date: Sat, 9 Jul 2011 13:48:14 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: [x32] PATCH: Add comments to *movsi_internal Message-ID: <20110709204814.GA10459@lucon.org> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 Hi, I checked in this patch to add comments to *movsi_internal. H.J. --- commit 3c92ec7ad8591d3b2e3c3bc3c6b25e2bf38335cf Author: H.J. Lu Date: Sat Jul 9 08:03:46 2011 -0700 Add comments to *movsi_internal. diff --git a/gcc/ChangeLog.x32 b/gcc/ChangeLog.x32 index fdff5af..57ecbe4 100644 --- a/gcc/ChangeLog.x32 +++ b/gcc/ChangeLog.x32 @@ -1,5 +1,9 @@ 2011-07-09 H.J. Lu + * config/i386/i386.md (*movsi_internal): Add comments. + +2011-07-09 H.J. Lu + * config/i386/i386.c (ix86_simplify_base_disp): Renamed to ... (ix86_simplify_base_index_disp): This. Handle index. (ix86_simplify_base_disp): Updated. diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 4230c8f..f00c73b 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -2197,9 +2197,11 @@ [(const_int 0)] "ix86_split_long_move (operands); DONE;") +;; Use "Ys" constraint to disallow store with X32 PIC operand as +;; immediate. (define_insn "*movsi_internal" [(set (match_operand:SI 0 "nonimmediate_operand" - "=r,m ,*y,*y,?rm,?*y,*x,*x,?r ,m ,?*Yi,*x") + "=r,m ,*y,*y,?rm,?*y,*x,*x,?r ,m ,?*Yi,*x") (match_operand:SI 1 "general_operand" "g ,rYs,C ,*y,*y ,rm ,C ,*x,*Yi,*x,r ,m "))] "!(MEM_P (operands[0]) && MEM_P (operands[1]))"