From patchwork Wed Oct 9 01:27:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liuhongt X-Patchwork-Id: 1994528 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=llZIb56S; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XNZyz1hJWz1xsv for ; Wed, 9 Oct 2024 12:28:27 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6CAD0386544C for ; Wed, 9 Oct 2024 01:28:25 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by sourceware.org (Postfix) with ESMTPS id 29AD2385DDCF; Wed, 9 Oct 2024 01:27:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 29AD2385DDCF Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 29AD2385DDCF Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.19 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728437282; cv=none; b=r0NuXCELXkBJUKF8X9+qPBuECXZ4B7Kc68HkZeGAG9sSaa41Zn3HnnHJfzhK662Rjhsr8Gz/PSqcBG27KB0ftz2KbtsusV0uR7iwoy0T/tuDZYsiS/ar2ha9rNKUWGdvK8CHX1c1GGIm552WdlNWMhO+1FjL3AEt3WSaMzTyWv8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728437282; c=relaxed/simple; bh=PNvwah//+LUYBxhOVia11ss+44SsVdDxy2VfAO74rjU=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=PrMxM/Gr/xyPLEIbBhWB8FhEy52KGEr4YhwEMYzMX8Gu8QVQmNbq3V94jd+5aQoZ6vzh5URks3jEaSiftDYLSgazmuJWTBUue9DRuqC48SV3cCVDlv5eR+FOB42K5ve7WpvtKdBReEPCBvdv1zOp0mNP5v2dE7Sn26v9+p74JVo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728437279; x=1759973279; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PNvwah//+LUYBxhOVia11ss+44SsVdDxy2VfAO74rjU=; b=llZIb56SeQxmoe2Wzfk1C+n3gvkW3a62aERfZtKJAuPd09bjpmfWcYry rehsFtXhUYrWzgX8XrGAgAKgvggw1u9SL9INNp7Mi7fFCgOMOduDWdWp6 EUeTm7MKGUpvgm9Hop4bIpRVYclZJ9lAGuI6j+Y2ts9Lyp+mvCch2YsCS DZAOj3478T5OgoTzIij8pwQlAwiSto2J4/Q8S8I6iFX+cOtCHkskTkT8D VWS0XvhU3Vth+VDTRMmMgEUNYGqUUyusjgmt2Sw1Pd96jE3EQECKeXkq8 3SVkTcJBokhElTKPqwVNxLj4wbDKyNE2yKZnH1ynwhrB2cnBnh93w9ek7 w==; X-CSE-ConnectionGUID: Oaf3atCDRZ+8rEKG7s/Mhg== X-CSE-MsgGUID: YXFtl34SQ8C/6cusQ6NMyg== X-IronPort-AV: E=McAfee;i="6700,10204,11219"; a="27597217" X-IronPort-AV: E=Sophos;i="6.11,188,1725346800"; d="scan'208";a="27597217" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2024 18:27:58 -0700 X-CSE-ConnectionGUID: YT7EbisrSRCW/smeaiuuCg== X-CSE-MsgGUID: GR6bEclaSC+RloMY4vl/4g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,188,1725346800"; d="scan'208";a="99417692" Received: from shliclel4217.sh.intel.com ([10.239.240.127]) by fmviesa002.fm.intel.com with ESMTP; 08 Oct 2024 18:27:55 -0700 From: liuhongt To: gcc-patches@gcc.gnu.org Cc: richard.guenther@gmail.com, dje.gcc@gmail.com, ebotcazou@libertysurf.fr, krebbel@linux.ibm.com, syq@gcc.gnu.org, xuchenghua@loongson.cn, ams@baylibre.com, richard.earnshaw@arm.com, hjl.tools@gmail.com, richard.sandiford@arm.com Subject: [PATCH v3 2/2] Adjust testcase after relax O2 vectorization. Date: Wed, 9 Oct 2024 09:27:51 +0800 Message-Id: <20241009012752.900506-2-hongtao.liu@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241009012752.900506-1-hongtao.liu@intel.com> References: <20240911021637.3759883-1-hongtao.liu@intel.com> <20241009012752.900506-1-hongtao.liu@intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org Update in V3. >The testcase looks bogus: > > b[i+k] = b[i+k-5] + 2; > >accesses b[-3], can you instead adjust the inner loop to start with k == 4? Changed, also adjust b[100] to b[200] to avoid array out of bound. >Please remove this testcase - even with fully masking we'd need alias >versioning. Changed. Ready push to trunk. gcc/testsuite/ChangeLog: * gcc.dg/fstack-protector-strong.c: Adjust scan-assembler-times. * gcc.dg/graphite/scop-6.c: Refine the testcase to avoid array out of bounds. * gcc.dg/graphite/scop-9.c: Ditto. * gcc.dg/tree-ssa/ivopts-lt-2.c: Add -fno-tree-vectorize. * gcc.dg/tree-ssa/ivopts-lt.c: Ditto. * gcc.dg/tree-ssa/loop-16.c: Ditto. * gcc.dg/tree-ssa/loop-28.c: Ditto. * gcc.dg/tree-ssa/loop-bound-2.c: Ditto. * gcc.dg/tree-ssa/loop-bound-4.c: Ditto. * gcc.dg/tree-ssa/loop-bound-6.c: Ditto. * gcc.dg/tree-ssa/predcom-4.c: Ditto. * gcc.dg/tree-ssa/predcom-5.c: Ditto. * gcc.dg/tree-ssa/scev-11.c: Ditto. * gcc.dg/tree-ssa/scev-9.c: Ditto. * gcc.dg/tree-ssa/split-path-11.c: Ditto. * gcc.dg/unroll-8.c: Ditto. * gcc.dg/var-expand1.c: Ditto. * gcc.dg/vect/vect-cost-model-6.c: Removed. * gcc.target/i386/pr86270.c: Ditto. * gcc.target/i386/pr86722.c: Ditto. * gcc.target/x86_64/abi/callabi/leaf-2.c: Ditto. --- gcc/testsuite/gcc.dg/fstack-protector-strong.c | 2 +- gcc/testsuite/gcc.dg/graphite/scop-6.c | 7 +++---- gcc/testsuite/gcc.dg/graphite/scop-9.c | 4 ++-- gcc/testsuite/gcc.dg/tree-ssa/ivopts-lt-2.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/ivopts-lt.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/loop-16.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/loop-28.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/loop-bound-2.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/loop-bound-4.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/loop-bound-6.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/predcom-4.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/predcom-5.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/scev-11.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/scev-9.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/split-path-11.c | 2 +- gcc/testsuite/gcc.dg/unroll-8.c | 3 +-- gcc/testsuite/gcc.dg/var-expand1.c | 2 +- gcc/testsuite/gcc.dg/vect/vect-cost-model-6.c | 12 ------------ gcc/testsuite/gcc.target/i386/pr86270.c | 2 +- gcc/testsuite/gcc.target/i386/pr86722.c | 2 +- gcc/testsuite/gcc.target/x86_64/abi/callabi/leaf-2.c | 2 +- 21 files changed, 23 insertions(+), 37 deletions(-) delete mode 100644 gcc/testsuite/gcc.dg/vect/vect-cost-model-6.c diff --git a/gcc/testsuite/gcc.dg/fstack-protector-strong.c b/gcc/testsuite/gcc.dg/fstack-protector-strong.c index 94dc3508f1a..b9f63966b7c 100644 --- a/gcc/testsuite/gcc.dg/fstack-protector-strong.c +++ b/gcc/testsuite/gcc.dg/fstack-protector-strong.c @@ -154,4 +154,4 @@ void foo12 () global3 (); } -/* { dg-final { scan-assembler-times "stack_chk_fail" 12 } } */ +/* { dg-final { scan-assembler-times "stack_chk_fail" 11 } } */ diff --git a/gcc/testsuite/gcc.dg/graphite/scop-6.c b/gcc/testsuite/gcc.dg/graphite/scop-6.c index 9bc1d9f4ccd..e7e0a080c5f 100644 --- a/gcc/testsuite/gcc.dg/graphite/scop-6.c +++ b/gcc/testsuite/gcc.dg/graphite/scop-6.c @@ -4,7 +4,7 @@ int toto() { int i, j, k; int a[100][100]; - int b[100]; + int b[200]; for (i = 1; i < 100; i++) { @@ -18,9 +18,8 @@ int toto() for (k = 1; k < 100; k++) b[i+k] = b[i+k-1] + 2; } - - for (k = 1; k < 100; k++) - b[i+k] = b[i+k-5] + 2; + for (k = 4; k < 100; k++) + b[i+k] = b[i+k-5] + 2; } return a[3][5] + b[2]; diff --git a/gcc/testsuite/gcc.dg/graphite/scop-9.c b/gcc/testsuite/gcc.dg/graphite/scop-9.c index b19291be2f8..2676452b1e6 100644 --- a/gcc/testsuite/gcc.dg/graphite/scop-9.c +++ b/gcc/testsuite/gcc.dg/graphite/scop-9.c @@ -4,7 +4,7 @@ int toto() { int i, j, k; int a[100][100]; - int b[100]; + int b[200]; for (i = 1; i < 100; i++) { @@ -14,7 +14,7 @@ int toto() if (i * 2 == i + 8) a[i][i] = 2; - for (k = 1; k < 100; k++) + for (k = 4; k < 100; k++) b[i+k] = b[i+k-5] + 2; } diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ivopts-lt-2.c b/gcc/testsuite/gcc.dg/tree-ssa/ivopts-lt-2.c index bdbdbff19ff..be325775fbb 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ivopts-lt-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ivopts-lt-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fno-tree-loop-distribute-patterns -fdump-tree-ivopts" } */ +/* { dg-options "-O2 -fno-tree-vectorize -fno-tree-loop-distribute-patterns -fdump-tree-ivopts" } */ /* { dg-skip-if "PR68644" { hppa*-*-* powerpc*-*-* } } */ void diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ivopts-lt.c b/gcc/testsuite/gcc.dg/tree-ssa/ivopts-lt.c index 71d7f672c44..8d2b9d39355 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ivopts-lt.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ivopts-lt.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fno-tree-loop-distribute-patterns -fdump-tree-ivopts" } */ +/* { dg-options "-O2 -fno-tree-vectorize -fno-tree-loop-distribute-patterns -fdump-tree-ivopts" } */ /* { dg-require-effective-target stdint_types } */ #include "stdint.h" diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-16.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-16.c index 6bcb56cf3a9..92587f17df0 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-16.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-16.c @@ -2,7 +2,7 @@ at most 100 times, thus the (32-bit) induction variables do not overflow, and we may use 64-bit variable to represent them. */ -/* { dg-options "-O2 -fdump-tree-optimized" } */ +/* { dg-options "-O2 -fno-tree-vectorize -fdump-tree-optimized" } */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ unsigned a[100]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-28.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-28.c index 3ca0ab8ea5f..85769c914c3 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-28.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-28.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */ -/* { dg-options "-O2 -fprefetch-loop-arrays -march=amdfam10 -fdump-tree-optimized -fdump-tree-aprefetch --param max-unrolled-insns=1000" } */ +/* { dg-options "-O2 -fno-tree-vectorize -fprefetch-loop-arrays -march=amdfam10 -fdump-tree-optimized -fdump-tree-aprefetch --param max-unrolled-insns=1000" } */ char x[100000]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-bound-2.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-bound-2.c index 802dd290e50..d93e5654e7a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-bound-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-bound-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-ivopts-details" } */ +/* { dg-options "-O2 -fno-tree-vectorize -fdump-tree-ivopts-details" } */ int *a; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-bound-4.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-bound-4.c index b9d7d4196aa..543d9a5120b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-bound-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-bound-4.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-ivopts-details" } */ +/* { dg-options "-O2 -fno-tree-vectorize -fdump-tree-ivopts-details" } */ int *a; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-bound-6.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-bound-6.c index 8319434985d..74f88f17f78 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-bound-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-bound-6.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-ivopts-details" } */ +/* { dg-options "-O2 -fno-tree-vectorize -fdump-tree-ivopts-details" } */ int *a; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/predcom-4.c b/gcc/testsuite/gcc.dg/tree-ssa/predcom-4.c index af9ae0e0f3d..7c99ccd109a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/predcom-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/predcom-4.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O2 -funroll-loops --param max-unroll-times=8 -fpredictive-commoning -fdump-tree-pcom-details-blocks" } */ +/* { dg-options "-O2 -fno-tree-vectorize -funroll-loops --param max-unroll-times=8 -fpredictive-commoning -fdump-tree-pcom-details-blocks" } */ /* Test for predictive commoning of expressions, without reassociation. */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/predcom-5.c b/gcc/testsuite/gcc.dg/tree-ssa/predcom-5.c index 52adb59d669..6b8a13fe830 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/predcom-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/predcom-5.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O2 -funroll-loops --param max-unroll-times=8 -fpredictive-commoning -fdump-tree-pcom-details-blocks" } */ +/* { dg-options "-O2 -fno-tree-vectorize -funroll-loops --param max-unroll-times=8 -fpredictive-commoning -fdump-tree-pcom-details-blocks" } */ /* Test for predictive commoning of expressions, with reassociation. */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/scev-11.c b/gcc/testsuite/gcc.dg/tree-ssa/scev-11.c index f15688538ea..2506eb89b74 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/scev-11.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/scev-11.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-ivopts-details" } */ +/* { dg-options "-O2 -fno-tree-vectorize -fdump-tree-ivopts-details" } */ int a[128]; extern int b[]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/scev-9.c b/gcc/testsuite/gcc.dg/tree-ssa/scev-9.c index cbd7c85edfa..7381e961e93 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/scev-9.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/scev-9.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-ivopts-details" } */ +/* { dg-options "-O2 -fno-tree-vectorize -fdump-tree-ivopts-details" } */ int *a; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/split-path-11.c b/gcc/testsuite/gcc.dg/tree-ssa/split-path-11.c index 6c15c16151b..1f042414467 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/split-path-11.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/split-path-11.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fsplit-paths -fdump-tree-split-paths-details -w" } */ +/* { dg-options "-O2 -fno-tree-vectorize -fsplit-paths -fdump-tree-split-paths-details -w" } */ void foo(unsigned long long *M) { diff --git a/gcc/testsuite/gcc.dg/unroll-8.c b/gcc/testsuite/gcc.dg/unroll-8.c index 4388f47d4c7..6cd8dacc365 100644 --- a/gcc/testsuite/gcc.dg/unroll-8.c +++ b/gcc/testsuite/gcc.dg/unroll-8.c @@ -1,6 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-rtl-loop2_unroll-details-blocks -funroll-loops" } */ -/* { dg-additional-options "-fno-tree-vectorize" { target amdgcn-*-* } } */ +/* { dg-options "-O2 -fno-tree-vectorize -fdump-rtl-loop2_unroll-details-blocks -funroll-loops" } */ struct a {int a[7];}; int t(struct a *a, int n) diff --git a/gcc/testsuite/gcc.dg/var-expand1.c b/gcc/testsuite/gcc.dg/var-expand1.c index 3d536cef2b3..1f3f3b3338c 100644 --- a/gcc/testsuite/gcc.dg/var-expand1.c +++ b/gcc/testsuite/gcc.dg/var-expand1.c @@ -2,7 +2,7 @@ /* We don't (and don't want to) perform this optimisation on soft-float targets, where each addition is a library call. */ /* { dg-require-effective-target hard_float } */ -/* { dg-options "-O2 -funroll-loops --fast-math -fvariable-expansion-in-unroller -fdump-rtl-loop2_unroll" } */ +/* { dg-options "-O2 -fno-tree-vectorize -funroll-loops --fast-math -fvariable-expansion-in-unroller -fdump-rtl-loop2_unroll" } */ /* { dg-additional-options "--param max-completely-peel-times=16 --param max-unroll-times=8" { target s390*-*-* } } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/vect/vect-cost-model-6.c b/gcc/testsuite/gcc.dg/vect/vect-cost-model-6.c deleted file mode 100644 index 552febb5fee..00000000000 --- a/gcc/testsuite/gcc.dg/vect/vect-cost-model-6.c +++ /dev/null @@ -1,12 +0,0 @@ -/* { dg-do compile } */ -/* { dg-additional-options "-O2 -ftree-vectorize -fvect-cost-model=very-cheap" } */ - -void -f (int *restrict x, int *restrict y) -{ - for (unsigned int i = 0; i < 1023; ++i) - x[i] += y[i]; -} - -/* { dg-final { scan-tree-dump {LOOP VECTORIZED} vect { target { vect_int && vect_partial_vectors_usage_2 } } } } */ -/* { dg-final { scan-tree-dump-not {LOOP VECTORIZED} vect { target { vect_int && { ! vect_partial_vectors_usage_2 } } } } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr86270.c b/gcc/testsuite/gcc.target/i386/pr86270.c index 98b012caf23..68562446fa4 100644 --- a/gcc/testsuite/gcc.target/i386/pr86270.c +++ b/gcc/testsuite/gcc.target/i386/pr86270.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fno-unroll-loops" } */ +/* { dg-options "-O2 -fno-tree-vectorize -fno-unroll-loops" } */ int *a; long len; diff --git a/gcc/testsuite/gcc.target/i386/pr86722.c b/gcc/testsuite/gcc.target/i386/pr86722.c index 95ddbd8ddb9..dd01ceaa0df 100644 --- a/gcc/testsuite/gcc.target/i386/pr86722.c +++ b/gcc/testsuite/gcc.target/i386/pr86722.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { ! ia32 } } } */ -/* { dg-options "-O2 -mno-avx -msse" } */ +/* { dg-options "-O2 -fno-tree-vectorize -mno-avx -msse" } */ void f(double*d,double*e){ for(;d