From patchwork Wed Sep 18 00:03:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Meissner X-Patchwork-Id: 275570 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1920A2C0084 for ; Wed, 18 Sep 2013 10:04:05 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=Ec0KY8T1X+9o5oaEv8iXb/7sru2gHW5c2vAnD3/8UjvWhD6+e3BeZ NJmWOQQ5VZXjFyVeIiNxv4bP/qC7JGxLmX9xTqgHTvMogCqPPc/CKRTbvoHaRtu0 tBeHhZvppnPVzGDvxhPJFsZOIk6ObDNOqAgi30EtcpplladlSMry0g= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=03yuyVtMBYK+S+s2d2h/1z4bJ+A=; b=S0Aq3w5JK8a00te822UL qPgwRTh/22INoofvnYDf8Gi6Ft5Ye6+RM4AT14A8Yc0E0Pr8TGmmTcojzuh+fJEs jpgtCedhFylp4yFlHfHnwyyqo357owCnETtK5n8bqtI38aQM9L5iv/3Q3Vnix+xZ kYgRFrbuPU6SXRvbJIGn+Eg= Received: (qmail 30796 invoked by alias); 18 Sep 2013 00:03:59 -0000 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 Received: (qmail 30785 invoked by uid 89); 18 Sep 2013 00:03:58 -0000 Received: from e8.ny.us.ibm.com (HELO e8.ny.us.ibm.com) (32.97.182.138) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 18 Sep 2013 00:03:58 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: e8.ny.us.ibm.com Received: from /spool/local by e8.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 17 Sep 2013 20:03:53 -0400 Received: from d01dlp01.pok.ibm.com (9.56.250.166) by e8.ny.us.ibm.com (192.168.1.108) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 17 Sep 2013 20:03:51 -0400 Received: from b01cxnp23033.gho.pok.ibm.com (b01cxnp23033.gho.pok.ibm.com [9.57.198.28]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id 0ECE138C8045 for ; Tue, 17 Sep 2013 20:03:51 -0400 (EDT) Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by b01cxnp23033.gho.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r8I03p3p61931620 for ; Wed, 18 Sep 2013 00:03:51 GMT Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r8I03oa1031531 for ; Tue, 17 Sep 2013 20:03:50 -0400 Received: from ibm-tiger.the-meissners.org (dhcp-9-32-77-206.usma.ibm.com [9.32.77.206]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r8I03o7K031518; Tue, 17 Sep 2013 20:03:50 -0400 Received: by ibm-tiger.the-meissners.org (Postfix, from userid 500) id 2915A42B16; Tue, 17 Sep 2013 20:03:50 -0400 (EDT) Date: Tue, 17 Sep 2013 20:03:49 -0400 From: Michael Meissner To: gcc-patches@gcc.gnu.org, dje.gcc@gmail.com Subject: [PATCH], PR target/58452, Fix gcc 4.8/trunk linuxpaired breakage Message-ID: <20130918000349.GA22849@ibm-tiger.the-meissners.org> Mail-Followup-To: Michael Meissner , gcc-patches@gcc.gnu.org, dje.gcc@gmail.com MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13091800-0320-0000-0000-00000109C7B5 X-IsSubscribed: yes While doing some work on power8, I wanted to make sure that for existing systems, I was generating the same code. So I built some code and ran it through various -mcpu=xxxx options. When I built a powerpc-linuxpaired compiler, the compiler has trouble with a simple loop that should be vectorized. I traced the code to changes in the vectorizer that required the predicates for movmismalign* to accept memory operands. In the main part of the powerpc compiler, we made this change in April, 2011, but we missed the paired floating point support, since you need to use special configuration options to enable paired floating point support. 2011-04-01 Andrew Pinski Michael Meissner PR target/48262 * config/rs6000/vector.md (movmisalign): Allow for memory operands, as per the specifications. * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes. (vec_extract_evenv4sf): Ditto. (vec_extract_evenv8hi): Ditto. (vec_extract_evenv16qi): Ditto. (vec_extract_oddv4si): Ditto. I will do the usual bootstrap/make check tomorrow. Assuming it has no regressions, can I check this patch it to both the 4.8 branch and trunk? 2013-09-17 Michael Meissner PR target/58452 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory operaands. Index: gcc/config/rs6000/paired.md =================================================================== --- gcc/config/rs6000/paired.md (revision 202632) +++ gcc/config/rs6000/paired.md (working copy) @@ -462,8 +462,8 @@ (define_expand "reduc_splus_v2sf" }") (define_expand "movmisalignv2sf" - [(set (match_operand:V2SF 0 "gpc_reg_operand" "=f") - (match_operand:V2SF 1 "gpc_reg_operand" "f"))] + [(set (match_operand:V2SF 0 "nonimmediate_operand" "") + (match_operand:V2SF 1 "any_operand" ""))] "TARGET_PAIRED_FLOAT" { paired_expand_vector_move (operands);