aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKewen Lin <linkw@gcc.gnu.org>2019-11-01 07:11:12 +0000
committerKewen Lin <linkw@gcc.gnu.org>2019-11-01 07:11:12 +0000
commit271da732841345d3834cf458d47f8242ac5ef513 (patch)
tree07044100aad3c33168ca4831c2fee29c0f66d981
parent52c826885f75d5ef393f1f1bf76be2451b32ad92 (diff)
downloadgcc-271da732841345d3834cf458d47f8242ac5ef513.zip
gcc-271da732841345d3834cf458d47f8242ac5ef513.tar.gz
gcc-271da732841345d3834cf458d47f8242ac5ef513.tar.bz2
PR testsuite/92127: Disable unrolling for some vect code model cases
2019-11-01 Kewen Lin <linkw@gcc.gnu.org> PR testsuite/92127 * gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c: Disable unroll. * gcc.dg/vect/costmodel/ppc/costmodel-fast-math-vect-pr29925.c: Likewise. From-SVN: r277704
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-fast-math-vect-pr29925.c2
-rw-r--r--gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c2
3 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index df49b0b..7441093 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
+
+ PR testsuite/92127
+ * gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c: Disable unroll.
+ * gcc.dg/vect/costmodel/ppc/costmodel-fast-math-vect-pr29925.c:
+ Likewise.
+
2019-10-31 Alexandre Oliva <oliva@adacore.com>
* gcc.misc-tests/help.exp: Test --help=common for full sentences.
diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-fast-math-vect-pr29925.c b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-fast-math-vect-pr29925.c
index a3662e2..34445dc 100644
--- a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-fast-math-vect-pr29925.c
+++ b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-fast-math-vect-pr29925.c
@@ -13,6 +13,8 @@ interp_pitch(float *exc, float *interp, int pitch, int len)
for (i=0;i<len;i++)
{
float tmp = 0;
+ /* PR92127, disable unroll to avoid unexpected profit calculation. */
+ #pragma GCC unroll 0
for (k=0;k<7;k++)
{
tmp += exc[i-pitch+k+maxj-6];
diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c
index f2395fc..c37e73e 100644
--- a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c
+++ b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c
@@ -9,6 +9,8 @@ ggSpectrum_Set8(float * data, float d)
{
int i;
+ /* PR92127, disable unroll to avoid unexpected profit calculation. */
+ #pragma GCC unroll 0
for (i = 0; i < 8; i++)
data[i] = d;
}