From patchwork Tue Feb 27 14:38:22 2018 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: 129799 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1467330lja; Tue, 27 Feb 2018 06:40:04 -0800 (PST) X-Google-Smtp-Source: AG47ELs9eedX/pfKnFeYeH/b+vAbEvrr/mJLf9ZKFyLYXp4zzWjDxcDRT5CwZ2SsgJr7JXHJP5xI X-Received: by 2002:a25:6e83:: with SMTP id j125-v6mr6790096ybc.107.1519742404204; Tue, 27 Feb 2018 06:40:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519742404; cv=none; d=google.com; s=arc-20160816; b=nZfDqNMyzEJPm300ITq+0fxzZ/dfa8BxGwaqJZYV8z+czAsNQI9vLa8W9gX3hl+Mxk 3WlGGrWdaJgvUPMMt7OTteaFi98IG3tp75vZ4a31HicipQ76asoBwcQN39zxbimtsagN UeA/chVuNTrb/7hUFvtxqnnbEVBBbJzM4mre8acBNGdTdImLcGT35BoaOXy4uoEN3Vwm RWuiYlKXgayEsZJCU+YtS0MHwos8zzWBHWWvJ9iF2wDEVSehoO6FqqanaYqL61xxu4Z2 FkvRHLL6THBfzePD2Z03vnn1EAohwxsuxhMWQXZbjPnrunoyIA7tQjAYX4ASzJVzFzos OlVQ== 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=WrkCoShieYMDIzS/oHq6Q2ZjZ8fuWkRuW2hF8KIrtjs=; b=kJ2b+oegqG1juQO/W0q3FhrVVVhHVlnkagYEyl82ikgkqbnD+s1IPK/YHIhYJEEwQ5 pdtF0IcmlG/dVtyRjgevG8xOdogEghJ5yP71JbdDpJPCu7MOO123mQNZNuZolmHvTyw2 YJ5siHaCiIqcy+x7sMPgbaWCP5esztDMZ1UxGG/Xu9k/POdmKqHW3RR9onsXShb39i2V Kc9nq2JMV+N865n7vuHAwQky9fvhqjQ6VKHi88ylZNtxvDdJo8CtnFeOmx3NLm+YQMus P3kVzYfqtyMgz3N4ZyMQLOsNrxmjpT8d2p/mKed+JG8nj7dvFCJ9kyFa4fbj0Bx08J7l uwJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=fp5EYsEv; 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 s206si1908048ywc.625.2018.02.27.06.40.04 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 27 Feb 2018 06:40:04 -0800 (PST) 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=fp5EYsEv; 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]:37665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqgQF-000494-I9 for patch@linaro.org; Tue, 27 Feb 2018 09:40:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqgPF-0003ZC-Jp for qemu-devel@nongnu.org; Tue, 27 Feb 2018 09:39:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqgPA-0007tk-Ua for qemu-devel@nongnu.org; Tue, 27 Feb 2018 09:39:01 -0500 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:37467) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqgPA-0007tF-OS for qemu-devel@nongnu.org; Tue, 27 Feb 2018 09:38:56 -0500 Received: by mail-wm0-x243.google.com with SMTP id 139so11088222wmn.2 for ; Tue, 27 Feb 2018 06:38:56 -0800 (PST) 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=WrkCoShieYMDIzS/oHq6Q2ZjZ8fuWkRuW2hF8KIrtjs=; b=fp5EYsEveVdV3P+mgNIEsB7qy/hxOhh76f/UgKpkoeRR4XEtcKqG743jnWn94ReYrR EfjYPRcpWN8b37SgXXR3ioUcDroQsef0uhIp6kBOKq88y78HHNtOxWzUIqLX19wWaKtX 4K1FysaPpETi9X7ChqBUmwPksp6RT6ztNMozk= 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=WrkCoShieYMDIzS/oHq6Q2ZjZ8fuWkRuW2hF8KIrtjs=; b=OU5lPmcKdtiKPw3LXhA1Fekvn7b8ql35m/bB9NcKCz2JXvnvsKszyPjSi70bH+YIjh eHBXEOM+MJiATAfHq4KV1KIUzqX4ah8fii99FyNsSB6o6Kq400whTUY0+4mxeZN9El+I MKTmtvVZB4l5kDVV6n1Fbd6H2teD+fokuLxrWlslIW6Ml0aOHNUjqwkMnuxp11HOemHR RXI0Zg/JgQhKJhGz3RAMnM2HIsuOo73YyzGLt7ipWwo95VYDUDS8S0fEsjKF/upJ9/IB mA2XMRAP1+Rc06TG4IEphZZrnVUUb30CUSYwFvSCFo9QhR5HWmQVGWr0cXHn6UDykER9 9jVg== X-Gm-Message-State: APf1xPDWvtj7FOuDS9+exZqs2mYr9pJi/jj4uWvfD2CVOeZHzGkYMLue P1pIxv3p+UHzbFVSLXIclBN7GQ== X-Received: by 10.28.105.65 with SMTP id e62mr7979388wmc.126.1519742335596; Tue, 27 Feb 2018 06:38:55 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p21sm8962891wmc.28.2018.02.27.06.38.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Feb 2018 06:38:54 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id E755B3E025C; Tue, 27 Feb 2018 14:38:52 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-arm@nongnu.org Date: Tue, 27 Feb 2018 14:38:22 +0000 Message-Id: <20180227143852.11175-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180227143852.11175-1-alex.bennee@linaro.org> References: <20180227143852.11175-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::243 Subject: [Qemu-devel] [PATCH v4 01/31] 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 Crosthwaite , richard.henderson@linaro.org, qemu-devel@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 Reviewed-by: Richard Henderson --- include/exec/helper-head.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.15.1 diff --git a/include/exec/helper-head.h b/include/exec/helper-head.h index e1fd08f2ba..15b6a68de3 100644 --- a/include/exec/helper-head.h +++ b/include/exec/helper-head.h @@ -26,6 +26,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 @@ -38,6 +39,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 * @@ -94,6 +96,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