From patchwork Fri Oct 13 16:24:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 115787 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp921726qgn; Fri, 13 Oct 2017 09:29:25 -0700 (PDT) X-Received: by 10.237.36.88 with SMTP id s24mr3063344qtc.229.1507912165701; Fri, 13 Oct 2017 09:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507912165; cv=none; d=google.com; s=arc-20160816; b=m+66QzyOtdUkc4KVeHQ/FKtDoM/Uoh+ZlTwymthcH8aOEpV2p41VrvrkXX0X2bKNpl UpzQESP3mZda3/ekGRLYi28KB+rHZ0e9Nlx3BQGgU0w9gyAQOLZ4uCbIew4ZMKF1vVVK 0UbJJ5PZNDiuML0mcbNbJL54eMGweJYpuR/QiUjRlPxv5DoDAVW9COjTUGmUyKaNJg4B qySK+KhU4qc5KdN1uCdWIjpOaVJnkmnu//syidqeRyjyyd1xzPRLPkWIwQXep0TdvOfp WZLKApoGISrnMjKqUwm7M0CIkC3Vu44zwQcfkL3kW1NCJzWY/OJO9DIDUKyV0WRAr1Cz 6fng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=V9B2d5WwG5cqQuLL/WdKgeSi62ZHgTXcGwcR4BXi8ts=; b=BDRryujLS4H9Cxj68H27vlho/D1X26XvGDVgmacDRMGBo7+d5AUA0FYBE412jmWtPJ eTQNRz1AJMG3shJYHLgfiDBytxdvTFljJBFFQB/bAwK3qfCwuCWCuA2eCTaRRd2mf8eM MzfFKhmf2SC/Q7x9fMtXvbIcAwBrZ/OfMUpO6QTppWVCuinyKVM0Va+Z57bP3Jn42QpQ YkbKW4LWT4TScrhevTp1WCoV017wUR0QAUlIcdUQPjLNDKHTYDWso3ZmMU+PaKX5PJPZ DfiIgafSRHh6QhsH4lwy9b5W4TBK2ZN07mjyL9JH6QZDnknNKmsKBBK43vUueRzZJLdW C64Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=C2wZ45fE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 8si703440qkj.34.2017.10.13.09.29.25 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 13 Oct 2017 09:29:25 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=C2wZ45fE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:51039 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e32pv-0005yf-ID for patch@linaro.org; Fri, 13 Oct 2017 12:29:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e32lS-0002PV-KG for qemu-devel@nongnu.org; Fri, 13 Oct 2017 12:24:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e32lP-0006TT-HA for qemu-devel@nongnu.org; Fri, 13 Oct 2017 12:24:46 -0400 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:52285) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e32lP-0006T3-BA for qemu-devel@nongnu.org; Fri, 13 Oct 2017 12:24:43 -0400 Received: by mail-wm0-x229.google.com with SMTP id k4so22853715wmc.1 for ; Fri, 13 Oct 2017 09:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=V9B2d5WwG5cqQuLL/WdKgeSi62ZHgTXcGwcR4BXi8ts=; b=C2wZ45fE/zoiM5CYc4glczWBN0HTKJGegGHXWBb9knzcvgsLwqN3IVM8pEkxk4D1lB FKUHfBMsG8WxO8n2G9qKGamJwX12KQAebe/EUym6XEj27gq/ir69NBmPqCMzMo5Ik3mt VUHAYiAdcf3NKIq1P2birTp7V1wUZgjgP8AjI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=V9B2d5WwG5cqQuLL/WdKgeSi62ZHgTXcGwcR4BXi8ts=; b=uJgKHzDBuQR9zSj/JnBA4IE11flbA/YeFcIRYThcYIHXdr0SbAAYkWt9Y0faZrwhv5 RpKWMbAJZ7mIjCXjmYzhQpWgKLwW41sIa5tN2+HYRNgjuBe4zMrsvf6JyCN7phPcb7ku ljGtlT8vADMMRtd7fwytQ7deX9ELrHXBhuwlUmU4fpvM4s+vIwVTU5KpJzNF5A4Bns7W /hFTbIwbSnlweEksdToNHdGbeJXFMnlB9LyiqxER6UjLc8TmcsjJ1cnxvIf3A8tkD5O/ 23AEQEPkiwWMjRr5qNHDtkoOQw0IV9z7AadI9QPtZ/PDIMzm5C5k4v7aH6/hxoFn+vRw R1ug== X-Gm-Message-State: AMCzsaURkCtrCVQgOUeLn+Z4TlM8EDZq/5yC7K/OywKAMWZo8t2i8r7R 9xSZaM+1xQTnriu5dfwZZJtSbA== X-Google-Smtp-Source: ABhQp+Qf0plTFHj3TQ4RBK3yB3uWgBbdxKcpjdxXv/dycLgzuoih0Zy13gK1GbSpkTvzCf71bo6Itg== X-Received: by 10.28.155.145 with SMTP id d139mr1838335wme.119.1507911882261; Fri, 13 Oct 2017 09:24:42 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b15sm845995wrh.35.2017.10.13.09.24.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Oct 2017 09:24:38 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 9CDD03E06D6; Fri, 13 Oct 2017 17:24:38 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: richard.henderson@linaro.org Date: Fri, 13 Oct 2017 17:24:11 +0100 Message-Id: <20171013162438.32458-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171013162438.32458-1-alex.bennee@linaro.org> References: <20171013162438.32458-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::229 Subject: [Qemu-devel] [RFC PATCH 03/30] include/exec/helper-head.h: support f16 in helper calls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Peter Crosthwaite , qemu-devel@nongnu.org, qemu-arm@nongnu.org, Paolo Bonzini , =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This allows us to explicitly pass float16 to helpers rather than assuming uint32_t and dealing with the result. Of course they will be passed in i32 sized registers by default. Signed-off-by: Alex Bennée --- include/exec/helper-head.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.14.1 Reviewed-by: Richard Henderson diff --git a/include/exec/helper-head.h b/include/exec/helper-head.h index 1cfc43b9ff..fdb82151d3 100644 --- a/include/exec/helper-head.h +++ b/include/exec/helper-head.h @@ -30,6 +30,7 @@ #define dh_alias_int i32 #define dh_alias_i64 i64 #define dh_alias_s64 i64 +#define dh_alias_f16 i32 #define dh_alias_f32 i32 #define dh_alias_f64 i64 #define dh_alias_ptr ptr @@ -42,6 +43,7 @@ #define dh_ctype_int int #define dh_ctype_i64 uint64_t #define dh_ctype_s64 int64_t +#define dh_ctype_f16 float16 #define dh_ctype_f32 float32 #define dh_ctype_f64 float64 #define dh_ctype_ptr void * @@ -98,6 +100,7 @@ #define dh_is_signed_s32 1 #define dh_is_signed_i64 0 #define dh_is_signed_s64 1 +#define dh_is_signed_f16 0 #define dh_is_signed_f32 0 #define dh_is_signed_f64 0 #define dh_is_signed_tl 0