Commit 5531f0e0 by Richard Henderson Committed by Richard Henderson

* gcc.dg/sync-2.c (do_qi): Cast negative results to char.

From-SVN: r101135
parent d26afa4f
2005-06-17 Richard Henderson <rth@redhat.com>
* gcc.dg/sync-2.c (do_qi): Cast negative results to char.
2005-06-07 David Billinghurst <David.Billinghurst@riotinto.com> 2005-06-07 David Billinghurst <David.Billinghurst@riotinto.com>
PR testsuite/21945 PR testsuite/21945
......
...@@ -23,7 +23,7 @@ do_qi (void) ...@@ -23,7 +23,7 @@ do_qi (void)
abort (); abort ();
if (__sync_fetch_and_sub(AI+7, 12) != 0) if (__sync_fetch_and_sub(AI+7, 12) != 0)
abort (); abort ();
if (__sync_fetch_and_and(AI+8, 7) != -1) if (__sync_fetch_and_and(AI+8, 7) != (char)-1)
abort (); abort ();
if (__sync_fetch_and_or(AI+9, 8) != 0) if (__sync_fetch_and_or(AI+9, 8) != 0)
abort (); abort ();
...@@ -34,7 +34,7 @@ do_qi (void) ...@@ -34,7 +34,7 @@ do_qi (void)
if (__sync_add_and_fetch(AI+12, 1) != 1) if (__sync_add_and_fetch(AI+12, 1) != 1)
abort (); abort ();
if (__sync_sub_and_fetch(AI+13, 12) != -12) if (__sync_sub_and_fetch(AI+13, 12) != (char)-12)
abort (); abort ();
if (__sync_and_and_fetch(AI+14, 7) != 7) if (__sync_and_and_fetch(AI+14, 7) != 7)
abort (); abort ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment