This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH/testsuite] Skip vect-strided-shift-1.c on MIPS with -mpaired-single option.


Hi:

The vect-strided-shift-1.c test fails on MIPS target.

FAIL: gcc.dg/vect/vect-strided-shift-1.c  -mpaired-single
scan-tree-dump-times vect "vectorized 1 loops in function" 1 (found 0
times)
FAIL: gcc.dg/vect/vect-strided-shift-1.c -flto -ffat-lto-objects
-mpaired-single  scan-tree-dump-times vect "vectorized 1 loops in
function" 1 (found 0 times)

Because the MIPS paired single insns only support for float
operations, not suite for this test.
added dg-skip-if directives on it for skip -mpaired-single option.

Ok for commit ?

Paul Hua

ChangeLog entries:

gcc/testsuite/ChangeLog

2018-03-14  Chenghua Xu <paul.hua.gm@gmail.com>

    * gcc.dg/vect/vect-strided-shift-1.c: Add dg-skip-if for
    MIPS with -mpaired-single directives.
diff --git a/gcc/testsuite/gcc.dg/vect/vect-strided-shift-1.c b/gcc/testsuite/gcc.dg/vect/vect-strided-shift-1.c
index b1ce2ec..dcae9c2 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-strided-shift-1.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-strided-shift-1.c
@@ -1,3 +1,4 @@
+/* { dg-skip-if "Skip for mips -mpaired-single" { mips*-*-* } { "-mpaired-single" } } */
 /* PR tree-optimization/65963.  */
 #include "tree-vect.h"
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]