From patchwork Fri Feb 23 15:36:06 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: 129384 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp772687edc; Fri, 23 Feb 2018 07:37:13 -0800 (PST) X-Google-Smtp-Source: AG47ELtpY3r2Jy9WRtp5/mqlTMR0CSIrSdyDoQeR1FBOklf0EMQ/hFJpmnlx7HqOf6re+oK0iRwz X-Received: by 2002:a25:938f:: with SMTP id a15-v6mr1375781ybm.350.1519400233613; Fri, 23 Feb 2018 07:37:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519400233; cv=none; d=google.com; s=arc-20160816; b=VRcGDeSOUGJmbxozbbHL7mr5I/FqJkII9NNYdIdnMwTOFhzC7volrI4U+fN4cgBwd3 sya+I0J8lkoms5d/gMizYEMR/Mhc0awcmhWHHCIrhDH7DnI/9o1tFtI1ZS1Rxz6RUBoa fAUsRyL/yPqDT1faqdTvzx83w+qSJ0++MUQ+NoUVmnnvtV5kuh3fZNBBZ2QkYuNJ0ASw 97SwTIArtbFJ9RzhIHBh5bgwWZa6l47WxtB8M2G8lZH+X/A0IrrxByDq6V3nrhfPniZo ldEqFHEJ2UQd0L+eQ0ucTweDyArxaMzERjK9BqZYqBRZpAWgkjTj2YUK6PiV6kd0a5SA g/qw== 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=uCCD0RZT+D7EC+jvs1CDKhyzy55qdtKXQJl/WNfyni4PmPW3P6fqw2OsL1prs4Y/aC Vf4l6+lAu167OknnC0DwWsTV6bidvPdNtcNHvehB9GObmdQMx8PHWTxqGP/QDasCfSuX AXsipV3RVVjTfQeNDf2lP23kKd3XP6dVxOFgCK9r91AXgkHunFKBD+LIVYe2ZZXM7R6q osJD8eaqZGFO5unj+3VyJ/t7PVysxgLwVKU16dEzsVZIzBAAgjG5QXO4fl+0w5DxDccu Nz3NixPcuXYH20DslcRvFpSn7m4xIvYqUamWDP0wTZnybM7QAOTe0X7UBhkpMJdq+mHJ U30w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iA5Rk8CY; 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 a14-v6si435223ybn.807.2018.02.23.07.37.13 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 23 Feb 2018 07:37:13 -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=iA5Rk8CY; 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]:45230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epFPM-0002jg-Va for patch@linaro.org; Fri, 23 Feb 2018 10:37:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epFOt-0002j5-KD for qemu-devel@nongnu.org; Fri, 23 Feb 2018 10:36:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epFOq-0006sA-03 for qemu-devel@nongnu.org; Fri, 23 Feb 2018 10:36:43 -0500 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:37265) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1epFOp-0006p7-PY for qemu-devel@nongnu.org; Fri, 23 Feb 2018 10:36:39 -0500 Received: by mail-wr0-x243.google.com with SMTP id z12so14529962wrg.4 for ; Fri, 23 Feb 2018 07:36:39 -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=iA5Rk8CY8xLMfVmjvUxYEw5GqkUEP7nIUILssmlh5OFrNouaDhSy/tx3X1mWMEs0+B LEGoLg8gPkjBo8qu0AMQCcxnK0EiNocRd7oZCqao7kwqucas9M4eI7ZaGofuiYzCQMwQ xJhIqaaqHUMiv8BzIr2tR2GIarXUVQYgCXsGE= 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=q0mu3y3/dYzLvijFeQ1+vXEBkhYFuQ0YJJFKTnQpCFaaXTKE/i0nKY959A/Fjnk31h MD3f6MYvGUCGlQHIk8rrLuj4qpKbiNV+rpEElzmG6zUAZRZw64ZHWRM2Zvs8P1U1fQOJ f8BHpnLW5nUOcNo/UeGl6GHaTvjO7amRxmT5FeUlxTUFwT5VBgVxhsmFvZcmrflFI2Bu +KSJKlz3MV+3fTSfI2m39smNK5JBl6pl/O+JUvNFW37D/k39uve7YtQgihPVtFWvmi+6 cwqFvKrS7RX3m2E8J/1mf0j2ZdBy6gDouqJWZU4tNsaraTEqK/Dm/yy5mWKxBnDcp0DA qpfA== X-Gm-Message-State: APf1xPCwseTVCqg/sc0OnpDuqBmxMnRlVN4LJqldUivPRwTCl8mN5mH/ EdpT7DxVKwWmzSjLM3pLCELvuQ== X-Received: by 10.223.176.228 with SMTP id j33mr1927606wra.67.1519400198624; Fri, 23 Feb 2018 07:36:38 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 6sm2359667wrd.57.2018.02.23.07.36.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 07:36:37 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 8D9243E0368; Fri, 23 Feb 2018 15:36:36 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-arm@nongnu.org Date: Fri, 23 Feb 2018 15:36:06 +0000 Message-Id: <20180223153636.29809-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180223153636.29809-1-alex.bennee@linaro.org> References: <20180223153636.29809-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:c0c::243 Subject: [Qemu-devel] [PATCH v3 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