From patchwork Thu Feb 8 17:31:26 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: 127704 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1725117ljc; Thu, 8 Feb 2018 09:59:25 -0800 (PST) X-Google-Smtp-Source: AH8x224CMPvIatZNJqnJ6TAOiRheK+N/GWH0EVxoos/Y5Lh30bRNlmAcUhs7SrzIWEukeJHhJ6nI X-Received: by 10.129.70.193 with SMTP id t184mr30680ywa.246.1518112765360; Thu, 08 Feb 2018 09:59:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518112765; cv=none; d=google.com; s=arc-20160816; b=TVz6qjLqxyM+ogTuExhZ5macM3NDDCc0Bc20xv9jxBITCf8d0drVlFtvpELUP1XKbI 7ZC1y6CE9gZRimA6523WnrU1F6OY9rLskPabYh7pWL6cJ2+oDE33H2bKv2nLJvGEjH9E 8nlQN657FXJgtueIhxNDzVkxmZo1at6x+KvfuB1RXwpZOuMjJcqDEmnkjIoA1R+D2IQ4 wXb0/34LowovBQ2YBF776O5mPS0VG8z3+CXiMVLVq9jg9ILqGXU1Z1CzvafXbfpbshf6 A+mQvjcN7+P9UQ3SBOinxyzoqqSXyLfWpsfG+CZHz7trpZ67KNNbTBTCJFTJIY2YyIyB ZMfQ== 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=b/zP1C0YRQkJa/L8Lx4ecYe10plaeXaQEuvyHJh68CZ4hMGyPA79A2axK/DxNsNC8h KwkK68uClJhQKK6COWSm9RKmUMX5IDMhm9gMb1YjXC6InPYm50mFiH9J9e8gpXpjNh00 21Y0JWjeT7bi5xUJwVSmp/iU2Wp2u+zUYeQcUiYSTdB+x3LvWPuL9cdUPS0ZfSHxLI7G 4FcXWnD00eY7CVA1XqDX8a/D8Et2lvonDyVbTfGAoMfMh/bb0IIsBzsaS8GHkKQy8FW6 BhDWd6QOgM3bBEDg3zLHaxmuOydQEuRWzqv2ZP5vFOsuZHiiBw1vkEZVF+VaR2xLFsln 3D7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ALwt6iAM; 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 g16si81281ybc.786.2018.02.08.09.59.25 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 08 Feb 2018 09:59:25 -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=ALwt6iAM; 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]:57729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejqTk-0000pW-JO for patch@linaro.org; Thu, 08 Feb 2018 12:59:24 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejq3I-0003ES-FH for qemu-devel@nongnu.org; Thu, 08 Feb 2018 12:32:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejq3F-0006O7-Jc for qemu-devel@nongnu.org; Thu, 08 Feb 2018 12:32:04 -0500 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:35507) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejq3F-0006N4-Dg for qemu-devel@nongnu.org; Thu, 08 Feb 2018 12:32:01 -0500 Received: by mail-wm0-x241.google.com with SMTP id r78so11505044wme.0 for ; Thu, 08 Feb 2018 09:32:01 -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=ALwt6iAM+Q1oqB1/bMBXLy3ZbKh98bJPB0+1n20utuG4VcTVAqa5NU+KVKkg34BsyH yQfCCNASDPZedj+0LmuxEusVlJAjWrlcLpjDAuC00/miwJUU+xAF2GRy2z8QQUqLv8N1 VJ9pQw4yRYXY6AZr8S0I4Eb3dO1HQwc5iE7Uk= 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=L3OquP4f/ueaqEchmDVv27jkGOqIexV5Bh/p21GNAqTwhI4uID46Vh0c2i3KFmJADe NxJ3zw7FzYjhip/qQa0BPjXGefNg5Z67X/l+bvBRDXH2BTHatEzdARXrQlPXgH2QnWxf 4QCAFbPLOjFNnsRaHVi+cGWTDMqDbDmWHqlFCCnvpzu86rFG8YvHRw0w8gy1S8aqEh+n ui/0154nvV46IT6FnXH4Z7ekkZFy3pw83uXdlfFLOz+Nj3WmuxqGx3ykkGG5j3OZiiFx G15qtFzf79cyJZBSAjBrsJnbZCGX83Aeeb04Wm2W3rB/Nxj6UJnEgnNT6ltfBMgAFeRe jrdQ== X-Gm-Message-State: APf1xPAebo+fJNS6RLSO4THi5FHNioJ9+dDw//hRNrajXTgu8dzn/Lav /8akKVXClR633NWRcFlxJAjWHA== X-Received: by 10.28.69.87 with SMTP id s84mr16926wma.107.1518111120242; Thu, 08 Feb 2018 09:32:00 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id m6sm481469wmb.6.2018.02.08.09.31.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 09:31:58 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id C81953E0B1E; Thu, 8 Feb 2018 17:31:57 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-arm@nongnu.org Date: Thu, 8 Feb 2018 17:31:26 +0000 Message-Id: <20180208173157.24705-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180208173157.24705-1-alex.bennee@linaro.org> References: <20180208173157.24705-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::241 Subject: [Qemu-devel] [PATCH v2 01/32] 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: Paolo Bonzini , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Peter Crosthwaite 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