public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-3621] testsuite: Fix gen-vect-34.c with vect_masked_load [PR106806]
@ 2022-11-03  6:24 Kewen Lin
  0 siblings, 0 replies; only message in thread
From: Kewen Lin @ 2022-11-03  6:24 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:20d5dca80b82df9b1295359edb44eb08c45c4334

commit r13-3621-g20d5dca80b82df9b1295359edb44eb08c45c4334
Author: Kewen Lin <linkw@linux.ibm.com>
Date:   Thu Nov 3 01:22:45 2022 -0500

    testsuite: Fix gen-vect-34.c with vect_masked_load [PR106806]
    
    This is to fix the failure on powerpc as reported in PR106806,
    the test case requires tree ifcvt pass to perform on that loop,
    and it relies on masked_load support.  The fix is to guard the
    expected scan with vect_masked_load effective target.
    
    As tested on powerpc64{,le}-linux-gnu and aarch64-linux-gnu
    (cfarm machine), the failures were gone.  But on
    x86_64-redhat-linux (cfarm machine) the result becomes from
    PASS to N/A.  I think it's expected since that machine doesn't
    support AVX by default so both check_avx_available and
    vect_masked_load fail, it should work fine on machines with
    default AVX support, or if we adjust the current
    check_avx_available with current_compiler_flags.
    
            PR testsuite/106806
    
    gcc/testsuite/ChangeLog:
    
            * gcc.dg/tree-ssa/gen-vect-34.c: Adjust with vect_masked_load
            effective target.

Diff:
---
 gcc/testsuite/gcc.dg/tree-ssa/gen-vect-34.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-34.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-34.c
index 41877e05efd..c2e5dfea35f 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-34.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-34.c
@@ -13,4 +13,4 @@ float summul(int n, float *arg1, float *arg2)
     return res1;                                       
 }
 
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { ! { avr-*-* pru-*-* riscv*-*-* } } } } } */
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_masked_load } } } */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-03  6:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-03  6:24 [gcc r13-3621] testsuite: Fix gen-vect-34.c with vect_masked_load [PR106806] Kewen Lin

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).