From patchwork Fri Jun 14 21:00:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Meissner X-Patchwork-Id: 251534 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 CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id A844E2C0085 for ; Sat, 15 Jun 2013 07:01:33 +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=KMODnL5w0iKqb++JSp+751cx9iQrcj4ADFz57erPh7B2OrBb8fAR1 PRAg+pROa0PrX7uqGSNVGA8j06z3QKCHO0WaXR/3Rhjex5aqg8gh7ZZU/61Xu4w5 Vc9LgVV/A3Nbkx9Zy+9TXGdbPAsm5z4aznmh5oq1TTQ/BLbXRa7jEw= 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=tgBaW3AYhFSwfWlO+cWV1CVItQ8=; b=Bi7jNw8L7HJGpbXaKCeJ eFz0LnTO+me9xd797Vo3fKMjimJnxJ5obuz0dDgqBcKOVrcmLYmatDllmN9v8rfR t2tvpRGC+5N1VuuRmaO42ihTWVgtuHoA81II84z0bAsiR2RG5ngdqqp1MJn4+68s ZvQxGnHmieCyBhaoUjI8JNw= Received: (qmail 5241 invoked by alias); 14 Jun 2013 21:01:27 -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 5230 invoked by uid 89); 14 Jun 2013 21:01:26 -0000 X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from e32.co.us.ibm.com (HELO e32.co.us.ibm.com) (32.97.110.150) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 14 Jun 2013 21:01:25 +0000 Received: from /spool/local by e32.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 14 Jun 2013 15:01:23 -0600 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e32.co.us.ibm.com (192.168.1.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 14 Jun 2013 15:01:21 -0600 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id E398919D8059 for ; Fri, 14 Jun 2013 15:01:11 -0600 (MDT) Received: from d03av06.boulder.ibm.com (d03av06.boulder.ibm.com [9.17.195.245]) by d03relay05.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r5EL16Ap127092 for ; Fri, 14 Jun 2013 15:01:08 -0600 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 r5EL3UZf014694 for ; Fri, 14 Jun 2013 15:03:30 -0600 Received: from ibm-tiger.the-meissners.org (dhcp-9-32-77-206.usma.ibm.com [9.32.77.206]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r5EL3Thj014654; Fri, 14 Jun 2013 15:03:29 -0600 Received: by ibm-tiger.the-meissners.org (Postfix, from userid 500) id 45B2342670; Fri, 14 Jun 2013 17:00:34 -0400 (EDT) Date: Fri, 14 Jun 2013 17:00:34 -0400 From: Michael Meissner To: gcc-patches@gcc.gnu.org, dje.gcc@gmail.com, pthaugen@us.ibm.com, bergner@vnet.ibm.com Subject: [PATCH, committed] Fix PR 57615, power8 generates an error for -mquad-memory -mno-vsx Message-ID: <20130614210033.GA25606@ibm-tiger.the-meissners.org> Mail-Followup-To: Michael Meissner , gcc-patches@gcc.gnu.org, dje.gcc@gmail.com, pthaugen@us.ibm.com, bergner@vnet.ibm.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: 13061421-5406-0000-0000-0000098ED651 X-Virus-Found: No I'm committing this as an obvious fix to a thinko on my part. The problem was I didn't think about the case where quad memory instructions were available, but not VSX instructions. The quad memory support was added to the VSX implementation of movti for 64-bit, but it wasn't added to the non-VSX implementation. I bootstraped it and did a make check comparison with no regressions. 2013-06-14 Michael Meissner PR target/57615 * config/rs6000/rs6000.md (mov_ppc64): Call rs6000_output_move_128bit to handle emitting quad memory operations. Set attribute length to 8 bytes. Index: gcc/config/rs6000/rs6000.md =================================================================== --- gcc/config/rs6000/rs6000.md (revision 200105) +++ gcc/config/rs6000/rs6000.md (working copy) @@ -10020,8 +10020,11 @@ (define_insn "*mov_ppc64" "(TARGET_POWERPC64 && VECTOR_MEM_NONE_P (mode) && (gpc_reg_operand (operands[0], mode) || gpc_reg_operand (operands[1], mode)))" - "#" - [(set_attr "type" "store,load,*,*")]) +{ + return rs6000_output_move_128bit (operands); +} + [(set_attr "type" "store,load,*,*") + (set_attr "length" "8")]) (define_split [(set (match_operand:TI2 0 "int_reg_operand" "")