|
From: <sv...@va...> - 2005-07-06 08:39:11
|
Author: sewardj
Date: 2005-07-06 09:38:19 +0100 (Wed, 06 Jul 2005)
New Revision: 4113
Log:
This test is nonsensical for ppc; it only applies to x86 and amd64.
Modified:
trunk/none/tests/yield.c
Modified: trunk/none/tests/yield.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/none/tests/yield.c 2005-07-06 08:17:07 UTC (rev 4112)
+++ trunk/none/tests/yield.c 2005-07-06 08:38:19 UTC (rev 4113)
@@ -54,6 +54,9 @@
=20
int main()
{
+#if defined(__powerpc__)
+ printf("PASS\n");
+#else
pthread_t a, b;
=20
pthread_create(&a, NULL, spinner, NULL);
@@ -84,6 +87,7 @@
else
printf("FAIL spin=3D%d rep_nop=3D%d rep_nop:spin ratio: %g\n",=20
spin, rep_nop, (float)rep_nop / spin);
+#endif
=20
return 0;
}
|
|
From: Nicholas N. <nj...@cs...> - 2005-07-06 13:02:34
|
On Wed, 6 Jul 2005, sv...@va... wrote: > Log: > This test is nonsensical for ppc; it only applies to x86 and amd64. With the "#ifdef __x86__" it only applies to x86 and should probably be moved into none/tests/x86/. N |
|
From: Julian S. <js...@ac...> - 2005-07-06 14:56:43
|
> With the "#ifdef __x86__" it only applies to x86 and should probably be > moved into none/tests/x86/. Will do. Notionally this also applies to amd64, but I guess I could duplicate it. smc1 (I realised eventually) is also x86 specific; but only realised this after getting nonsensical results from it on ppc32 :-) I'll deal with that too. I've figured out the least worst way to implement INT on x86 so I'll do that soon too. J |