From patchwork Thu Feb 2 03:00:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Bergner X-Patchwork-Id: 139071 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 A72A6104785 for ; Thu, 2 Feb 2012 14:01:57 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1328756519; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Received:Received:Message-ID:Subject:From:To: Cc:Date:Content-Type:Content-Transfer-Encoding:Mime-Version: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=2lU6bvmw2cC9IuMke3dJ oBWv6CY=; b=dW5UMB2UddSr3m0LfXCMN2AuNQeoVXgK3CoI5Py6CesFFzdVNqu1 ZfDJxLP91BzaxNLFbxiaw8l5IKFvePcanMInPwP+D05tOhpr3T3mKMvw7PF0rIt8 4ZFms4hOsZ0X2V925RtBTVJFGvZNX1Ab3KaqFbXjqs3yNBwIPOgbxAc= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Received:Received:Message-ID:Subject:From:To:Cc:Date:Content-Type:Content-Transfer-Encoding:Mime-Version:X-Content-Scanned:x-cbid:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=D8A5JzavIy3asOYDpdNX20O5ev5GYxoUi3EC7NxfA/S49xQSp6U7boAG/Dws7n miOMIi/jnSrq29Txc1kuB3ejqOrVlrWEY9BsiwmQF2UEe2v9F7G/kc5zKB5IfY64 Ar0iB5U0ASFBV0Tq36Ddss9Mbg823g2wAzjlcnDA6/BnM=; Received: (qmail 18327 invoked by alias); 2 Feb 2012 03:01:49 -0000 Received: (qmail 18312 invoked by uid 22791); 2 Feb 2012 03:01:47 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, TW_DF, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e36.co.us.ibm.com (HELO e36.co.us.ibm.com) (32.97.110.154) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 02 Feb 2012 03:01:34 +0000 Received: from /spool/local by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 1 Feb 2012 20:01:30 -0700 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e36.co.us.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 1 Feb 2012 20:00:46 -0700 Received: from d03relay01.boulder.ibm.com (d03relay01.boulder.ibm.com [9.17.195.226]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id AEDF919D804C for ; Wed, 1 Feb 2012 20:00:42 -0700 (MST) Received: from d03av06.boulder.ibm.com (d03av06.boulder.ibm.com [9.17.195.245]) by d03relay01.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q1230Dpm056364 for ; Wed, 1 Feb 2012 20:00:13 -0700 Received: from d03av06.boulder.ibm.com (loopback [127.0.0.1]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q1230Ebc021635 for ; Wed, 1 Feb 2012 20:00:14 -0700 Received: from [192.168.1.103] (vorma.rchland.ibm.com [9.10.86.174]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q1230DPE021541; Wed, 1 Feb 2012 20:00:14 -0700 Message-ID: <1328151610.4764.28.camel@otta> Subject: [PATCH, rs6000] Add support for the POWER7 dcffix instruction From: Peter Bergner To: "gcc-patches@gcc.gnu.org" Cc: David Edelsohn , Michael Meissner Date: Wed, 01 Feb 2012 21:00:10 -0600 Mime-Version: 1.0 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12020203-3352-0000-0000-0000025542C3 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 The POWER Toolchain IPC team who is adding POWER7 support to valgrind reminded me that Power ISA 2.06 added a new convert from integer to decimal64 dfp instruction. The following patch adds support for it. This passed bootstrap and regression testing with no regressions. Is this ok? If so, when can this be committed? Now or stage1? Peter * config/rs6000/dfp.md (floatdidd2): New define_insn. Index: gcc/config/rs6000/dfp.md =================================================================== --- gcc/config/rs6000/dfp.md (revision 183808) +++ gcc/config/rs6000/dfp.md (working copy) @@ -546,6 +546,13 @@ (define_insn "*cmptd_internal1" "dcmpuq %0,%1,%2" [(set_attr "type" "fpcompare")]) +(define_insn "floatdidd2" + [(set (match_operand:DD 0 "gpc_reg_operand" "=d") + (float:DD (match_operand:DI 1 "gpc_reg_operand" "d")))] + "TARGET_DFP && TARGET_POPCNTD" + "dcffix %0,%1" + [(set_attr "type" "fp")]) + (define_insn "floatditd2" [(set (match_operand:TD 0 "gpc_reg_operand" "=d") (float:TD (match_operand:DI 1 "gpc_reg_operand" "d")))]