diff options
author | Tamar Christina <tamar.christina@arm.com> | 2024-09-05 10:36:02 +0100 |
---|---|---|
committer | Tamar Christina <tamar.christina@arm.com> | 2024-09-05 10:36:02 +0100 |
commit | 67eaf67360e434dd5969e1c66f043e3c751f9f52 (patch) | |
tree | 5b63b2f94fb49790bcd53a31db805b0fcd02719b | |
parent | 240be78237c6d70e0b30ed187c559e359ce81557 (diff) | |
download | gcc-67eaf67360e434dd5969e1c66f043e3c751f9f52.zip gcc-67eaf67360e434dd5969e1c66f043e3c751f9f52.tar.gz gcc-67eaf67360e434dd5969e1c66f043e3c751f9f52.tar.bz2 |
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.
-rw-r--r-- | gcc/testsuite/gcc.dg/signbit-5.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.dg/signbit-5.c b/gcc/testsuite/gcc.dg/signbit-5.c index 57e29e3..2601582 100644 --- a/gcc/testsuite/gcc.dg/signbit-5.c +++ b/gcc/testsuite/gcc.dg/signbit-5.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O3 -fwrapv" } */ +/* { dg-options "-O3" } */ /* This test does not work when the truth type does not match vector type. */ /* { dg-additional-options "-march=armv8-a" { target aarch64_sve } } */ @@ -42,8 +42,8 @@ int main () TYPE a[N]; TYPE b[N]; - a[0] = INT_MIN; - b[0] = INT_MIN; + a[0] = INT_MIN+1; + b[0] = INT_MIN+1; for (int i = 1; i < N; ++i) { |