Re: [PATCH 4/7] testsuite: request IEEE options for tests relying on NaN and infinity

Jeffrey Law <[email protected]>
Newsgroups gmane.comp.gcc.patches
Message-ID <[email protected]>

On 8/14/2026 1:39 PM, Andrea Pinski wrote:
> On Fri, Aug 14, 2026 at 12:33 PM Matt Turner <[email protected]> wrote:
>> These tests feed NaNs or infinities through floating-point comparisons.
>> Alpha only generates IEEE-conformant code with -mieee: without it GCC emits
>> cmpteq rather than cmpteq/su, and an invalid-operation trap on a non-finite
>> operand is not software-completable, so the program dies with SIGFPE.
>>
>> Use dg-add-options ieee, which adds -mieee on alpha and sh, rather than
>> marking the tests as expected failures.  The compiler behaves as documented
>> and the tests check something meaningful once IEEE semantics are requested.
>>
>> gcc/testsuite/ChangeLog:
>>
>>          * g++.dg/opt/pr94589-6.C: Add dg-add-options ieee.
>>          * g++.dg/torture/pr116120-2.C: Likewise.
>>          * gcc.c-torture/execute/20190901-1.c: Likewise.
>>          * gcc.dg/pr108447.c: Likewise.
>>          * gcc.dg/pr94589-6.c: Likewise.
>>          * gcc.dg/torture/pr126464.c: Likewise.
>>          * gcc.dg/torture/pr126576.c: Likewise.
> Ok.
I've pushed this to the trunk.
jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.