--- a/gcc/testsuite/gcc.dg/vect/no-scevccp-slp-30.c
+++ b/gcc/testsuite/gcc.dg/vect/no-scevccp-slp-30.c
@@ -24,9 +24,9 @@ main1 ()
    }
 
   /* check results:  */
-#pragma GCC novector
    for (j = 0; j < N; j++)
    {
+#pragma GCC novector
     for (i = 0; i < N; i++)
       {
         if (out[i*4] != 8
diff --git a/gcc/testsuite/gcc.dg/vect/no-scevccp-slp-31.c b/gcc/testsuite/gcc.dg/vect/no-scevccp-slp-31.c
index 48b6a9b0681cf1fe410755c3e639b825b27895b0..22817a57ef81398cc018a78597755397d20e0eb9 100644
--- a/gcc/testsuite/gcc.dg/vect/no-scevccp-slp-31.c
+++ b/gcc/testsuite/gcc.dg/vect/no-scevccp-slp-31.c
@@ -27,6 +27,7 @@ main1 ()
 #pragma GCC novector
  for (i = 0; i < N; i++)
    {
+#pragma GCC novector
     for (j = 0; j < N; j++) 
       {
         if (a[i][j] != 8)
diff --git a/gcc/testsuite/gcc.dg/vect/no-section-anchors-vect-69.c b/gcc/testsuite/gcc.dg/vect/no-section-anchors-vect-69.c
index a0e53d5fef91868dfdbd542dd0a98dff92bd265b..0861d488e134d3f01a2fa83c56eff7174f36ddfb 100644
--- a/gcc/testsuite/gcc.dg/vect/no-section-anchors-vect-69.c
+++ b/gcc/testsuite/gcc.dg/vect/no-section-anchors-vect-69.c
@@ -83,9 +83,9 @@ int main1 ()
     }
 
   /* check results:  */
-#pragma GCC novector
   for (i = 0; i < N; i++)
     {
+#pragma GCC novector
       for (j = 0; j < N; j++)
 	{
           if (tmp1[2].e.n[1][i][j] != 8)
@@ -103,9 +103,9 @@ int main1 ()
     }
 
   /* check results:  */
-#pragma GCC novector
   for (i = 0; i < N - NINTS; i++)
     {
+#pragma GCC novector
       for (j = 0; j < N - NINTS; j++)
 	{
           if (tmp2[2].e.n[1][i][j] != 8)
diff --git a/gcc/testsuite/gcc.target/aarch64/vect-xorsign_exec.c b/gcc/testsuite/gcc.target/aarch64/vect-xorsign_exec.c
index cfa22115831272cb1d4e1a38512f10c3a1c6ad77..84f33d3f6cce9b0017fd12ab961019041245ffae 100644
--- a/gcc/testsuite/gcc.target/aarch64/vect-xorsign_exec.c
+++ b/gcc/testsuite/gcc.target/aarch64/vect-xorsign_exec.c
@@ -33,6 +33,7 @@ main (void)
     r[i] = a[i] * __builtin_copysignf (1.0f, b[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < N; i++)
     if (r[i] != a[i] * __builtin_copysignf (1.0f, b[i]))
       abort ();
@@ -41,6 +42,7 @@ main (void)
     rd[i] = ad[i] * __builtin_copysign (1.0d, bd[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < N; i++)
     if (rd[i] != ad[i] * __builtin_copysign (1.0d, bd[i]))
       abort ();
diff --git a/gcc/testsuite/gcc.target/i386/avx512er-vrcp28ps-3.c b/gcc/testsuite/gcc.target/i386/avx512er-vrcp28ps-3.c
index c0b1f7b31027f9438ab1641d3002887eabd34efa..1e68926a3180fffc6cbc8c6eed639a567fc32566 100644
--- a/gcc/testsuite/gcc.target/i386/avx512er-vrcp28ps-3.c
+++ b/gcc/testsuite/gcc.target/i386/avx512er-vrcp28ps-3.c
@@ -41,6 +41,7 @@ avx512er_test (void)
   compute_rcp_ref (a, b, ref);
   compute_rcp_exp (a, b, exp);
 
+#pragma GCC novector
   for (int i = 0; i < MAX; i++)
     {
       float rel_err = (ref[i] - exp[i]) / ref[i];
diff --git a/gcc/testsuite/gcc.target/i386/avx512er-vrsqrt28ps-3.c b/gcc/testsuite/gcc.target/i386/avx512er-vrsqrt28ps-3.c
index a8ab49ed6c38fc55b3c2a24033b8b62b8aef446c..b922fa285b5f0316eb4347dc8768615b0bc60ad9 100644
--- a/gcc/testsuite/gcc.target/i386/avx512er-vrsqrt28ps-3.c
+++ b/gcc/testsuite/gcc.target/i386/avx512er-vrsqrt28ps-3.c
@@ -38,6 +38,7 @@ avx512er_test (void)
   compute_rsqrt_ref (in, ref);
   compute_rsqrt_exp (in, exp);
 
+#pragma GCC novector
   for (int i = 0; i < MAX; i++)
     {
       float rel_err = (ref[i] - exp[i]) / ref[i];
diff --git a/gcc/testsuite/gcc.target/i386/avx512er-vrsqrt28ps-5.c b/gcc/testsuite/gcc.target/i386/avx512er-vrsqrt28ps-5.c
index 9a8a88ae2b573c57987f74ad419285472293a102..3c0066f7ea44a7e1f4513fd9528205305cefe21d 100644
--- a/gcc/testsuite/gcc.target/i386/avx512er-vrsqrt28ps-5.c
+++ b/gcc/testsuite/gcc.target/i386/avx512er-vrsqrt28ps-5.c
@@ -38,6 +38,7 @@ avx512er_test (void)
   compute_sqrt_ref (in, ref);
   compute_sqrt_exp (in, exp);
 
+#pragma GCC novector
   for (int i = 0; i < MAX; i++)
     {
       float rel_err = (ref[i] - exp[i]) / ref[i];
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-ceil-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-ceil-sfix-vec-1.c
index ab058334a8c9d70e62a80092a0d9dc553ef54388..291907c8f9d035b10b1449f698a2f986462698a3 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-ceil-sfix-vec-1.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-ceil-sfix-vec-1.c
@@ -47,6 +47,7 @@ avx512f_test (void)
     r[i] = (int) ceil (a[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < NUM; i++)
     if (r[i] != (int) ceil (a[i]))
       abort();
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-ceil-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-ceil-vec-1.c
index 3ab64559cd28b067bb9e38d49bb3e02487d35262..c372631a211f5fcd8fbb923329d66b12971e7049 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-ceil-vec-1.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-ceil-vec-1.c
@@ -45,6 +45,7 @@ avx512f_test (void)
     r[i] = ceil (a[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < NUM; i++)
     if (r[i] != ceil (a[i]))
       abort();
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-ceilf-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-ceilf-sfix-vec-1.c
index 27a4bb95342ce9d0114912ee8fd00ef62c469c7b..be19e753026ef208b1ad6a8bb7e921727331d4f6 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-ceilf-sfix-vec-1.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-ceilf-sfix-vec-1.c
@@ -45,6 +45,7 @@ avx512f_test (void)
     r[i] = (int) ceilf (a[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < NUM; i++)
     if (r[i] != (int) ceilf (a[i]))
       abort();
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-ceilf-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-ceilf-vec-1.c
index 54222da76f426205cbe90c308cab9752629aeef5..ad1e8e12d5c7db5401076752e5ef3c7c11a523f6 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-ceilf-vec-1.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-ceilf-vec-1.c
@@ -45,6 +45,7 @@ avx512f_test (void)
     r[i] = ceilf (a[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < NUM; i++)
     if (r[i] != ceilf (a[i]))
       abort();
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-floor-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-floor-sfix-vec-1.c
index 9eff15f5006c76d7417eda30cecb6cfa113621e6..1c8a107d15aeb05894faae212bd5ef500be9b26c 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-floor-sfix-vec-1.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-floor-sfix-vec-1.c
@@ -47,6 +47,7 @@ avx512f_test (void)
     r[i] = (int) floor (a[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < NUM; i++)
     if (r[i] != (int) floor (a[i]))
       abort();
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-floor-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-floor-vec-1.c
index be9709951f7a97eeefdcc82821ee78076addb463..b8bcb79a7a53e9effb4b00681dc66f6c1d1fc9fa 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-floor-vec-1.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-floor-vec-1.c
@@ -45,6 +45,7 @@ avx512f_test (void)
     r[i] = floor (a[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < NUM; i++)
     if (r[i] != floor (a[i]))
       abort();
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-floorf-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-floorf-sfix-vec-1.c
index 7a84fcbc73146cee25fce7643f27a942ca18d63b..4ae6e36acef5848e4bc78cc1674625628d7d53c5 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-floorf-sfix-vec-1.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-floorf-sfix-vec-1.c
@@ -45,6 +45,7 @@ avx512f_test (void)
     r[i] = (int) floorf (a[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < NUM; i++)
     if (r[i] != (int) floorf (a[i]))
       abort();
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-floorf-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-floorf-vec-1.c
index fcc0b275860fe6821a52d70c47c1fd6cde36b027..7c43f414763cbedb34af96b970af026cad61b6b1 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-floorf-vec-1.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-floorf-vec-1.c
@@ -45,6 +45,7 @@ avx512f_test (void)
     r[i] = floorf (a[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < NUM; i++)
     if (r[i] != floorf (a[i]))
       abort();
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-rint-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-rint-sfix-vec-1.c
index d22385c95e5219114a327b1067941b8588f30288..b7e6759cb8e8a904927e6988919f77f823b0e699 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-rint-sfix-vec-1.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-rint-sfix-vec-1.c
@@ -45,6 +45,7 @@ avx512f_test (void)
     r[i] = (int) rint (a[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < NUM; i++)
     if (r[i] != (int) rint (a[i]))
       abort();
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-rintf-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-rintf-sfix-vec-1.c
index 6a627ab4ac824e8fa1fd4f9e09123dbc71277b39..e36c9a5d4f9fd3ac484fa9888d112b6fd965d69c 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-rintf-sfix-vec-1.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-rintf-sfix-vec-1.c
@@ -45,6 +45,7 @@ avx512f_test (void)
     r[i] = (int) rintf (a[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < NUM; i++)
     if (r[i] != (int) rintf (a[i]))
       abort();
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-round-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-round-sfix-vec-1.c
index 4c83e7b0512664782bf252fc10f889d2b91148a3..0a6f9b2d235aae28c581e37ddc0c4f54bab78e40 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-round-sfix-vec-1.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-round-sfix-vec-1.c
@@ -45,6 +45,7 @@ avx512f_test (void)
     r[i] = (int) round (a[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < NUM; i++)
     if (r[i] != (int) round (a[i]))
       abort();
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-roundf-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-roundf-sfix-vec-1.c
index 1341a5bbe537c3357f7522a9e4e8da1b30872a0e..d40f7d9f7bddcb1e518f3a11c534e770102389f6 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-roundf-sfix-vec-1.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-roundf-sfix-vec-1.c
@@ -45,6 +45,7 @@ avx512f_test (void)
     r[i] = (int) roundf (a[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < NUM; i++)
     if (r[i] != (int) roundf (a[i]))
       abort();
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-trunc-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-trunc-vec-1.c
index b8b5d0730a8ca396da9e6fe7539a30a3fa481163..3802078d2cdaa2dcece4b428cf8d556b664bd09a 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-trunc-vec-1.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-trunc-vec-1.c
@@ -45,6 +45,7 @@ avx512f_test (void)
     r[i] = trunc (a[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < NUM; i++)
     if (r[i] != trunc (a[i]))
       abort();
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-truncf-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-truncf-vec-1.c
index 7dfd575f019c976c87c89e8c727a6f545717ae03..d9b6a4d0fdd27ef09a117cbc5d9ab55a58e9b63d 100644
--- a/gcc/testsuite/gcc.target/i386/avx512f-truncf-vec-1.c
+++ b/gcc/testsuite/gcc.target/i386/avx512f-truncf-vec-1.c
@@ -45,6 +45,7 @@ avx512f_test (void)
     r[i] = truncf (a[i]);
 
   /* check results:  */
+#pragma GCC novector
   for (i = 0; i < NUM; i++)
     if (r[i] != truncf (a[i]))
       abort();
diff --git a/gcc/testsuite/gcc.target/i386/vect-alignment-peeling-1.c b/gcc/testsuite/gcc.target/i386/vect-alignment-peeling-1.c
index 4aa536ba86c93526a40744e42be1f86d737af2cf..cec959f3e078a792593df1888a170c7312327b89 100644
--- a/gcc/testsuite/gcc.target/i386/vect-alignment-peeling-1.c
+++ b/gcc/testsuite/gcc.target/i386/vect-alignment-peeling-1.c
@@ -40,6 +40,7 @@ int main()
       b[i] = i;
     }
   foo1 ();
+#pragma GCC novector
   for (int i = 2; i < 508; ++i)
     if (a[i] != 2*i)
       __builtin_abort ();
@@ -50,6 +51,7 @@ int main()
       b[i] = i;
     }
   foo2 ();
+#pragma GCC novector
   for (int i = 2; i < 507; ++i)
     if (a[i] != 2*i)
       __builtin_abort ();
@@ -60,6 +62,7 @@ int main()
       b[i] = i;
     }
   foo3 ();
+#pragma GCC novector
   for (int i = 2; i < 506; ++i)
     if (a[i] != 2*i)
       __builtin_abort ();
@@ -70,6 +73,7 @@ int main()
       b[i] = i;
     }
   foo4 ();
+#pragma GCC novector
   for (int i = 2; i < 505; ++i)
     if (a[i] != 2*i)
       __builtin_abort ();
@@ -80,6 +84,7 @@ int main()
       b[i] = i;
     }
   foo5 (505);
+#pragma GCC novector
   for (int i = 2; i < 506; ++i)
     if (a[i] != 2*i)
       __builtin_abort ();
diff --git a/gcc/testsuite/gcc.target/i386/vect-alignment-peeling-2.c b/gcc/testsuite/gcc.target/i386/vect-alignment-peeling-2.c
index 834bf0f770d66d1513dacb9cfb66387a75da3b76..0317c77a38904b8b1890fbd47c146a2ebf397b35 100644
--- a/gcc/testsuite/gcc.target/i386/vect-alignment-peeling-2.c
+++ b/gcc/testsuite/gcc.target/i386/vect-alignment-peeling-2.c
@@ -40,6 +40,7 @@ int main()
       b[i] = i;
     }
   foo1 ();
+#pragma GCC novector
   for (int i = 2; i < 508; ++i)
     if (a[i] != 2*i)
       __builtin_abort ();
@@ -50,6 +51,7 @@ int main()
       b[i] = i;
     }
   foo2 ();
+#pragma GCC novector
   for (int i = 3; i < 508; ++i)
     if (a[i] != 2*i)
       __builtin_abort ();
@@ -60,6 +62,7 @@ int main()
       b[i] = i;
     }
   foo3 ();
+#pragma GCC novector
   for (int i = 4; i < 508; ++i)
     if (a[i] != 2*i)
       __builtin_abort ();
@@ -70,6 +73,7 @@ int main()
       b[i] = i;
     }
   foo4 ();
+#pragma GCC novector
   for (int i = 5; i < 508; ++i)
     if (a[i] != 2*i)
       __builtin_abort ();
@@ -80,6 +84,7 @@ int main()
       b[i] = i;
     }
   foo5 (3);
+#pragma GCC novector
   for (int i = 3; i < 508; ++i)
     if (a[i] != 2*i)
       __builtin_abort ();
diff --git a/gcc/testsuite/gcc.target/i386/vect-pack-trunc-1.c b/gcc/testsuite/gcc.target/i386/vect-pack-trunc-1.c
index 1b468e47754c407b5a628d4bb80292c4e7c31ecd..915b604ebff9c91f488cf51eb6222d2c2e497e31 100644
--- a/gcc/testsuite/gcc.target/i386/vect-pack-trunc-1.c
+++ b/gcc/testsuite/gcc.target/i386/vect-pack-trunc-1.c
@@ -21,6 +21,7 @@ avx512bw_test ()
   unsigned short i;
   foo (N);
 
+#pragma GCC novector
   for (i = 0; i < N; i++)
     if ( (unsigned char)i != yy [i] )
       abort ();
diff --git a/gcc/testsuite/gcc.target/i386/vect-pack-trunc-2.c b/gcc/testsuite/gcc.target/i386/vect-pack-trunc-2.c
index 3503deaa9d9b4611609cbafe54a42381b06eb6ec..c42f317ddf4fbd73c784cccb54904b293e8a3971 100644
--- a/gcc/testsuite/gcc.target/i386/vect-pack-trunc-2.c
+++ b/gcc/testsuite/gcc.target/i386/vect-pack-trunc-2.c
@@ -20,6 +20,7 @@ avx512bw_test ()
 {
   unsigned int i;
   foo (N);
+#pragma GCC novector
   for (i = 0; i < N; i++)
     if ( (unsigned short)i != yy [i] )
       abort ();
diff --git a/gcc/testsuite/gcc.target/i386/vect-perm-even-1.c b/gcc/testsuite/gcc.target/i386/vect-perm-even-1.c
index 3de4dfabeea01c78d1861082f8467784384244d6..bed8621e5d49438edf89652cd717518eadbac473 100644
--- a/gcc/testsuite/gcc.target/i386/vect-perm-even-1.c
+++ b/gcc/testsuite/gcc.target/i386/vect-perm-even-1.c
@@ -26,6 +26,7 @@ avx512bw_test ()
 
   foo (N);
 
+#pragma GCC novector
   for (i = 0; i < N; i++)
     if ( (unsigned char)(2*i+1) != yy [i] )
       abort ();
diff --git a/gcc/testsuite/gcc.target/i386/vect-unpack-1.c b/gcc/testsuite/gcc.target/i386/vect-unpack-1.c
index 84521e313e52fb44a2db331a2cbbf9b3b07a6af7..fd85650bf8c6ce158db6a8a60c4ce61b6a58fe54 100644
--- a/gcc/testsuite/gcc.target/i386/vect-unpack-1.c
+++ b/gcc/testsuite/gcc.target/i386/vect-unpack-1.c
@@ -20,6 +20,7 @@ avx512bw_test ()
 {
   unsigned char i;
   foo (N);
+#pragma GCC novector
   for (i = 0; i < N; i++)
     if ( (unsigned int)i != yy [i] )
       abort ();
