diff options
author | liuhongt <hongtao.liu@intel.com> | 2021-10-09 10:26:22 +0800 |
---|---|---|
committer | liuhongt <hongtao.liu@intel.com> | 2021-10-09 16:28:11 +0800 |
commit | b4e81f6dd48732ace73eebf1d2f46ca1d2533b79 (patch) | |
tree | 27ed6533f4c6680ad7a000284a00ffb98542c0d2 /gcc | |
parent | 875124eb0822d8905d73bd30d51421ba8afde282 (diff) | |
download | gcc-b4e81f6dd48732ace73eebf1d2f46ca1d2533b79.zip gcc-b4e81f6dd48732ace73eebf1d2f46ca1d2533b79.tar.gz gcc-b4e81f6dd48732ace73eebf1d2f46ca1d2533b79.tar.bz2 |
Adjust more testcases for O2 vectorization enabling.
libgomp/ChangeLog:
* testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
* testsuite/libgomp.c++/scan-11.C: Ditto.
* testsuite/libgomp.c++/scan-12.C: Ditto.
* testsuite/libgomp.c++/scan-13.C: Ditto.
* testsuite/libgomp.c++/scan-14.C: Ditto.
* testsuite/libgomp.c++/scan-15.C: Ditto.
* testsuite/libgomp.c++/scan-16.C: Ditto.
* testsuite/libgomp.c++/scan-9.C: Ditto.
* testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
* testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
* testsuite/libgomp.c/scan-11.c: Ditto.
* testsuite/libgomp.c/scan-12.c: Ditto.
* testsuite/libgomp.c/scan-13.c: Ditto.
* testsuite/libgomp.c/scan-14.c: Ditto.
* testsuite/libgomp.c/scan-15.c: Ditto.
* testsuite/libgomp.c/scan-16.c: Ditto.
* testsuite/libgomp.c/scan-17.c: Ditto.
* testsuite/libgomp.c/scan-18.c: Ditto.
* testsuite/libgomp.c/scan-19.c: Ditto.
* testsuite/libgomp.c/scan-20.c: Ditto.
* testsuite/libgomp.c/scan-21.c: Ditto.
* testsuite/libgomp.c/scan-22.c: Ditto.
gcc/testsuite/ChangeLog:
* g++.dg/tree-ssa/pr94403.C: Add -fno-tree-vectorize
* gcc.dg/optimize-bswapsi-5.c: Ditto.
* gcc.dg/optimize-bswapsi-6.c: Ditto.
* gcc.dg/Warray-bounds-51.c: Add additional option
-mtune=generic for target x86/i?86
* gcc.dg/Wstringop-overflow-14.c: Ditto.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/tree-ssa/pr94403.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/Warray-bounds-51.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/Wstringop-overflow-14.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/optimize-bswapsi-5.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/optimize-bswapsi-6.c | 2 |
5 files changed, 7 insertions, 5 deletions
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr94403.C b/gcc/testsuite/g++.dg/tree-ssa/pr94403.C index d47e7fc..5f8f868 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/pr94403.C +++ b/gcc/testsuite/g++.dg/tree-ssa/pr94403.C @@ -3,7 +3,7 @@ // are either big or little endian (not pdp endian). // { dg-do compile { target { lp64 && { i?86-*-* x86_64-*-* powerpc*-*-* aarch64*-*-* } } } } // { dg-require-effective-target store_merge } -// { dg-options "-O2 -fdump-tree-store-merging -std=c++17" } +// { dg-options "-O2 -fno-tree-vectorize -fdump-tree-store-merging -std=c++17" } namespace std { template <typename T> diff --git a/gcc/testsuite/gcc.dg/Warray-bounds-51.c b/gcc/testsuite/gcc.dg/Warray-bounds-51.c index b0b8bdb..cadb7a3 100644 --- a/gcc/testsuite/gcc.dg/Warray-bounds-51.c +++ b/gcc/testsuite/gcc.dg/Warray-bounds-51.c @@ -1,7 +1,8 @@ /* PR middle-end/92333 - missing variable name referencing VLA in warnings PR middle-end/82608 - missing -Warray-bounds on an out-of-bounds VLA index { dg-do compile } - { dg-options "-O2 -Wall" } */ + { dg-options "-O2 -Wall" } + { dg-additional-options "-mtune=generic" { target { i?86-*-* x86_64-*-* } } } */ void sink (void*); diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-14.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-14.c index b648f5b..83b069c 100644 --- a/gcc/testsuite/gcc.dg/Wstringop-overflow-14.c +++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-14.c @@ -2,7 +2,8 @@ types than char are diagnosed. { dg-do compile } { dg-require-effective-target int32plus } - { dg-options "-O2 -Wall -Wno-array-bounds" } */ + { dg-options "-O2 -Wall -Wno-array-bounds" } + { dg-additional-options "-mtune=generic" { target { i?86-*-* x86_64-*-* } } } */ typedef __INT16_TYPE__ int16_t; typedef __INT32_TYPE__ int32_t; diff --git a/gcc/testsuite/gcc.dg/optimize-bswapsi-5.c b/gcc/testsuite/gcc.dg/optimize-bswapsi-5.c index 91a5284..5934aac 100644 --- a/gcc/testsuite/gcc.dg/optimize-bswapsi-5.c +++ b/gcc/testsuite/gcc.dg/optimize-bswapsi-5.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-require-effective-target bswap } */ -/* { dg-options "-O2 -fdump-tree-optimized -fno-inline-functions" } */ +/* { dg-options "-O2 -fno-tree-vectorize -fdump-tree-optimized -fno-inline-functions" } */ /* { dg-additional-options "-march=z900" { target s390-*-* } } */ struct L { unsigned int l[2]; }; diff --git a/gcc/testsuite/gcc.dg/optimize-bswapsi-6.c b/gcc/testsuite/gcc.dg/optimize-bswapsi-6.c index 3c089b3..75f8aec 100644 --- a/gcc/testsuite/gcc.dg/optimize-bswapsi-6.c +++ b/gcc/testsuite/gcc.dg/optimize-bswapsi-6.c @@ -1,7 +1,7 @@ /* PR tree-optimization/42587 */ /* { dg-do compile } */ /* { dg-require-effective-target bswap } */ -/* { dg-options "-O2 -fdump-tree-store-merging" } */ +/* { dg-options "-O2 -fno-tree-vectorize -fdump-tree-store-merging" } */ /* { dg-additional-options "-march=z900" { target s390-*-* } } */ typedef unsigned char u8; |