diff mbox

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

Message ID 515968E5.7060200@atmel.com
State New
Headers show

Commit Message

Pitchumani Sivanupandi April 1, 2013, 11 a.m. UTC
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

Comments

Pitchumani Sivanupandi April 2, 2013, 12:59 p.m. UTC | #1
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. UTC | #2
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.
diff mbox

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 ();