From patchwork Thu Jan 11 13:11:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 124200 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp659498qgn; Thu, 11 Jan 2018 05:11:36 -0800 (PST) X-Google-Smtp-Source: ACJfBosZmO79/GHae8N9Pb2b+VopuFDHktrrn9w7qcagdd+lyt+DUZmRvG13grCmW3eVfUX3wEtj X-Received: by 10.98.153.210 with SMTP id t79mr19895315pfk.43.1515676296041; Thu, 11 Jan 2018 05:11:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515676296; cv=none; d=google.com; s=arc-20160816; b=Vl1C+hRXnHiPYBM8iiTuZxtdOz1BiR1ghYurdqi8lx0v+hVYqAoJL6T9q0zI6UE3Iq UFdUADCA2rL5XEd3NlghTfglcBfeyU0FpIRe9gb295V4ytEks7VW351YnHgUeBPYCX5+ P3GfXBvDOYvUJ1nlkSXBzThYvEVKZ5Xzi0Ml2ZCmr2nTW0GLIbOE8OxX1tr+3Al7OHcm ZdeOfsIm2aXatbsuBZdeCwfOGcGKg+kxLbBAk+s5DKJDQvEd0xwGoYUXAgfYQ7UAPEPi 4GZEtFS3fC/CEFFB9mY7KSCJo62CsUpokAF/Ldmj+sbqXD6qEZCEveTsXMLHQ+r54tjO GoDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:message-id:date:subject:mail-followup-to:to :from:delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=kToh/I0UxFshyS3YtBHYJuMCNsAH2Lj/cqkzZVMQ2oM=; b=Aj8RH6Cyb2OscKT+RNT8HVOiJlB1zbEtVw3kftBLwtA/m+il7aMbVyMyw+am9EJv7F /aEDx8N9qjUK9+T8tp45wO/X2opAhkAv3bAEtQBKEc52ar55+aUPooVtJBfaRkguZeI5 Kfq3suSn1JY30mkSzaRst/gO3GgGw9DvsVwLvZEmLOIAr/nU0A1RfIbOtJhMA2J6MFg0 xNGHOfEeA4ENayhBLgncYFFXy7G+qk2zNJPctnQGogyqgoZ1i+2sXcTWlmKlH0YEJ/7A YORHBXTn3+rZbquH58HXjN/IcwzBOtmbXQKzNtRx1gLMqB21jeU0hGUohOwBemmGaxTD GE+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=em10S7Dn; spf=pass (google.com: domain of gcc-patches-return-470831-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-470831-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id l189si76085pgl.193.2018.01.11.05.11.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jan 2018 05:11:36 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-470831-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=em10S7Dn; spf=pass (google.com: domain of gcc-patches-return-470831-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-470831-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=WLUFcIWZuI4NrNazZteTFTvVO4CggB/BWKyBSL8gTPjxBHGIvkmQM ukz8XGUA7onumAYqEHqQnN7OyaVLoz3CG1/s7Mlxv15qi7VTP8Y+ET0yHkzB5nqq ZZgz9l3HQzKeN2eI/PoV9s5J9kC1wdVZ4B09zHNeJo8qG30nPiItag= 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:subject:date:message-id:mime-version:content-type; s= default; bh=1rpvCy/zb59whRzvres0TPERkEM=; b=em10S7Dn6YcSguBsGxpb V3Cj0ilZjUSdow2qp1HrS4A5WhDqmDx5HkOITHbeEvnmY9qIYkwO6UB9WRe2PH/3 F3epwXyUQfKWyW5W5KJT7otiQrJ/3tv6wGmWuDt9VRwDEWkoaZaU4UqGyoPTQTV+ 7lPBhZWS6NVhQiABIvV7sDE= Received: (qmail 89145 invoked by alias); 11 Jan 2018 13:11:24 -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 89122 invoked by uid 89); 11 Jan 2018 13:11:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wr0-f172.google.com Received: from mail-wr0-f172.google.com (HELO mail-wr0-f172.google.com) (209.85.128.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 11 Jan 2018 13:11:21 +0000 Received: by mail-wr0-f172.google.com with SMTP id 36so2128101wrh.1 for ; Thu, 11 Jan 2018 05:11:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:mail-followup-to:subject:date:message-id :user-agent:mime-version; bh=kToh/I0UxFshyS3YtBHYJuMCNsAH2Lj/cqkzZVMQ2oM=; b=JwDKmLKdyuxrNX2xjrIrs3K8UpdxVJCDCcJ/1T9PLMDgYW7J9ZoX0/sy1IXbywvpCs XYVKPiwNGBmmWO+KfAH9RHr+BI1h/SChNP+NrX/bkTlZNKUH3Vsmpz89xJDSHQYlUsKg F5rmFpGHcRQbdxG/TbBi6RbapSDWmUGK7UIJMwquJ2YFWLHPEW8mcb/LuSug9GfwyHR3 Zdzm9rT9/f2you/CtQ4WMiPcBCEZ4Say0Y2m88etBMwL5v3fvDOBHuhPQ5InKoMXViZl MqMn5wOoYyA/QKLsxZelC8U8S9V6gJJYyJYj4B4+sYamHEClWGcfOztHaVVrLu9Tf+j4 tlBw== X-Gm-Message-State: AKGB3mLasvfq89onTsF7ibtgwbXKR6+ZuMwXUtpLtZb6b0rDhnmh1xP8 zbLxnu59/j7FloyDJonzx9VyL9mMqhY= X-Received: by 10.223.151.146 with SMTP id s18mr20924743wrb.258.1515676279455; Thu, 11 Jan 2018 05:11:19 -0800 (PST) Received: from localhost (188.29.165.168.threembb.co.uk. [188.29.165.168]) by smtp.gmail.com with ESMTPSA id u79sm657528wma.26.2018.01.11.05.11.18 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Jan 2018 05:11:18 -0800 (PST) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org Subject: [committed][AArch64] Extra scalar_float_mode patch Date: Thu, 11 Jan 2018 13:11:16 +0000 Message-ID: <878td4levf.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 In preparation for the switch to NUM_POLY_INT_COEFFS==2. Tested on aarch64-linux-gnu and committed as obvious. Richard 2018-01-11 Richard Sandiford gcc/ * config/aarch64/aarch64.c (aarch64_reinterpret_float_as_int): Use scalar_float_mode. Index: gcc/config/aarch64/aarch64.c =================================================================== --- gcc/config/aarch64/aarch64.c 2018-01-09 15:46:35.553405532 +0000 +++ gcc/config/aarch64/aarch64.c 2018-01-11 13:09:31.920887761 +0000 @@ -4806,9 +4806,9 @@ aarch64_reinterpret_float_as_int (rtx va return true; } - machine_mode mode = GET_MODE (value); + scalar_float_mode mode; if (GET_CODE (value) != CONST_DOUBLE - || !SCALAR_FLOAT_MODE_P (mode) + || !is_a (GET_MODE (value), &mode) || GET_MODE_BITSIZE (mode) > HOST_BITS_PER_WIDE_INT /* Only support up to DF mode. */ || GET_MODE_BITSIZE (mode) > GET_MODE_BITSIZE (DFmode))