PR testsuite/92127: Disable unrolling for some vect code model cases
authorKewen Lin <linkw@gcc.gnu.org>
Fri, 1 Nov 2019 07:11:12 +0000 (07:11 +0000)
committerKewen Lin <linkw@gcc.gnu.org>
Fri, 1 Nov 2019 07:11:12 +0000 (07:11 +0000)
  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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-fast-math-vect-pr29925.c
gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c

index df49b0b1ad70426a5deb7499b173e7cac8d6e356..7441093cde3329aabc2288639b111880f3568f21 100644 (file)
@@ -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.
index a3662e267fc3225c7570e36767758afd63fd8d3a..34445dc6e8248759bf3b0cb048f9a2045e69e23b 100644 (file)
@@ -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];
index f2395fc680728dc79c7e4b805de66ab1c00b577b..c37e73e1e5c821f0c23c563f3fa20d363b67486e 100644 (file)
@@ -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;
 }