From patchwork Thu Mar 1 11:23:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 130142 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp2677890edc; Thu, 1 Mar 2018 03:29:37 -0800 (PST) X-Google-Smtp-Source: AG47ELuDmA3BBPWWbo5aGEr30cku4T2D170a8OKPPhUzy7woUrYL2UqpdItWgKhcnMSXQI6HWiV+ X-Received: by 10.129.72.20 with SMTP id v20mr780766ywa.53.1519903777550; Thu, 01 Mar 2018 03:29:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519903777; cv=none; d=google.com; s=arc-20160816; b=pQvRPuaXXcN+xTR0WvBa3HkrwcNSpYlF+NblKQYZk3XTiS2Df7pIMwLhZ+k8jIGQe7 Lk8zGDXvffreBAEUF1ktdbhUmab5HCpmQEo7kVaNFd9fSexna3/P+JGcuEg9vaVZm8KT MvtF2JJZMtDMuD/3/ncgDFmg5KLaiwMWwn++FrSBU5K9ovO/z83eufTBGaHoutoNmlGY sKPJp9aeEQVNmtm3bmxv7DU+f7J1i3fpiPwocSEsm1oIjGl/v1f0OOiPBKOBirzhv2Tl OWaZ7wDpByi9yJt+KotfRDiP3sN4SFnc8tAkvePMvxzVBVSvJPK1U29Vu3/XYkymYJfb XUnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:arc-authentication-results; bh=1DSSJhsCe8dtapuXn0gAkTLb+iXC0koyRBTAAWjKpYM=; b=zSSPBSbui3JM3O10GUBGbtos7olyfyaBSvqis4jcTARD/bwIftoT4vtspiwJll1ciJ fLAnFwCRYmgbUe+qzM+co2h/hqjrKrywekzlg5ATVBqFyAJUduUazFSPPKWGry3SHqvu YbWxtSzBFnggaIxFBbiF9uGOH5MXEaXMAZg2qeZPzMauF3Cp/qadbbc2ym077yq36vlB sTG0TCFolTbuhTrwvYSJQ9HZMfJwtMfkdmicCR5ZlMt8J3P0X4hUL5lJrO6eDdM6t8hA Ag+M9mB80kwBoZ5UnLivb0FlVyOJab9xF4+0NAxAwUCZpJC2QkP+ar/jfnZpas4DuHgU Y+SA== ARC-Authentication-Results: i=1; mx.google.com; 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 k6si607327ywl.208.2018.03.01.03.29.37 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 01 Mar 2018 03:29:37 -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; 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]:55729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erMP2-0007eY-Vb for patch@linaro.org; Thu, 01 Mar 2018 06:29:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erMJs-0003g4-6x for qemu-devel@nongnu.org; Thu, 01 Mar 2018 06:24:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erMJr-00085F-A4 for qemu-devel@nongnu.org; Thu, 01 Mar 2018 06:24:16 -0500 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:46698) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1erMJr-00082m-2I for qemu-devel@nongnu.org; Thu, 01 Mar 2018 06:24:15 -0500 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.89) (envelope-from ) id 1erMJm-0000ZA-M1 for qemu-devel@nongnu.org; Thu, 01 Mar 2018 11:24:10 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Thu, 1 Mar 2018 11:23:30 +0000 Message-Id: <20180301112403.12487-10-peter.maydell@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180301112403.12487-1-peter.maydell@linaro.org> References: <20180301112403.12487-1-peter.maydell@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:8b0:1d0::2 Subject: [Qemu-devel] [PULL 09/42] 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Alex Bennée 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 Message-id: 20180227143852.11175-2-alex.bennee@linaro.org Signed-off-by: Peter Maydell --- include/exec/helper-head.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.16.2 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