diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-17 02:15:03 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-17 02:15:03 +0000 |
commit | cc47ed6ddebfece0584ad7ee706549614d16c0f0 (patch) | |
tree | 973a28470803b27c914f813f43d43f8932763ea3 /0103-test-Add-option-ftree-fold-phiopt-to-avoid-fail-NFC.patch | |
parent | 1e2198a988cc8d2ea55ab6ca2a1835e60149ab5c (diff) |
automatic import of gccopeneuler22.03_LTS_SP2
Diffstat (limited to '0103-test-Add-option-ftree-fold-phiopt-to-avoid-fail-NFC.patch')
-rw-r--r-- | 0103-test-Add-option-ftree-fold-phiopt-to-avoid-fail-NFC.patch | 143 |
1 files changed, 143 insertions, 0 deletions
diff --git a/0103-test-Add-option-ftree-fold-phiopt-to-avoid-fail-NFC.patch b/0103-test-Add-option-ftree-fold-phiopt-to-avoid-fail-NFC.patch new file mode 100644 index 0000000..6bc7758 --- /dev/null +++ b/0103-test-Add-option-ftree-fold-phiopt-to-avoid-fail-NFC.patch @@ -0,0 +1,143 @@ +From 1d0bbeb4171f21baf18db6a802bd0b9685e2d25b Mon Sep 17 00:00:00 2001 +From: zhongyunde <zhongyunde@huawei.com> +Date: Tue, 20 Jun 2023 08:59:57 +0800 +Subject: [PATCH] [test] Add option -ftree-fold-phiopt to avoid fail, NFC + +Fix https://gitee.com/openeuler/gcc/issues/I7EQCC?from=project-issue +--- + gcc/testsuite/c-c++-common/ubsan/pr85213.c | 2 +- + gcc/testsuite/gcc.dg/uninit-8.c | 2 +- + gcc/testsuite/gcc.target/aarch64/bics_3.c | 2 +- + gcc/testsuite/gcc.target/aarch64/scalar-vca.c | 2 +- + gcc/testsuite/gcc.target/aarch64/scalar_intrinsics.c | 2 +- + gcc/testsuite/gcc.target/aarch64/simd/int_comparisons_1.c | 2 +- + gcc/testsuite/gcc.target/aarch64/simd/vcaled_f64.c | 2 +- + gcc/testsuite/gcc.target/aarch64/simd/vcales_f32.c | 2 +- + gcc/testsuite/gcc.target/aarch64/simd/vcaltd_f64.c | 2 +- + gcc/testsuite/gcc.target/aarch64/simd/vcalts_f32.c | 2 +- + 10 files changed, 10 insertions(+), 10 deletions(-) + +diff --git a/gcc/testsuite/c-c++-common/ubsan/pr85213.c b/gcc/testsuite/c-c++-common/ubsan/pr85213.c +index 8a6be81d2..804c29da7 100644 +--- a/gcc/testsuite/c-c++-common/ubsan/pr85213.c ++++ b/gcc/testsuite/c-c++-common/ubsan/pr85213.c +@@ -1,6 +1,6 @@ + /* PR sanitizer/85213 */ + /* { dg-do compile } */ +-/* { dg-options "-O1 -fsanitize=undefined -fcompare-debug" } */ ++/* { dg-options "-O1 -ftree-fold-phiopt -fsanitize=undefined -fcompare-debug" } */ + + int + foo (int x) +diff --git a/gcc/testsuite/gcc.dg/uninit-8.c b/gcc/testsuite/gcc.dg/uninit-8.c +index 98700f4aa..e8fd942cf 100644 +--- a/gcc/testsuite/gcc.dg/uninit-8.c ++++ b/gcc/testsuite/gcc.dg/uninit-8.c +@@ -3,7 +3,7 @@ + May be the same as uninit-1.c. */ + + /* { dg-do compile } */ +-/* { dg-options "-O -Wuninitialized" } */ ++/* { dg-options "-O -ftree-fold-phiopt -Wuninitialized" } */ + + #include <limits.h> + +diff --git a/gcc/testsuite/gcc.target/aarch64/bics_3.c b/gcc/testsuite/gcc.target/aarch64/bics_3.c +index 3257df622..ab6f0210e 100644 +--- a/gcc/testsuite/gcc.target/aarch64/bics_3.c ++++ b/gcc/testsuite/gcc.target/aarch64/bics_3.c +@@ -1,5 +1,5 @@ + /* { dg-do run } */ +-/* { dg-options "-O2 --save-temps" } */ ++/* { dg-options "-O2 -ftree-fold-phiopt --save-temps" } */ + + extern void abort (void); + +diff --git a/gcc/testsuite/gcc.target/aarch64/scalar-vca.c b/gcc/testsuite/gcc.target/aarch64/scalar-vca.c +index 40a359725..58ce99328 100644 +--- a/gcc/testsuite/gcc.target/aarch64/scalar-vca.c ++++ b/gcc/testsuite/gcc.target/aarch64/scalar-vca.c +@@ -1,5 +1,5 @@ + /* { dg-do run } */ +-/* { dg-options "-O3 --save-temps" } */ ++/* { dg-options "-O3 -ftree-fold-phiopt --save-temps" } */ + + #include <arm_neon.h> + +diff --git a/gcc/testsuite/gcc.target/aarch64/scalar_intrinsics.c b/gcc/testsuite/gcc.target/aarch64/scalar_intrinsics.c +index c2e13b651..bcd7e4c83 100644 +--- a/gcc/testsuite/gcc.target/aarch64/scalar_intrinsics.c ++++ b/gcc/testsuite/gcc.target/aarch64/scalar_intrinsics.c +@@ -1,5 +1,5 @@ + /* { dg-do compile } */ +-/* { dg-options "-O2 -dp" } */ ++/* { dg-options "-O2 -ftree-fold-phiopt -dp" } */ + + #include <arm_neon.h> + +diff --git a/gcc/testsuite/gcc.target/aarch64/simd/int_comparisons_1.c b/gcc/testsuite/gcc.target/aarch64/simd/int_comparisons_1.c +index f2c55922f..3f989257b 100644 +--- a/gcc/testsuite/gcc.target/aarch64/simd/int_comparisons_1.c ++++ b/gcc/testsuite/gcc.target/aarch64/simd/int_comparisons_1.c +@@ -1,5 +1,5 @@ + /* { dg-do compile } */ +-/* { dg-options "-O3 -fno-inline" } */ ++/* { dg-options "-O3 -ftree-fold-phiopt -fno-inline" } */ + + /* Scan-assembler test, so, incorporate as little other code as possible. */ + +diff --git a/gcc/testsuite/gcc.target/aarch64/simd/vcaled_f64.c b/gcc/testsuite/gcc.target/aarch64/simd/vcaled_f64.c +index 198b18b4e..357d0f61a 100644 +--- a/gcc/testsuite/gcc.target/aarch64/simd/vcaled_f64.c ++++ b/gcc/testsuite/gcc.target/aarch64/simd/vcaled_f64.c +@@ -1,7 +1,7 @@ + /* Test the vcaled_f64 AArch64 SIMD intrinsic. */ + + /* { dg-do run } */ +-/* { dg-options "-save-temps -O3" } */ ++/* { dg-options "-save-temps -O3 -ftree-fold-phiopt" } */ + + #include "arm_neon.h" + +diff --git a/gcc/testsuite/gcc.target/aarch64/simd/vcales_f32.c b/gcc/testsuite/gcc.target/aarch64/simd/vcales_f32.c +index 6b58501f3..a2b5a5f50 100644 +--- a/gcc/testsuite/gcc.target/aarch64/simd/vcales_f32.c ++++ b/gcc/testsuite/gcc.target/aarch64/simd/vcales_f32.c +@@ -1,7 +1,7 @@ + /* Test the vcales_f32 AArch64 SIMD intrinsic. */ + + /* { dg-do run } */ +-/* { dg-options "-save-temps -O3" } */ ++/* { dg-options "-save-temps -O3 -ftree-fold-phiopt" } */ + + #include "arm_neon.h" + +diff --git a/gcc/testsuite/gcc.target/aarch64/simd/vcaltd_f64.c b/gcc/testsuite/gcc.target/aarch64/simd/vcaltd_f64.c +index 50a3b2718..d77f68378 100644 +--- a/gcc/testsuite/gcc.target/aarch64/simd/vcaltd_f64.c ++++ b/gcc/testsuite/gcc.target/aarch64/simd/vcaltd_f64.c +@@ -1,7 +1,7 @@ + /* Test the vcaltd_f64 AArch64 SIMD intrinsic. */ + + /* { dg-do run } */ +-/* { dg-options "-save-temps -O3" } */ ++/* { dg-options "-save-temps -O3 -ftree-fold-phiopt" } */ + + #include "arm_neon.h" + +diff --git a/gcc/testsuite/gcc.target/aarch64/simd/vcalts_f32.c b/gcc/testsuite/gcc.target/aarch64/simd/vcalts_f32.c +index 1807e0b95..d723b9ac5 100644 +--- a/gcc/testsuite/gcc.target/aarch64/simd/vcalts_f32.c ++++ b/gcc/testsuite/gcc.target/aarch64/simd/vcalts_f32.c +@@ -1,7 +1,7 @@ + /* Test the vcalts_f32 AArch64 SIMD intrinsic. */ + + /* { dg-do run } */ +-/* { dg-options "-save-temps -O3" } */ ++/* { dg-options "-save-temps -O3 -ftree-fold-phiopt" } */ + + #include "arm_neon.h" + +-- +2.33.0 + |