From patchwork Thu Sep 11 18:54:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 388348 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 5DA921400F0 for ; Fri, 12 Sep 2014 04:54:40 +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:from :to:cc:subject:date:message-id; q=dns; s=default; b=ZBkHdPqgWE5i 0wur2Xf6Rrka4LRCm4nJgDykEFBMObsUbYOmb3L866xqPZ3owgM0z17fJH3SRi3J DeUwGwhBw7cddRrzAQ4qJ+IQIO2S1bZkIOLzQCpFkTXnl9n949+fRlZgMf5xqXYo YTZe+LsyFqsPFfAQpkFgZuFkqWMvJjo= 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:from :to:cc:subject:date:message-id; s=default; bh=jXN5zhQeGOgT9vgkrg 4sbz6983s=; b=TYK2upk49gZBkodhtq2/upq88l59hxuOYTWJf8+9GYGJzv76Jl lq4JAdz23DXEHS+2XwpcPrwa+u8YdUZwGg/CG8/Jf3Nn4zh6AciVWPzHgmk6BnJy FfJh+oS/eFlxp8O1Vv0wAMlWttJAhuwFN5nrP4sVnndYpYiQARjgnSFQM= Received: (qmail 31122 invoked by alias); 11 Sep 2014 18:54:34 -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 31109 invoked by uid 89); 11 Sep 2014 18:54:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: gcc1-power7.osuosl.org Received: from gcc1-power7.osuosl.org (HELO gcc1-power7.osuosl.org) (140.211.15.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 11 Sep 2014 18:54:32 +0000 Received: from gcc1-power7.osuosl.org (localhost [127.0.0.1]) by gcc1-power7.osuosl.org (8.14.6/8.14.6) with ESMTP id s8BIsUWi015980; Thu, 11 Sep 2014 11:54:30 -0700 Received: (from segher@localhost) by gcc1-power7.osuosl.org (8.14.6/8.14.6/Submit) id s8BIsSk0015979; Thu, 11 Sep 2014 11:54:28 -0700 From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH] rs6000: Fix mftb for -m32 -mpowerpc64 Date: Thu, 11 Sep 2014 11:54:07 -0700 Message-Id: X-IsSubscribed: yes The rs6000_get_timebase expander expands to rs6000_mftb_di for TARGET_POWERPC64, so the define_insn should allow it too. This fixes gcc.target/powerpc/ppc-get-timebase.c for -m32 -mpowerpc64. Okay for mainline? Segher 2014-11-11 Segher Boessenkool * config/rs6000/rs6000.md (rs6000_mftb_): Use mode iterator GPR instead of P. --- gcc/config/rs6000/rs6000.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 1f1e06d..78960e0 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -13550,8 +13550,8 @@ (define_insn "rs6000_get_timebase_ppc32" [(set_attr "length" "20")]) (define_insn "rs6000_mftb_" - [(set (match_operand:P 0 "gpc_reg_operand" "=r") - (unspec_volatile:P [(const_int 0)] UNSPECV_MFTB))] + [(set (match_operand:GPR 0 "gpc_reg_operand" "=r") + (unspec_volatile:GPR [(const_int 0)] UNSPECV_MFTB))] "" { if (TARGET_MFCRF)