public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/guojiufu/heads/guojiufu-branch)] update test loop-split1.c
@ 2021-06-02 4:14 Jiu Fu Guo
0 siblings, 0 replies; 2+ messages in thread
From: Jiu Fu Guo @ 2021-06-02 4:14 UTC (permalink / raw)
To: gcc-cvs
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;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gcc(refs/users/guojiufu/heads/guojiufu-branch)] update test loop-split1.c
@ 2021-06-02 4:14 Jiu Fu Guo
0 siblings, 0 replies; 2+ messages in thread
From: Jiu Fu Guo @ 2021-06-02 4:14 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:62de42f4a84814cabccaa5d66a615b4072e93a7c
commit 62de42f4a84814cabccaa5d66a615b4072e93a7c
Author: Jiufu Guo <guojiufu@linux.ibm.com>
Date: Tue Jun 1 10:03:02 2021 +0800
update test loop-split1.c
Diff:
---
gcc/testsuite/gcc.dg/loop-split1.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/gcc/testsuite/gcc.dg/loop-split1.c b/gcc/testsuite/gcc.dg/loop-split1.c
index 30b006b1b14..82f0802db57 100644
--- a/gcc/testsuite/gcc.dg/loop-split1.c
+++ b/gcc/testsuite/gcc.dg/loop-split1.c
@@ -87,15 +87,6 @@ void foo4(unsigned n, unsigned i)
while (1);
}
-unsigned
-foo5 (double *a, unsigned n, unsigned i)
-{
- while (a[i] > 0 && i != n)
- i++;
-
- return i;
-}
-
unsigned
find_skip_diff (char *p, char *q, unsigned n, unsigned i)
{
@@ -105,4 +96,4 @@ find_skip_diff (char *p, char *q, unsigned n, unsigned i)
return i;
}
-/* { dg-final { scan-tree-dump-times "Loop split" 9 "lsplit" } } */
+/* { dg-final { scan-tree-dump-times "Loop split" 8 "lsplit" } } */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-02 4:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-02 4:14 [gcc(refs/users/guojiufu/heads/guojiufu-branch)] update test loop-split1.c Jiu Fu Guo
-- strict thread matches above, loose matches on Subject: below --
2021-06-02 4:14 Jiu Fu Guo
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).