]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: remove -fwrapv from signbit-5.c
authorTamar Christina <tamar.christina@arm.com>
Thu, 5 Sep 2024 09:36:02 +0000 (10:36 +0100)
committerTamar Christina <tamar.christina@arm.com>
Thu, 5 Sep 2024 09:36:02 +0000 (10:36 +0100)
commit67eaf67360e434dd5969e1c66f043e3c751f9f52
tree5b63b2f94fb49790bcd53a31db805b0fcd02719b
parent240be78237c6d70e0b30ed187c559e359ce81557
testsuite: remove -fwrapv from signbit-5.c

The meaning of the testcase was changed by passing it -fwrapv.  The reason for
the test failures on some platform was because the test was testing some
implementation defined behavior wrt INT_MIN in generic code.

Instead of using -fwrapv this just removes the border case from the test so
all the values now have a defined semantic.  It still relies on the handling of
shifting a negative value right, but that wasn't changed with -fwrapv anyway.

The -fwrapv case is being handled already by other testcases.

gcc/testsuite/ChangeLog:

* gcc.dg/signbit-5.c: Remove -fwrapv and change INT_MIN to INT_MIN+1.
gcc/testsuite/gcc.dg/signbit-5.c