From 1f63d0598ea171c7fe537d225c49be50aed85e8d Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Mon, 8 Dec 2008 22:42:15 +0100 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 12 ++++++++++-- gcc/testsuite/gcc.target/mips/atomic-memory-1.c | 7 +++++-- gcc/testsuite/gcc.target/mips/fix-r10000-12.c | 2 ++ gcc/testsuite/gcc.target/mips/fix-r10000-6.c | 2 ++ 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9e35e52..8405afd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2008-12-08 Uros Bizjak + + * 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 PR debug/38390 @@ -5,7 +13,7 @@ 2008-12-08 Steve Ellcey - * 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 @@ -1859,7 +1867,7 @@ 2008-09-24 Steve Ellcey - * 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 diff --git a/gcc/testsuite/gcc.target/mips/atomic-memory-1.c b/gcc/testsuite/gcc.target/mips/atomic-memory-1.c index e9a95ea..b2316ee 100644 --- a/gcc/testsuite/gcc.target/mips/atomic-memory-1.c +++ b/gcc/testsuite/gcc.target/mips/atomic-memory-1.c @@ -1,4 +1,7 @@ /* { dg-do run } */ + +/* { dg-message "note: '__sync_nand_and_fetch' changed semantics in GCC 4.4" "" { target *-*-* } 0 } */ + extern void abort (void); extern void exit (int); @@ -16,9 +19,9 @@ NOMIPS16 int main () __sync_sub_and_fetch (&v, 0x7fff); if (v != 34465) abort(); - if (__sync_nand_and_fetch (&v, 0xff) != 94) + if (__sync_nand_and_fetch (&v, 0xff) != -162) abort(); - if (__sync_fetch_and_add (&v, 6) != 94) + if (__sync_fetch_and_add (&v, 262) != -162) abort(); if (v != 100) abort(); diff --git a/gcc/testsuite/gcc.target/mips/fix-r10000-12.c b/gcc/testsuite/gcc.target/mips/fix-r10000-12.c index 0381c24..160f9ae 100644 --- a/gcc/testsuite/gcc.target/mips/fix-r10000-12.c +++ b/gcc/testsuite/gcc.target/mips/fix-r10000-12.c @@ -2,6 +2,8 @@ /* { dg-mips-options "-O2 -march=mips4 -mfix-r10000" } */ /* { 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 f1 (int *z) { diff --git a/gcc/testsuite/gcc.target/mips/fix-r10000-6.c b/gcc/testsuite/gcc.target/mips/fix-r10000-6.c index 2751369..1f81e5b 100644 --- a/gcc/testsuite/gcc.target/mips/fix-r10000-6.c +++ b/gcc/testsuite/gcc.target/mips/fix-r10000-6.c @@ -2,6 +2,8 @@ /* { dg-mips-options "-O2 -march=mips4 -mfix-r10000" } */ /* { 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 f1 (int *z) { -- 2.7.4