Patchwork [testsuite] Fix sra-13.c for 16 bit int

login
register
mail settings
Submitter Pitchumani Sivanupandi
Date April 1, 2013, 11 a.m.
Message ID <515968E5.7060200@atmel.com>
Download mbox | patch
Permalink /patch/232724/
State New
Headers show

Comments

Pitchumani Sivanupandi - April 1, 2013, 11 a.m.
Fix test case sra-13.c that assumed int is always 4 bytes.

Regards,
Pitchumani

2013-04-01 Pitchumani Sivanupandi <pitchumani.s@atmel.com>

     testsuite
     * gcc.dg/tree-ssa/sra-13.c: Fix for 16 bit int
Pitchumani Sivanupandi - April 2, 2013, 12:59 p.m.
could someone please review and commit if it is OK?
I don't have commit access.

Regards,
Pitchumani

On 4/1/2013 4:30 PM, Pitchumani Sivanupandi wrote:
> Fix test case sra-13.c that assumed int is always 4 bytes.
>
> Regards,
> Pitchumani
>
> 2013-04-01 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
>
>     testsuite
>     * gcc.dg/tree-ssa/sra-13.c: Fix for 16 bit int
>
> --- gcc/testsuite/gcc.dg/tree-ssa/sra-13.c      (revision 197081)
> +++ gcc/testsuite/gcc.dg/tree-ssa/sra-13.c      (working copy)
> @@ -95,7 +95,7 @@
>    b = 0;
>    gu1.b.l = 20000000;
>    s = bar ();
> -  if (s != 20000000)
> +  if (s != (int)20000000)
>      __builtin_abort ();
>    if (gu2.b.l != 20000000)
>      __builtin_abort ();
>
Mike Stump - April 2, 2013, 5:20 p.m.
On Apr 2, 2013, at 5:59 AM, Pitchumani Sivanupandi <pitchumani.s@atmel.com> wrote:
> could someone please review

Ok.

> and commit if it is OK?

Committed revision 197366.

Patch

--- gcc/testsuite/gcc.dg/tree-ssa/sra-13.c      (revision 197081)
+++ gcc/testsuite/gcc.dg/tree-ssa/sra-13.c      (working copy)
@@ -95,7 +95,7 @@ 
    b = 0;
    gu1.b.l = 20000000;
    s = bar ();
-  if (s != 20000000)
+  if (s != (int)20000000)
      __builtin_abort ();
    if (gu2.b.l != 20000000)
      __builtin_abort ();