[gcc(refs/users/guojiufu/heads/guojiufu-branch)] update test loop-split1.c

Jiu Fu Guo guojiufu@gcc.gnu.org
Wed Jun 2 04:14:15 GMT 2021


https://gcc.gnu.org/g:c5186a06657316cadd979eb5bd85c14af8aa69bd

commit c5186a06657316cadd979eb5bd85c14af8aa69bd
Author: Jiufu Guo <guojiufu@linux.ibm.com>
Date:   Tue Jun 1 11:17:38 2021 +0800

    update test loop-split1.c

Diff:
---
 gcc/testsuite/gcc.dg/loop-split1.c | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/loop-split1.c b/gcc/testsuite/gcc.dg/loop-split1.c
index 82f0802db57..dd2d03a7b96 100644
--- a/gcc/testsuite/gcc.dg/loop-split1.c
+++ b/gcc/testsuite/gcc.dg/loop-split1.c
@@ -5,21 +5,21 @@ void
 foo (int *a, int *b, unsigned l, unsigned n)
 {
   while (++l != n)
-    a[l] = b[l]  + 1;
+    a[l] = b[l] + 1;
 }
 void
 foo_1 (int *a, int *b, unsigned n)
 {
   unsigned l = 0;
   while (++l != n)
-    a[l] = b[l]  + 1;
+    a[l] = b[l] + 1;
 }
 
 void
 foo1 (int *a, int *b, unsigned l, unsigned n)
 {
   while (l++ != n)
-    a[l] = b[l]  + 1;
+    a[l] = b[l] + 1;
 }
 
 /* No wrap.  */
@@ -28,7 +28,7 @@ foo1_1 (int *a, int *b, unsigned n)
 {
   unsigned l = 0;
   while (l++ != n)
-    a[l] = b[l]  + 1;
+    a[l] = b[l] + 1;
 }
 
 unsigned
@@ -74,14 +74,16 @@ foo3_1 (char *a, char *b, unsigned l, unsigned n)
   return l;
 }
 
-void bar();
-void foo4(unsigned n,  unsigned i)
+void
+bar ();
+void
+foo4 (unsigned n, unsigned i)
 {
   do
     {
       if (i == n)
-        return;
-      bar();
+	return;
+      bar ();
       ++i;
     }
   while (1);
@@ -91,7 +93,7 @@ unsigned
 find_skip_diff (char *p, char *q, unsigned n, unsigned i)
 {
   while (p[i] == q[i] && ++i != n)
-    p++,q++;
+    p++, q++;
 
   return i;
 }


More information about the Gcc-cvs mailing list