From patchwork Fri Feb 14 00:15:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kugan Vivekanandarajah X-Patchwork-Id: 24606 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5EF43202E2 for ; Fri, 14 Feb 2014 00:15:40 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id c14sf26279824vea.3 for ; Thu, 13 Feb 2014 16:15:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mailing-list:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:sender :delivered-to:message-id:date:from:user-agent:mime-version:to:cc :subject:x-original-sender:x-original-authentication-results :content-type; bh=a3lVGg4/DRhEVTYZFY0JEB3r3fNhntf7i12k0OwkC8Y=; b=cr5txN+3bfYIaTOpvvVZ1TgXV5Z303yC6g4a+U6fYaicwacmTcJgvdG+IRTe1/NHiV itSr2d0M2mrhnGOFDn+AX3pCiK6YSHkA9w2z3g1volSkUdj44oj/7D43QWYzuSR5oHIH 3lbqNPH6jw0+O/10mtK+LXQqMtU+sR9EXZCqI1AOhvb0KoiPSiY3v9nqYFCBE8G4jZrq r0T334D5K5eT9Gqup49H1XFlxXpx+BHz9JcoMFhX3iQu7bDjEbWdC2gWD/ULfivzVT7m 9xoCjeAovZ0D/az3uqkuhcLccgp8ZKJv9flmolKC0nh6xXQ/ow0eCO3u7PasHYSF2KoA 0g7A== X-Gm-Message-State: ALoCoQnnP6jgM3ldqDIl71/KmVXAwTmgenvf4Mk8aFy9pDI2x8MXUN+7bFwdgQW+4uvOWrLXYQdY X-Received: by 10.236.98.104 with SMTP id u68mr1390465yhf.1.1392336939366; Thu, 13 Feb 2014 16:15:39 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.98.69 with SMTP id n63ls3399517qge.96.gmail; Thu, 13 Feb 2014 16:15:39 -0800 (PST) X-Received: by 10.52.109.193 with SMTP id hu1mr2493627vdb.11.1392336939266; Thu, 13 Feb 2014 16:15:39 -0800 (PST) Received: from mail-ve0-x22b.google.com (mail-ve0-x22b.google.com [2607:f8b0:400c:c01::22b]) by mx.google.com with ESMTPS id x7si1293750vel.0.2014.02.13.16.15.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Feb 2014 16:15:39 -0800 (PST) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22b is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::22b; Received: by mail-ve0-f171.google.com with SMTP id pa12so9130530veb.16 for ; Thu, 13 Feb 2014 16:15:38 -0800 (PST) X-Received: by 10.52.27.9 with SMTP id p9mr2477515vdg.28.1392336938889; Thu, 13 Feb 2014 16:15:38 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp65491vcz; Thu, 13 Feb 2014 16:15:37 -0800 (PST) X-Received: by 10.66.118.71 with SMTP id kk7mr5213676pab.14.1392336937446; Thu, 13 Feb 2014 16:15:37 -0800 (PST) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id of8si3647016pbc.253.2014.02.13.16.15.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Feb 2014 16:15:37 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-361743-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 32236 invoked by alias); 14 Feb 2014 00:15:25 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 32225 invoked by uid 89); 14 Feb 2014 00:15:24 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f45.google.com Received: from mail-pa0-f45.google.com (HELO mail-pa0-f45.google.com) (209.85.220.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 14 Feb 2014 00:15:23 +0000 Received: by mail-pa0-f45.google.com with SMTP id lf10so11485503pab.4 for ; Thu, 13 Feb 2014 16:15:21 -0800 (PST) X-Received: by 10.67.12.171 with SMTP id er11mr5086439pad.123.1392336921790; Thu, 13 Feb 2014 16:15:21 -0800 (PST) Received: from [192.168.1.100] (pa49-177-80-15.pa.nsw.optusnet.com.au. [49.177.80.15]) by mx.google.com with ESMTPSA id db3sm10708458pbb.10.2014.02.13.16.15.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Feb 2014 16:15:20 -0800 (PST) Message-ID: <52FD6014.8020607@linaro.org> Date: Fri, 14 Feb 2014 11:15:16 +1100 From: Kugan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: Ramana Radhakrishnan , Richard Earnshaw Subject: [PATCH][ARM] add HFmode to arm_preferred_simd_mode X-IsSubscribed: yes X-Original-Sender: kugan.vivekanandarajah@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22b is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@gcc.gnu.org X-Google-Group-Id: 836684582541 Hi, Is there any reason why HFmode is not there in arm_preferred_simd_mode? NEON does support this. Cross regression tested for arm-none-linux-gnueabi with qemu and no new regressions. Attached patch enables this. Is this OK for stage1. Thanks, Kugan gcc/ +2014-02-14 Kugan Vivekanandarajah + + * config/arm/arm.c (arm_preferred_simd_mode): Add HFmode to + preferred modes. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index b49f43e..bd90e85 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -28564,6 +28564,10 @@ arm_preferred_simd_mode (enum machine_mode mode) if (TARGET_NEON) switch (mode) { + case HFmode: + if (arm_fp16_format) + return TARGET_NEON_VECTORIZE_DOUBLE ? V4HFmode : V8HFmode; + break; case SFmode: return TARGET_NEON_VECTORIZE_DOUBLE ? V2SFmode : V4SFmode; case SImode: