From nobody Fri Oct 24 09:38:26 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 151940032491291.22821142726139; Fri, 23 Feb 2018 07:38:44 -0800 (PST) Received: from localhost ([::1]:45237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epFQq-000445-0m for importer@patchew.org; Fri, 23 Feb 2018 10:38:44 -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) 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) 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-Google-Smtp-Source: AH8x226dzUCkVSkCuVW0LruPaJ2qu9/PckdJqihCkJARsy+txd4R39jeViLJ+obiQtnIZG+j2UQ7kA== X-Received: by 10.223.176.228 with SMTP id j33mr1927606wra.67.1519400198624; Fri, 23 Feb 2018 07:36:38 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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=20Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 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=C3=A9e Reviewed-by: Richard Henderson --- include/exec/helper-head.h | 3 +++ 1 file changed, 3 insertions(+) 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 --=20 2.15.1