* testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
* testsuite/libgomp.c/atomic-6.c: Ditto.
From-SVN: r145061
+2009-03-25 Uros Bizjak <ubizjak@gmail.com>
+
+ * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
+ * testsuite/libgomp.c/atomic-6.c: Ditto.
+
2009-03-23 Jakub Jelinek <jakub@redhat.com>
PR c/39495
2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
- * testsuite/lib/libgomp.exp: Add -B option for targets that
+ * testsuite/lib/libgomp.exp: Add -B option for targets that
use libgfortran.a%s in their specs.
2009-01-07 Jakub Jelinek <jakub@redhat.com>
/* { dg-options "-O2 -mcx16" { target { { i?86-*-* x86_64-*-* } && lp64 } } } */
#ifdef __x86_64__
-# include "../../../gcc/config/i386/cpuid.h"
+# include "cpuid.h"
#endif
extern void abort (void);
if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
return 0;
- if (ecx & bit_CMPXCHG16B)
- do_test ();
-#else
- do_test ();
+ if (!(ecx & bit_CMPXCHG16B))
+ return 0;
#endif
+
+ do_test ();
+
return 0;
}
/* { dg-options "-O2 -march=i586" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
#ifdef __i386__
-# include "../../../gcc/config/i386/cpuid.h"
+# include "cpuid.h"
#endif
extern void abort (void);
if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
return 0;
- if (edx & bit_CMPXCHG8B)
- do_test ();
-#else
- do_test ();
+ if (!(edx & bit_CMPXCHG8B))
+ return 0;
#endif
+
+ do_test ();
+
return 0;
}