From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9E04C385843B; Wed, 25 Aug 2021 23:25:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9E04C385843B From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94630] General bug for changes needed to switch the powerpc64le-linux long double default Date: Wed, 25 Aug 2021 23:25:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: ABI X-Bugzilla-Severity: enhancement X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: meissner at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2021 23:25:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94630 --- Comment #9 from CVS Commits --- The master branch has been updated by Michael Meissner : https://gcc.gnu.org/g:4c5d76a655b9abdacaa992ab1167b33d35c3ffe9 commit r12-3151-g4c5d76a655b9abdacaa992ab1167b33d35c3ffe9 Author: Michael Meissner Date: Wed Aug 25 19:25:12 2021 -0400 Fix tests that require IBM 128-bit long double This patch adds 3 more selections to target-supports.exp to see if we c= an specify to use a particular long double format (IEEE 128-bit, IBM exten= ded double, 64-bit), and the library support will track the changes for the long double. This is needed because two of the tests in the test suite use = long double, and they are actually testing IBM extended double. This patch also forces the two tests that explicitly require long double to use the IBM double-double encoding to explicitly run the test. This requires GLIBC 2.32 or greater in order to do the switch. I have run tests on a little endian power9 system with 3 compilers. Th= ere were no regressions with these patches, and the two tests in the following patches now work if the default long double is not IBM 128-bit: * One compiler used the default IBM 128-bit format; * One compiler used the IEEE 128-bit format; (and) * One compiler used 64-bit long doubles. I have also tested compilers on a big endian power8 system with a compi= ler defaulting to power8 code generation and another with the default cpu set. There were no regressions. 2021-08-25 Michael Meissner gcc/testsuite/ PR target/94630 * gcc.target/powerpc/pr70117.c: Specify that we need the long double type to be IBM 128-bit. Remove the code to use __ibm128. * c-c++-common/dfp/convert-bfp-11.c: Specify that we need the l= ong double type to be IBM 128-bit. Run the test at -O2 optimizatio= n. * lib/target-supports.exp (add_options_for_long_double_ibm128):= New function. (check_effective_target_long_double_ibm128): New function. (add_options_for_long_double_ieee128): New function. (check_effective_target_long_double_ieee128): New function. (add_options_for_long_double_64bit): New function. (check_effective_target_long_double_64bit): New function.=