diff options
author | Alexandre Oliva <oliva@adacore.com> | 2023-04-05 11:27:19 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2023-04-06 02:20:40 -0300 |
commit | 804208a2ab817c17d1eea627b671e77a15545a01 (patch) | |
tree | 5220d2223387013d16ca92da023aafbbecda49d5 | |
parent | 0f816116356fec32e3a3a2fb5af790a0438c5da4 (diff) | |
download | gcc-804208a2ab817c17d1eea627b671e77a15545a01.zip gcc-804208a2ab817c17d1eea627b671e77a15545a01.tar.gz gcc-804208a2ab817c17d1eea627b671e77a15545a01.tar.bz2 |
[testsuite] enable -maltivec like vect_int for signbit-2.c
Explicitly enable altivec if it's supported. vect_int tests for
powerpc_altivec_ok, but without the explicit option, if altivec is not
enabled by default, we end up expecting vectorization that doesn't
occur.
for gcc/testsuite/ChangeLog
* gcc.dg/signbit-2.c: Add -maltivec if supported.
-rw-r--r-- | gcc/testsuite/gcc.dg/signbit-2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/signbit-2.c b/gcc/testsuite/gcc.dg/signbit-2.c index 1624225..d7b406e 100644 --- a/gcc/testsuite/gcc.dg/signbit-2.c +++ b/gcc/testsuite/gcc.dg/signbit-2.c @@ -4,6 +4,7 @@ /* 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-additional-options "-maltivec" { target powerpc_altivec_ok } } */ /* { dg-skip-if "no fallback for MVE" { arm_mve } } */ #include <stdint.h> |