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: 1047128 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="XYxVRzQj"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 445kL33LLQz9sBR for ; Sat, 23 Feb 2019 08:02:03 +1100 (AEDT) Received: from localhost ([127.0.0.1]:56869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxHxJ-0007ma-GX for incoming@patchwork.ozlabs.org; Fri, 22 Feb 2019 16:02:01 -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-Google-Smtp-Source: AHgI3IYJcLPBSdTJY6sJTQ/Tm4v0LU/mWexjPMjG3FvUDIV2QtOh451SNYbJeqoaGWq8alZnKIX4Bg== 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Needed to test: softfloat: add float128_is_{normal,denormal} Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- tests/fp/fp-test.c | 3 ++- tests/fp/wrap.inc.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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