public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jiu Fu Guo <guojiufu@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/guojiufu/heads/guojiufu-branch)] update test loop-split1.c
Date: Wed,  2 Jun 2021 04:14:15 +0000 (GMT)	[thread overview]
Message-ID: <20210602041417.60CA3383B425@sourceware.org> (raw)

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;
 }


             reply	other threads:[~2021-06-02  4:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-02  4:14 Jiu Fu Guo [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-06-02  4:14 Jiu Fu Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210602041417.60CA3383B425@sourceware.org \
    --to=guojiufu@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).