public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH/testsuite] Skip vect-strided-shift-1.c on MIPS with -mpaired-single option.
@ 2018-03-14  7:44 Paul Hua
  2018-03-20 21:05 ` Jeff Law
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Hua @ 2018-03-14  7:44 UTC (permalink / raw)
  To: gcc-patches; +Cc: Moore, Catherine (Catherine_Moore@mentor.com), mfortune

[-- Attachment #1: Type: text/plain, Size: 744 bytes --]

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.

[-- Attachment #2: skip-mips-mpaired-single-vect-strided-shift-1.patch --]
[-- Type: text/x-patch, Size: 421 bytes --]

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"
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH/testsuite] Skip vect-strided-shift-1.c on MIPS with -mpaired-single option.
  2018-03-14  7:44 [PATCH/testsuite] Skip vect-strided-shift-1.c on MIPS with -mpaired-single option Paul Hua
@ 2018-03-20 21:05 ` Jeff Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2018-03-20 21:05 UTC (permalink / raw)
  To: Paul Hua, gcc-patches
  Cc: Moore, Catherine (Catherine_Moore@mentor.com), mfortune

On 03/14/2018 12:29 AM, Paul Hua wrote:
> 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.
> 
OK.  Though this may point to a need to have a new target-supports routine.

jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-20 21:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-14  7:44 [PATCH/testsuite] Skip vect-strided-shift-1.c on MIPS with -mpaired-single option Paul Hua
2018-03-20 21:05 ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).