Commit 1f63d059 by Uros Bizjak

fix-r10000-6.c: Add dg-message to look for the note about changed semantics of NAND builtin.

	* gcc.target/mips/fix-r10000-6.c: Add dg-message to look for
	the note about changed semantics of NAND builtin.
	* gcc.target/mips/fix-r10000-6.c: Ditto.
	* gcc.target/mips/atomic-memory-1.c: Ditto.
	(main): Correct __sync_nand_and_fetch results.

From-SVN: r142564
parent 9bebdb76
2008-12-08 Uros Bizjak <ubizjak@gmail.com>
* gcc.target/mips/fix-r10000-6.c: Add dg-message to look for
the note about changed semantics of NAND builtin.
* gcc.target/mips/fix-r10000-6.c: Ditto.
* gcc.target/mips/atomic-memory-1.c: Ditto.
(main): Correct __sync_nand_and_fetch results.
2008-12-08 Dodji Seketeli <dodji@redhat.com> 2008-12-08 Dodji Seketeli <dodji@redhat.com>
PR debug/38390 PR debug/38390
...@@ -5,7 +13,7 @@ ...@@ -5,7 +13,7 @@
2008-12-08 Steve Ellcey <sje@cup.hp.com> 2008-12-08 Steve Ellcey <sje@cup.hp.com>
* g++.dg/other/packed1.C: Remove ia64-hp-hpux* XFAIL. * g++.dg/other/packed1.C: Remove ia64-hp-hpux* XFAIL.
2008-12-08 Steve Ellcey <sje@cup.hp.com> 2008-12-08 Steve Ellcey <sje@cup.hp.com>
...@@ -1859,7 +1867,7 @@ ...@@ -1859,7 +1867,7 @@
2008-09-24 Steve Ellcey <sje@cup.hp.com> 2008-09-24 Steve Ellcey <sje@cup.hp.com>
* gcc.dg/vect/O3-vect-pr34223.c: Check vect_int_mult. * gcc.dg/vect/O3-vect-pr34223.c: Check vect_int_mult.
2008-09-24 Aldy Hernandez <aldyh@redhat.com> 2008-09-24 Aldy Hernandez <aldyh@redhat.com>
......
/* { dg-do run } */ /* { dg-do run } */
/* { dg-message "note: '__sync_nand_and_fetch' changed semantics in GCC 4.4" "" { target *-*-* } 0 } */
extern void abort (void); extern void abort (void);
extern void exit (int); extern void exit (int);
...@@ -16,9 +19,9 @@ NOMIPS16 int main () ...@@ -16,9 +19,9 @@ NOMIPS16 int main ()
__sync_sub_and_fetch (&v, 0x7fff); __sync_sub_and_fetch (&v, 0x7fff);
if (v != 34465) if (v != 34465)
abort(); abort();
if (__sync_nand_and_fetch (&v, 0xff) != 94) if (__sync_nand_and_fetch (&v, 0xff) != -162)
abort(); abort();
if (__sync_fetch_and_add (&v, 6) != 94) if (__sync_fetch_and_add (&v, 262) != -162)
abort(); abort();
if (v != 100) if (v != 100)
abort(); abort();
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
/* { dg-mips-options "-O2 -march=mips4 -mfix-r10000" } */ /* { dg-mips-options "-O2 -march=mips4 -mfix-r10000" } */
/* { dg-final { scan-assembler-times "\tbeql\t" 3 } } */ /* { dg-final { scan-assembler-times "\tbeql\t" 3 } } */
/* { dg-message "note: '__sync_nand_and_fetch' changed semantics in GCC 4.4" "" { target *-*-* } 0 } */
NOMIPS16 int NOMIPS16 int
f1 (int *z) f1 (int *z)
{ {
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
/* { dg-mips-options "-O2 -march=mips4 -mfix-r10000" } */ /* { dg-mips-options "-O2 -march=mips4 -mfix-r10000" } */
/* { dg-final { scan-assembler-times "\tbeql\t" 3 } } */ /* { dg-final { scan-assembler-times "\tbeql\t" 3 } } */
/* { dg-message "note: '__sync_fetch_and_nand' changed semantics in GCC 4.4" "" { target *-*-* } 0 } */
NOMIPS16 int NOMIPS16 int
f1 (int *z) f1 (int *z)
{ {
......
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