On Tue, 2024-02-06 at 17:55 +0800, Xi Ruoyao wrote: > Recently I've fixed two wrong FP vector negate implementation which > caused wrong sign bits in zeros in targets (r14-8786 and r14-8801). To > prevent a similar issue from happening again, add a test case. > > Tested on x86_64 (with SSE2, AVX, AVX2, and AVX512F), AArch64, MIPS > (with MSA), LoongArch (with LSX and LASX). > > gcc/testsuite: > > * gcc.dg/vect/vect-neg-zero.c: New test. > --- > > Ok for trunk? > > gcc/testsuite/gcc.dg/vect/vect-neg-zero.c | 39 +++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > create mode 100644 gcc/testsuite/gcc.dg/vect/vect-neg-zero.c > > diff --git a/gcc/testsuite/gcc.dg/vect/vect-neg-zero.c > b/gcc/testsuite/gcc.dg/vect/vect-neg-zero.c > new file mode 100644 > index 00000000000..adb032f5c6a > --- /dev/null > +++ b/gcc/testsuite/gcc.dg/vect/vect-neg-zero.c > @@ -0,0 +1,39 @@ > +/* { dg-do run } */
This patch fails on Linaro CI for ARM. I guess I need to remove this { dg-do run } line and let the test framework to decide run or compile. -- Xi Ruoyao <xry...@xry111.site> School of Aerospace Science and Technology, Xidian University