From patchwork Wed Dec 29 07:30:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mingjie Xing X-Patchwork-Id: 76880 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 28C67B70EB for ; Wed, 29 Dec 2010 18:30:29 +1100 (EST) Received: (qmail 1038 invoked by alias); 29 Dec 2010 07:30:25 -0000 Received: (qmail 1025 invoked by uid 22791); 29 Dec 2010 07:30:24 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST, 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; Wed, 29 Dec 2010 07:30:18 +0000 Received: by wwe15 with SMTP id 15so9773228wwe.8 for ; Tue, 28 Dec 2010 23:30:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.168.140 with SMTP id u12mr8416605wby.189.1293607815940; Tue, 28 Dec 2010 23:30:15 -0800 (PST) Received: by 10.227.42.12 with HTTP; Tue, 28 Dec 2010 23:30:15 -0800 (PST) Date: Wed, 29 Dec 2010 15:30:15 +0800 Message-ID: Subject: [PATCH MIPS][LS3A] Update the the macro SHIFT_COUNT_TRUNCATED for loongson From: Mingjie Xing To: gcc-patches@gcc.gnu.org X-IsSubscribed: yes 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, This small patch updates the macro SHIFT_COUNT_TRUNCATED for loongson. Is it OK for coming 4.6? Regards, Mingjie 2010-12-29 Mingjie Xing * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change TARGET_LOONGSON_2EF to TARGET_LOONGSON_VECTORS. Index: config/mips/mips.h =================================================================== --- config/mips/mips.h (revision 168285) +++ config/mips/mips.h (working copy) @@ -2421,7 +2421,7 @@ typedef struct mips_args { /* Standard MIPS integer shifts truncate the shift amount to the width of the shifted operand. However, Loongson vector shifts do not truncate the shift amount at all. */ -#define SHIFT_COUNT_TRUNCATED (!TARGET_LOONGSON_2EF) +#define SHIFT_COUNT_TRUNCATED (!TARGET_LOONGSON_VECTORS) /* Value is 1 if truncating an integer of INPREC bits to OUTPREC bits is done just by pretending it is already truncated. */