From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id B50FE3858C2A; Thu, 18 Jan 2024 11:48:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B50FE3858C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1705578495; bh=a6ScTASnTMdaA7pg5+6yztrPUcQnePkE8OV+L6nJEws=; h=From:To:Subject:Date:From; b=AXHBCHAvJszEqo1wKZMG2mDBB5741fsCupEiDf8Y+3MRXD7uYE8gNDcrumhNx6new yu1JlHv05FKCsj+E8PFXbyUrcNAozOBQ85WVn5wV6BrLMB+oL2YZTRy3TPJFBgQUM/ S0GNm596O7LjTr56apaOihAXM2bEprd7KIBO2uyY= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] sparc: Do not test preservation of NaN payloads for LEON X-Act-Checkin: glibc X-Git-Author: Daniel Cederman X-Git-Refname: refs/heads/master X-Git-Oldrev: 45f7ea26c1d9145a9e024b8646592d405fb285e0 X-Git-Newrev: 87d921e270acd614077764228881ffcf5e21d9f7 Message-Id: <20240118114815.B50FE3858C2A@sourceware.org> Date: Thu, 18 Jan 2024 11:48:15 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=87d921e270acd614077764228881ffcf5e21d9f7 commit 87d921e270acd614077764228881ffcf5e21d9f7 Author: Daniel Cederman Date: Fri Jan 12 10:26:23 2024 +0100 sparc: Do not test preservation of NaN payloads for LEON The FPU used by LEON does not preserve NaN payload. This change allows the math/test-*-canonicalize tests to pass on LEON. Signed-off-by: Daniel Cederman Reviewed-by: Adhemerval Zanella Diff: --- .../sparc/sparc32/fpu/math-tests-snan-payload.h | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/sysdeps/sparc/sparc32/fpu/math-tests-snan-payload.h b/sysdeps/sparc/sparc32/fpu/math-tests-snan-payload.h new file mode 100644 index 0000000000..d84e4d997b --- /dev/null +++ b/sysdeps/sparc/sparc32/fpu/math-tests-snan-payload.h @@ -0,0 +1,30 @@ +/* Configuration for math tests: sNaN payloads. SPARC version. + Copyright (C) 2016-2024 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#ifndef SPARC_MATH_TESTS_SNAN_PAYLOAD_H +#define SPARC_MATH_TESTS_SNAN_PAYLOAD_H 1 + +/* LEON floating-point instructions do not preserve sNaN + payloads. */ +#if defined (__leon__) +# define SNAN_TESTS_PRESERVE_PAYLOAD 0 +#else +# define SNAN_TESTS_PRESERVE_PAYLOAD 1 +#endif + +#endif /* math-tests-snan-payload.h. */