diff mbox

PATCH: Add a testcase for PR middle-end/47364.

Message ID 20110805220625.GA17775@intel.com
State New
Headers show

Commit Message

H.J. Lu Aug. 5, 2011, 10:06 p.m. UTC
Hi,

I checked in this patch to add a testcase for PR middle-end/47364.

H.J.
---

Comments

Andrew Pinski Aug. 5, 2011, 10:10 p.m. UTC | #1
On Fri, Aug 5, 2011 at 3:06 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> Hi,
>
> I checked in this patch to add a testcase for PR middle-end/47364.
>
> H.J.
> ---
> Index: gcc.target/i386/pr47364-1.c
> ===================================================================
> --- gcc.target/i386/pr47364-1.c (revision 0)
> +++ gcc.target/i386/pr47364-1.c (revision 0)
> @@ -0,0 +1,12 @@
> +/* { dg-do compile } */
> +/* { dg-options "-O" } */
> +
> +static unsigned char foo[256];
> +
> +arc4_init(void)
> +{
> +  int n;
> +
> +  for (n = 0; n < 256; n++)
> +    foo[n] = n;
> +}

This testcase looks like it could go into c-torture/compile directory
instead of a target specific directory.

Thanks,
Andrew Pinski
H.J. Lu Aug. 5, 2011, 10:28 p.m. UTC | #2
On Fri, Aug 5, 2011 at 3:10 PM, Andrew Pinski <pinskia@gmail.com> wrote:
> On Fri, Aug 5, 2011 at 3:06 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
>> Hi,
>>
>> I checked in this patch to add a testcase for PR middle-end/47364.
>>
>> H.J.
>> ---
>> Index: gcc.target/i386/pr47364-1.c
>> ===================================================================
>> --- gcc.target/i386/pr47364-1.c (revision 0)
>> +++ gcc.target/i386/pr47364-1.c (revision 0)
>> @@ -0,0 +1,12 @@
>> +/* { dg-do compile } */
>> +/* { dg-options "-O" } */
>> +
>> +static unsigned char foo[256];
>> +
>> +arc4_init(void)
>> +{
>> +  int n;
>> +
>> +  for (n = 0; n < 256; n++)
>> +    foo[n] = n;
>> +}
>
> This testcase looks like it could go into c-torture/compile directory
> instead of a target specific directory.
>

I moved them to gcc.c-torture/compile.
diff mbox

Patch

Index: gcc.target/i386/pr47364-1.c
===================================================================
--- gcc.target/i386/pr47364-1.c	(revision 0)
+++ gcc.target/i386/pr47364-1.c	(revision 0)
@@ -0,0 +1,12 @@ 
+/* { dg-do compile } */
+/* { dg-options "-O" } */
+
+static unsigned char foo[256];
+
+arc4_init(void)
+{
+  int n;
+
+  for (n = 0; n < 256; n++)
+    foo[n] = n;
+}
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 177486)
+++ ChangeLog	(working copy)
@@ -1,3 +1,8 @@ 
+2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR middle-end/47364
+	* gcc.dg/torture/pr47364-1.c: New.
+
 2011-08-05  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
 	PR fortran/37221