Patchwork Add missing testcase for PR44676.

login
register
mail settings
Submitter Sebastian Pop
Date Dec. 7, 2010, 4:21 p.m.
Message ID <1291738901-4456-1-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/74578/
State New
Headers show

Comments

Sebastian Pop - Dec. 7, 2010, 4:21 p.m.
2010-12-07  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/44676
	* gcc.dg/graphite/id-pr44676.c: New.
---
 gcc/testsuite/ChangeLog                    |    7 ++++++-
 gcc/testsuite/gcc.dg/graphite/id-pr44676.c |   10 ++++++++++
 2 files changed, 16 insertions(+), 1 deletions(-)
 create mode 100644 gcc/testsuite/gcc.dg/graphite/id-pr44676.c
H.J. Lu - Dec. 7, 2010, 5:01 p.m.
On Tue, Dec 7, 2010 at 8:21 AM, Sebastian Pop <sebpop@gmail.com> wrote:
> 2010-12-07  Sebastian Pop  <sebastian.pop@amd.com>
>
>        PR tree-optimization/44676
>        * gcc.dg/graphite/id-pr44676.c: New.
> ---
>  gcc/testsuite/ChangeLog                    |    7 ++++++-
>  gcc/testsuite/gcc.dg/graphite/id-pr44676.c |   10 ++++++++++
>  2 files changed, 16 insertions(+), 1 deletions(-)
>  create mode 100644 gcc/testsuite/gcc.dg/graphite/id-pr44676.c
>
> diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
> index 520be3f..96275ed 100644
> --- a/gcc/testsuite/ChangeLog
> +++ b/gcc/testsuite/ChangeLog
> @@ -1,4 +1,9 @@
> -2010-12-06  Sebastian Pop  <sebastian.pop@amd.com>
> +2010-12-07  Sebastian Pop  <sebastian.pop@amd.com>
> +
> +       PR tree-optimization/44676
> +       * gcc.dg/graphite/id-pr44676.c: New.
> +
> +2010-12-07  Sebastian Pop  <sebastian.pop@amd.com>
>
>        PR tree-optimization/42327
>        * gcc.dg/tree-ssa/pr42327.c: New.
> diff --git a/gcc/testsuite/gcc.dg/graphite/id-pr44676.c b/gcc/testsuite/gcc.dg/graphite/id-pr44676.c
> new file mode 100644
> index 0000000..03cdeac
> --- /dev/null
> +++ b/gcc/testsuite/gcc.dg/graphite/id-pr44676.c
> @@ -0,0 +1,10 @@
> +int
> +extend_options (int h, int map, int x, int y, int dx)
> +{
> +  while (dx--)
> +    {
> +      if (x != dx && y != -x)
> +       map++;
> +    }
> +  return map;
> +}
> --
> 1.7.1
>

Testcase failed with -O2 -fgraphite-identity -fprofile-generate.
Does the new testcase use -fprofile-generate?
Sebastian Pop - Dec. 7, 2010, 5:33 p.m.
On Tue, Dec 7, 2010 at 11:01, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Tue, Dec 7, 2010 at 8:21 AM, Sebastian Pop <sebpop@gmail.com> wrote:
>> 2010-12-07  Sebastian Pop  <sebastian.pop@amd.com>
>>
>>        PR tree-optimization/44676
>>        * gcc.dg/graphite/id-pr44676.c: New.
>> ---
>>  gcc/testsuite/ChangeLog                    |    7 ++++++-
>>  gcc/testsuite/gcc.dg/graphite/id-pr44676.c |   10 ++++++++++
>>  2 files changed, 16 insertions(+), 1 deletions(-)
>>  create mode 100644 gcc/testsuite/gcc.dg/graphite/id-pr44676.c
>>
>> diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
>> index 520be3f..96275ed 100644
>> --- a/gcc/testsuite/ChangeLog
>> +++ b/gcc/testsuite/ChangeLog
>> @@ -1,4 +1,9 @@
>> -2010-12-06  Sebastian Pop  <sebastian.pop@amd.com>
>> +2010-12-07  Sebastian Pop  <sebastian.pop@amd.com>
>> +
>> +       PR tree-optimization/44676
>> +       * gcc.dg/graphite/id-pr44676.c: New.
>> +
>> +2010-12-07  Sebastian Pop  <sebastian.pop@amd.com>
>>
>>        PR tree-optimization/42327
>>        * gcc.dg/tree-ssa/pr42327.c: New.
>> diff --git a/gcc/testsuite/gcc.dg/graphite/id-pr44676.c b/gcc/testsuite/gcc.dg/graphite/id-pr44676.c
>> new file mode 100644
>> index 0000000..03cdeac
>> --- /dev/null
>> +++ b/gcc/testsuite/gcc.dg/graphite/id-pr44676.c
>> @@ -0,0 +1,10 @@
>> +int
>> +extend_options (int h, int map, int x, int y, int dx)
>> +{
>> +  while (dx--)
>> +    {
>> +      if (x != dx && y != -x)
>> +       map++;
>> +    }
>> +  return map;
>> +}
>> --
>> 1.7.1
>>
>
> Testcase failed with -O2 -fgraphite-identity -fprofile-generate.
> Does the new testcase use -fprofile-generate?

Yes, sorry I posted an old version of the patch without the dg-option:
/* { dg-options "-O2 -fgraphite-identity -fprofile-generate" } */

Sebastian

Patch

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 520be3f..96275ed 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,4 +1,9 @@ 
-2010-12-06  Sebastian Pop  <sebastian.pop@amd.com>
+2010-12-07  Sebastian Pop  <sebastian.pop@amd.com>
+
+	PR tree-optimization/44676
+	* gcc.dg/graphite/id-pr44676.c: New.
+
+2010-12-07  Sebastian Pop  <sebastian.pop@amd.com>
 
 	PR tree-optimization/42327
 	* gcc.dg/tree-ssa/pr42327.c: New.
diff --git a/gcc/testsuite/gcc.dg/graphite/id-pr44676.c b/gcc/testsuite/gcc.dg/graphite/id-pr44676.c
new file mode 100644
index 0000000..03cdeac
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/graphite/id-pr44676.c
@@ -0,0 +1,10 @@ 
+int
+extend_options (int h, int map, int x, int y, int dx)
+{
+  while (dx--)
+    {
+      if (x != dx && y != -x)
+	map++;
+    }
+  return map;
+}