From patchwork Thu Jan 15 01:14:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 429173 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 99CA614012C for ; Thu, 15 Jan 2015 12:47:26 +1100 (AEDT) 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:in-reply-to:references :in-reply-to:references; q=dns; s=default; b=tSwE2jvSdHOJkhhcDpK emGBqaaoZSchGx6KB+qcTi7KdYIV6pMVIRbkbT9GmwwmqnnKCr5d3yq5kRpnq52F 5ETE0ILFLBy6h0qi32/8/hiKDx2NPvKfj6aQn5nCiyeflLFxKqPdjGa8bnj8D1bR ti2UJU1lcwE1YO7Hpv7Fzgz8= 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:in-reply-to:references :in-reply-to:references; s=default; bh=et4WkLJSS2ZBZIMJ5hMgpCV94 Hg=; b=TOz3Q09AtZF4+EZNvvx1YBj0hZQAdJLUoz8/gQii3+c4On2OSQh1RAvXj Z/3UlN0nqU5UHswMltX5XnTgfDsIIATy8zWmuNZkVnuJl5zIfbY3b/NqQFvQnREj 9f1FwphCho52527qUXx9+6hi+k3yZB+CF61F7ytuKXggvAE6pU= Received: (qmail 31836 invoked by alias); 15 Jan 2015 01:47:18 -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 31825 invoked by uid 89); 15 Jan 2015 01:47:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, T_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, 15 Jan 2015 01:47:14 +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 t0F1G2SU010805; Wed, 14 Jan 2015 17:16:02 -0800 Received: (from segher@localhost) by gcc1-power7.osuosl.org (8.14.6/8.14.6/Submit) id t0F1G2sl010804; Wed, 14 Jan 2015 17:16:02 -0800 From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 5/5] rs6000: Do not allow TImode with -m32 -mpowerpc64 Date: Wed, 14 Jan 2015 17:14:51 -0800 Message-Id: <687b2e40d388708e5b7604b1fcc1ce7e4b127b5b.1421282067.git.segher@kernel.crashing.org> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes This fixes 141 FAILs. -mpowerpc64 does not change the ABI, but default_scalar_mode_supported_p does not know that, and allows TImode for -m32 -mpowerpc64. This fixes it. Okay for mainline? 2015-01-14 Segher Boessenkool gcc/ * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow TImode for TARGET_32BIT. --- gcc/config/rs6000/rs6000.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 6c91f3c..8fa9a22 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -31960,6 +31960,10 @@ rs6000_eh_return_filter_mode (void) static bool rs6000_scalar_mode_supported_p (machine_mode mode) { + /* For -m32 -mpowerpc64 we want the same ABI as for -m32. */ + if (TARGET_32BIT && mode == TImode) + return false; + if (DECIMAL_FLOAT_MODE_P (mode)) return default_decimal_float_supported_p (); else