From patchwork Thu Jul 20 15:04:19 2017 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: 108375 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2274725qge; Thu, 20 Jul 2017 08:23:57 -0700 (PDT) X-Received: by 10.55.155.23 with SMTP id d23mr5131244qke.271.1500564237747; Thu, 20 Jul 2017 08:23:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500564237; cv=none; d=google.com; s=arc-20160816; b=FZKZchca+dIiR8DGWcc9HaKJs5bs0E/+XB5g/7INMfBsrQVmOipZy0m5IMJmGzwfjz 0Z6udB6pSu5bY7sTs0xyzL3VvHRsSaHZXRTt5CwKdmkA+J/pSwqCmJNhFHghEn9hjrhI CGY1pD5h/dncmarYYL1Pun2Sgawx+znbgM1zAN8KNg9v2GuthaIBw09J1ABgPYNdmRic gJf91d+U7orGHiDaGwPFumL8/ZmXIFH6T4cM92DaXih2sd9mvdAdqjS9PBAQz++NbLzI uevPZdPFxE6jOwuxXf4hKqd0fg7C2PKAgdB359Ye4xa9LPM9k28XtPi180kGenvHr8Wo nRlA== 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=Yl00APUsYcxwvjjFBLVqOvymEIknzrlr79EHWHSQuIg=; b=dZzkgiWCXzms6O9HGUMfFngbnIki3mDdv/4OGnmI4fDtlSvApGu8UQv16Qj7kVxu9P 8iFfs/aoRvR20qDZh7tYos17xHN/bR7h+XPYWe0h0wIHGqBZE3QmaNSewcuBVdulWPEb i5jAmreIGQbIa/ujv1P0GEZPrxIBwSO00XGvneD1Nll3+BQja8Sx2giRDCE0qnmRMkE3 FA2gTAMDjOnKf7Cz0jrOJaiUtoYbHZYdtxnkCzmikVbS/RzSr58Tyklk/XgJu3vSGrw/ tzsaRAqmgbq+FItgsEOWSI+Ub4K+7PwD4dSCa9BE9KhEXbG6tWxSejZ9nPOutsN8iDQy lufg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.b=Jud1v4wH; 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 t22si2094759qki.550.2017.07.20.08.23.57 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 20 Jul 2017 08:23:57 -0700 (PDT) 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.b=Jud1v4wH; 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]:38596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYDIx-0005B5-Db for patch@linaro.org; Thu, 20 Jul 2017 11:23:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYD88-0003FG-Al for qemu-devel@nongnu.org; Thu, 20 Jul 2017 11:12:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYD85-0004Lk-Tm for qemu-devel@nongnu.org; Thu, 20 Jul 2017 11:12:44 -0400 Received: from mail-wr0-x22d.google.com ([2a00:1450:400c:c0c::22d]:38154) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYD85-0004LS-No for qemu-devel@nongnu.org; Thu, 20 Jul 2017 11:12:41 -0400 Received: by mail-wr0-x22d.google.com with SMTP id f21so15629930wrf.5 for ; Thu, 20 Jul 2017 08:12:41 -0700 (PDT) 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=Yl00APUsYcxwvjjFBLVqOvymEIknzrlr79EHWHSQuIg=; b=Jud1v4wHTEDh6GL3hv0qBIrsxuw6vL6yTqnC5yOIEkB0Ug7Yx9n9sOcmkwSFaEjQpj wyeRRFPiELEmcOBOMQDt5QJkrA69Pv1vCmKB7Euy1U2n9k9R/MUJwhzg2ZIXI7eiRSp5 tci4pKFRQZdFIKPSmE4vEJIQVW8iGL2qlJMlk= 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=Yl00APUsYcxwvjjFBLVqOvymEIknzrlr79EHWHSQuIg=; b=iElMgDlgXQgrbd3lDg8hs1rdKm+Y0BXYB5wSgwndkeAkBEMNDdaN+J3+jOHEKa9c5/ PqclnMCWztocS9dzfge1DDpfRR9wh9D/yj1CXWprG5K5d/5zk7x+Yr2WC0buuewrLiHh IkvdSXLfx6dM9FA2/qsGQUtTD79sopwKaxsQTJQvIaz6aUsr39SGKFWADBhuMoJiU6Pn zRclO4oTYAl/exXZZ+T2kRHcnt/f348tiP+vXh2KT8skFxGjO/JS6zWPXdFZL4t/anHe aeP/AEVuLax3EAz/RtJxlPp/XOt0i3ahPAK8JXP3HO2XXAX0JiuAcsjAvgTkcxlqZ/s4 lwOQ== X-Gm-Message-State: AIVw111DGOO92f/+5oM1C0HejchFD90+mwGdFeHB9jVicuYZrQal+J2x KdGovjnJ9aDW0/3W X-Received: by 10.223.170.150 with SMTP id h22mr7347955wrc.140.1500563560799; Thu, 20 Jul 2017 08:12:40 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id c55sm7472686wrc.7.2017.07.20.08.12.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jul 2017 08:12:38 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 95BA53E0AF9; Thu, 20 Jul 2017 16:04:33 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Thu, 20 Jul 2017 16:04:19 +0100 Message-Id: <20170720150426.12393-17-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170720150426.12393-1-alex.bennee@linaro.org> References: <20170720150426.12393-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::22d Subject: [Qemu-devel] [RFC PATCH for 2.11 16/23] 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 , qemu-devel@nongnu.org, qemu-arm@nongnu.org, Paolo Bonzini , =?utf-8?q?A?= =?utf-8?q?lex_Benn=C3=A9e?= , rth@twiddle.net 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 --- include/exec/helper-head.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.13.0 diff --git a/include/exec/helper-head.h b/include/exec/helper-head.h index 1cfc43b9ff..fdb82151d3 100644 --- a/include/exec/helper-head.h +++ b/include/exec/helper-head.h @@ -30,6 +30,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 @@ -42,6 +43,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 * @@ -98,6 +100,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