From nobody Wed Apr 16 14:11:16 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1675528610; cv=none; d=zohomail.com; s=zohoarc; b=F4vOpVNL5zr//oBZcPzOh64Tq61dWP3oTEMzAuUebkYVz0uQSy4n56pA2iLtzeRpvwMY6fDLFNxSGcIU6Vw5gATWMSVA6MdB2EjmxK81qomZbRfI8Pu+ToTUt1XKgl/Vm6bIlcna7P8R9tlxZdfUo/UrSMBIXTEFjZITkRAQE4Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1675528610; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=wHZLFNNm0ZFp31ulDF75QeL44+XwFwYbg39T7b6YDuI=; b=JG5XvxCtAsNzV7plNIBpVb2r/nf8+F8nKNpbvw5IC6PGkpaLXaZFe509u0fS3/aju/1rj9xVFCjKvyFtAdFAwVm1oTZwPURYpA0WPgcR+ouq+sJyX4IW9v/9HKACKGEGLIn/orazWnpKc8kemoH7KZXSfHYfNYKEsXBDIK5P4BQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1675528610715812.6464921578242; Sat, 4 Feb 2023 08:36:50 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOLUE-0005D5-44; Sat, 04 Feb 2023 11:33:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pOLUA-0005CN-Th for qemu-devel@nongnu.org; Sat, 04 Feb 2023 11:33:54 -0500 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pOLU9-0002XU-Dj for qemu-devel@nongnu.org; Sat, 04 Feb 2023 11:33:54 -0500 Received: by mail-pj1-x1032.google.com with SMTP id o16-20020a17090ad25000b00230759a8c06so4651111pjw.2 for ; Sat, 04 Feb 2023 08:33:53 -0800 (PST) Received: from stoup.. (rrcs-173-197-98-118.west.biz.rr.com. [173.197.98.118]) by smtp.gmail.com with ESMTPSA id w19-20020a1709029a9300b00186b69157ecsm3660859plp.202.2023.02.04.08.33.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Feb 2023 08:33:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wHZLFNNm0ZFp31ulDF75QeL44+XwFwYbg39T7b6YDuI=; b=rm3G0MUjs7FLL+eTsQjQ+Mcgv+mf+P81Q0I0Har2OqbTAOnFAqdA6Y8etT+L0FWATv V1WMxOb2UYvrxMyqRy0aB4YlCEW2xte/VBNAmYNSJFcQp5ok9/mR+9F3YM2vCst0vPdN KhiNgP7NSrHEpK19tXnoTJqANPSkjPE934OCpr7qPTA2+89d5DC8dg8EZzq7/+4ybAFs 9ST3f+9eiEb++cHr9uP6xhZxMfB57q6hq6SrYk5S5gdCnfO27iW5CsEPauwzXo1IbPOV oh7Y2tr6cfD1kVZjG/0SO71QcZCtSlIIr5796dRcFJd1TSdbP/0e6EqaGlWjb7JSsM/Q 2o6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wHZLFNNm0ZFp31ulDF75QeL44+XwFwYbg39T7b6YDuI=; b=m88evoljxkg42gNDgaKslVXpa9i+9kqhG/SquGi7zOUY7hvkzc78InqrQF2EeZ+5o4 P4/PxK213r0V5cTT24ouOx87wG69tF9exFMOgWS/TcmWkP8o6td/GTvC3MFlIDxTW0le izTKlW5fGRjJvupx5Btyr+zxhJVTHy467knamgbBZsPblhbkvaxeyz9TZLsTc0L3+Cpf MfjhClBWAU17mAZleHAXP92BW6ikbea6umm0Lkbk3/KUO07elS9ief3C/5Y5v4mW5hrw vNdAz3LGQpPGUhYf1NbiNl9qRC5uQoORvjfhciqbATpdWou01/xArbQkS48liDxe6tlN e6sg== X-Gm-Message-State: AO0yUKWVhWnZaB3CU6Odv8vVyXeD3ccvWgFzO56STXVuML6NyJk2KAZI +6UBY9Qjfvd57NCJTS4xcN1Oq5ggqz4eLgOr X-Google-Smtp-Source: AK7set9SWrvmkpERmmsW7sYpI8tN8yJqQy+jSwA4OKdqKQ/nwG5nA3bjMIaJ6hXES4N3yJzC7iR/DA== X-Received: by 2002:a17:902:e2cb:b0:198:68b1:6255 with SMTP id l11-20020a170902e2cb00b0019868b16255mr12084106plc.56.1675528432614; Sat, 04 Feb 2023 08:33:52 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Ilya Leoshkevich , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 25/40] tests/tcg/s390x: Add long-double.c Date: Sat, 4 Feb 2023 06:32:55 -1000 Message-Id: <20230204163310.815536-26-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230204163310.815536-1-richard.henderson@linaro.org> References: <20230204163310.815536-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1032.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1675528612316100007 Acked-by: Ilya Leoshkevich Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson --- tests/tcg/s390x/long-double.c | 24 ++++++++++++++++++++++++ tests/tcg/s390x/Makefile.target | 1 + 2 files changed, 25 insertions(+) create mode 100644 tests/tcg/s390x/long-double.c diff --git a/tests/tcg/s390x/long-double.c b/tests/tcg/s390x/long-double.c new file mode 100644 index 0000000000..757a6262fd --- /dev/null +++ b/tests/tcg/s390x/long-double.c @@ -0,0 +1,24 @@ +/* + * Perform some basic arithmetic with long double, as a sanity check. + * With small integral numbers, we can cross-check with integers. + */ + +#include + +int main() +{ + int i, j; + + for (i =3D 1; i < 5; i++) { + for (j =3D 1; j < 5; j++) { + long double la =3D (long double)i + j; + long double lm =3D (long double)i * j; + long double ls =3D (long double)i - j; + + assert(la =3D=3D i + j); + assert(lm =3D=3D i * j); + assert(ls =3D=3D i - j); + } + } + return 0; +} diff --git a/tests/tcg/s390x/Makefile.target b/tests/tcg/s390x/Makefile.tar= get index 79250f31dd..1d454270c0 100644 --- a/tests/tcg/s390x/Makefile.target +++ b/tests/tcg/s390x/Makefile.target @@ -26,6 +26,7 @@ TESTS+=3Dbranch-relative-long TESTS+=3Dnoexec TESTS+=3Ddiv TESTS+=3Dclst +TESTS+=3Dlong-double =20 Z13_TESTS=3Dvistr $(Z13_TESTS): CFLAGS+=3D-march=3Dz13 -O2 --=20 2.34.1