From patchwork Fri Feb 22 20:44:58 2019 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: 159080 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2188507jaa; Fri, 22 Feb 2019 13:01:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IYqdvpgFkBsWEu9ZoZcNuobCy63Buw2ZevzxaI1HZBqi2xUDYIi5rS40En561Pd6ZqVf+IL X-Received: by 2002:a25:4f04:: with SMTP id d4mr5373006ybb.138.1550869309448; Fri, 22 Feb 2019 13:01:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550869309; cv=none; d=google.com; s=arc-20160816; b=jQGtH+bSKIRHNe5fC8kNYEtvAlRfI8I/InxcE+zbT0mEQgWIh7dleyjj3DzMUiomoO iZt5T3thXwtMlAZxoSzpWLY4Sv6uIshPRUUInKMF1utF3/L2MhXtob2j5sQ+AyUuHApi PcWuZmOkDqfthcgyXTiu9SiKWF8QlKmAlkGG019d0jcVvm7bAdfIYgqdqUiMhizS53Ap OP/ugpWwANtAS+5/n6UT7u/ZK74Xy60vHqa9dDFZVTqdOa1EqhRDuGYlsAKMn74fPZWd 8wB8AVa9njmE7MGduWgMJ422EPYms0iIEtgOzOKwrw93DMN5E+M2ulVrNMxMThAu/Wc5 LQkw== 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; bh=7H5qrKyPnUHzhUw0KCPZrtdEbkrKMyIV+FaO4FKGkUU=; b=JPjvRUGGRKc/kpfbVuUXDQRXJrRvUpV4+L3StlUJSzqKe2eNd+t4AFa86SM7t+EcFT Er6JcjLpzPSU6w1yeKf05uIwelGv9O0nxH53JVQLMxTDKuAfPVIho83EvpvIpDeOTPC0 UWSYVLbNCLuv5dWdUwGXGjzFBfodTT9DExoUpAuuQF64eHEaDkQRyt3ta14Wl4rL3uyx xdheD1ORognt81/ty/MX8EP3YikJ7csFm9fTlEtkR2sMkqXmnTS3r5raPK8YGRtusEZr cySQpoDq1FmIFYiblzboaKMbNFrME/i2XZ244bJm4Hr+WLOOtl/MxJMFL6SIxK9IllCS AWNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=XYxVRzQj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id p9si1661389ybm.28.2019.02.22.13.01.49 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 22 Feb 2019 13:01:49 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=XYxVRzQj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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 ([127.0.0.1]:56869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxHx7-0007ma-2L for patch@linaro.org; Fri, 22 Feb 2019 16:01:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxHrf-0003HB-Vu for qemu-devel@nongnu.org; Fri, 22 Feb 2019 15:56:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxHgv-0006sd-1x for qemu-devel@nongnu.org; Fri, 22 Feb 2019 15:45:05 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:35841) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gxHgu-0006rN-Po for qemu-devel@nongnu.org; Fri, 22 Feb 2019 15:45:04 -0500 Received: by mail-wm1-x341.google.com with SMTP id j125so3123907wmj.1 for ; Fri, 22 Feb 2019 12:45:04 -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=7H5qrKyPnUHzhUw0KCPZrtdEbkrKMyIV+FaO4FKGkUU=; b=XYxVRzQjVYaGXW3mwHuwdt/Tt7hLxdYxrDb0dyZZxXnaEC3kslTRFxSMr7phb/0j6w eejReXPly/rXmzcCAVpok/vZ7mUMypPkq9AfOZ+DXfsQkiL+jHOc26IayKjTyKfW/SNS QcMJmHi6Q62Cgswr7WiWg4Ffio3ul+6OiqUGV2BbOKRZNuWhbpX+6/LVk4ZL1tTLOUil HcgcCYyRak+n07K1Yqx3KsVEIZn1QzL44NyZCuR2k/ls9Zx1rBSIi7e6Fi6tMfIyRf4/ Gz+A0EDSH7oWZINsBtP9qIdeYXZKsXC2AANk/o5w6lbcufQdo4fAY6qfN4yGhA78UXbq D0Rw== 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=7H5qrKyPnUHzhUw0KCPZrtdEbkrKMyIV+FaO4FKGkUU=; b=mY0DjzMUNQH2lsULCsx9/K9vE49MHMnGYmtdcOr2WEROqoCzxlImm7BV8bMo9wLgGS 7geolb1KFUdCVN6Yx0EPZ/0hhK0Tb5V1qvGhYbYBjng/HtaCABcSHL7VWaZxwxTb10ft kJpzKR1OX0Ag73Hf9xhPnIYk/TNa4GWB1XiCqx4ng0/zPAwWfNKbQaesPMozn80ADrEQ zG3L3ldbjScWX2D6TV+5YfC78+SobcVzv7LlfmoGGR9+eNByfvEljb54xj+RS4cwb8vj VoDwL0sDtaTVOGrRa+WsSdugfK+ko9gUp1TJjYNJ0WTvT2ojTfMTH1nD8jv9qQs8wxwT mvuQ== X-Gm-Message-State: AHQUAuaUYXNDcw7T4pjBwmNhj1Ez9C7PV7vaeRcQKoGQk1MDMlHFNBNZ PL9t2L1BBhhRA89lcJf0UJRewWb3gTg= X-Received: by 2002:a1c:a3c3:: with SMTP id m186mr3595538wme.16.1550868303539; Fri, 22 Feb 2019 12:45:03 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id d21sm5780168wrc.44.2019.02.22.12.45.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Feb 2019 12:45:02 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id A28ED1FF87; Fri, 22 Feb 2019 20:45:00 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 22 Feb 2019 20:44:58 +0000 Message-Id: <20190222204500.24434-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190222204500.24434-1-alex.bennee@linaro.org> References: <20190222204500.24434-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:4864:20::341 Subject: [Qemu-devel] [PATCH v1 4/6] tests/fp: add wrapping for f128_to_ui32 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: qemu-s390x@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Needed to test: softfloat: add float128_is_{normal,denormal} Signed-off-by: Alex Bennée --- tests/fp/fp-test.c | 3 ++- tests/fp/wrap.inc.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) -- 2.20.1 Reviewed-by: Richard Henderson diff --git a/tests/fp/fp-test.c b/tests/fp/fp-test.c index 2a35ef601d..4114f346a9 100644 --- a/tests/fp/fp-test.c +++ b/tests/fp/fp-test.c @@ -622,7 +622,8 @@ static void do_testfloat(int op, int rmode, bool exact) test_ab_extF80_z_bool(true_ab_extF80M_z_bool, subj_ab_extF80M_z_bool); break; case F128_TO_UI32: - not_implemented(); + test_a_f128_z_ui32_rx(slow_f128M_to_ui32, qemu_f128M_to_ui32, rmode, + exact); break; case F128_TO_UI64: test_a_f128_z_ui64_rx(slow_f128M_to_ui64, qemu_f128M_to_ui64, rmode, diff --git a/tests/fp/wrap.inc.c b/tests/fp/wrap.inc.c index d3bf600cd0..0cbd20013e 100644 --- a/tests/fp/wrap.inc.c +++ b/tests/fp/wrap.inc.c @@ -367,6 +367,7 @@ WRAP_80_TO_INT_MINMAG(qemu_extF80M_to_i64_r_minMag, WRAP_128_TO_INT(qemu_f128M_to_i32, float128_to_int32, int_fast32_t) WRAP_128_TO_INT(qemu_f128M_to_i64, float128_to_int64, int_fast64_t) +WRAP_128_TO_INT(qemu_f128M_to_ui32, float128_to_uint32, uint_fast32_t) WRAP_128_TO_INT(qemu_f128M_to_ui64, float128_to_uint64, uint_fast64_t) #undef WRAP_128_TO_INT