diff options
author | Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> | 2024-08-16 12:03:57 +0200 |
---|---|---|
committer | Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> | 2024-08-16 16:17:29 +0200 |
commit | 5a3387938d4d95717cac29eecd0ba53e0ef9094d (patch) | |
tree | 965655ff7d0744bf0c462528f3e9d45baea25348 /gcc | |
parent | 9cdde72d1cefdf2ffff52ad2eec1ff465dccb3ab (diff) | |
download | gcc-5a3387938d4d95717cac29eecd0ba53e0ef9094d.zip gcc-5a3387938d4d95717cac29eecd0ba53e0ef9094d.tar.gz gcc-5a3387938d4d95717cac29eecd0ba53e0ef9094d.tar.bz2 |
testsuite: Add -fwrapv to signbit-5.c
On Cortex-M55 with MVE, the test case fails due to -INT_MAX being
undefined. Adding -fwrapv solves the issues.
Regtested on x86_64-pc-linux-gnu and arm-none-eabi for
Cortex-M0/M3/M4/M7/M33/M55/M85/A7.
gcc/testsuite/ChangeLog:
* gcc.dg/signbit-5.c: Add -fwrapv and remove x86 exception.
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Co-authored-by: Yvan ROUX <yvan.roux@foss.st.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/signbit-5.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/signbit-5.c b/gcc/testsuite/gcc.dg/signbit-5.c index 1e1b237..2bca640 100644 --- a/gcc/testsuite/gcc.dg/signbit-5.c +++ b/gcc/testsuite/gcc.dg/signbit-5.c @@ -1,8 +1,7 @@ /* { dg-do run } */ -/* { dg-options "-O3" } */ +/* { dg-options "-O3 -fwrapv" } */ /* This test does not work when the truth type does not match vector type. */ -/* { dg-additional-options "-mno-avx512f" { target { i?86-*-* x86_64-*-* } } } */ /* { dg-additional-options "-march=armv8-a" { target aarch64_sve } } */ /* { dg-xfail-run-if "truth type does not match vector type" { amdgcn-*-* } } */ /* { dg-xfail-run-if "truth type does not match vector type" { riscv_v } } */ |