diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index eb89d6b6468fe5ee774349fe1d6b6ffbc4d44ade..f8fe5af7083fe555bc09041197ce044eedd71105 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-17  David Edelsohn  <edelsohn@gnu.org>
+
+	* gcc.dg/darwin-longlong.c: XFAIL on AIX and SPE.
+
 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
 
 	* gcc.c-torture/execute/pr17252.c: Use post-increment to
diff --git a/gcc/testsuite/gcc.dg/darwin-longlong.c b/gcc/testsuite/gcc.dg/darwin-longlong.c
index 1c5d057798be559d272f985163fb9c7638d08073..b9392c0c37b66da16801b763eb022142f7c2b3ec 100644
--- a/gcc/testsuite/gcc.dg/darwin-longlong.c
+++ b/gcc/testsuite/gcc.dg/darwin-longlong.c
@@ -1,4 +1,5 @@
 /* { dg-do run { target powerpc*-*-* } } */
+/* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "-mcpu=G5" } { "" } } */
 /* { dg-options "-mcpu=G5" } */
 
 #include <signal.h>