This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Blackfin testsuite updates
- From: Bernd Schmidt <bernds_cb1 at t-online dot de>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 31 May 2008 12:05:22 +0200
- Subject: Blackfin testsuite updates
This updates the Blackfin specific -mcpu testcases to take account of
the new RETS workaround, as well as the changes made to the default CPU
setting.
Bernd
--
This footer brought to you by insane German lawmakers.
Analog Devices GmbH Wilhelm-Wagenfeld-Str. 6 80807 Muenchen
Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 40368
Geschaeftsfuehrer Thomas Wessel, William A. Martin, Margaret Seif
Index: ChangeLog
===================================================================
--- ChangeLog (revision 136234)
+++ ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
+
+ * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
+ __WORKAROUND_RETS when appropriate.
+
2008-05-30 Richard Guenther <rguenther@suse.de>
* builtins.c (build_string_literal): Avoid generating
Index: testsuite/ChangeLog
===================================================================
--- testsuite/ChangeLog (revision 136234)
+++ testsuite/ChangeLog (working copy)
@@ -1,3 +1,36 @@
+2008-05-30 Bernd Schmidt <bernd.schmidt@analog.com>
+
+ * gcc.target/bfin/mcpu-default.c: Adjust for recent changes: default
+ CPU has all workarounds, and no longer explicitly sets bf532 as CPU
+ type.
+
+ * gcc.target/bfin/mcpu-bf531.c: Adjust for WORKAROUND_RETS.
+ * gcc.target/bfin/mcpu-bf532.c: Likewise.
+ * gcc.target/bfin/mcpu-bf533.c: Likewise.
+ * gcc.target/bfin/mcpu-bf534.c: Likewise.
+ * gcc.target/bfin/mcpu-bf536.c: Likewise.
+ * gcc.target/bfin/mcpu-bf537.c: Likewise.
+ * gcc.target/bfin/mcpu-bf548.c: Likewise.
+ * gcc.target/bfin/mcpu-bf549.c: Likewise.
+ * gcc.target/bfin/mcpu-bf561.c: Likewise.
+ * gcc.target/bfin/mcpu-bf523.c: Likewise.
+ * gcc.target/bfin/mcpu-bf524.c: Likewise.
+ * gcc.target/bfin/mcpu-bf526.c: Likewise.
+ * gcc.target/bfin/mcpu-bf522.c: Likewise.
+ * gcc.target/bfin/mcpu-bf525.c: Likewise.
+ * gcc.target/bfin/mcpu-bf527.c: Likewise.
+ * gcc.target/bfin/mcpu-bf538.c: Likewise.
+ * gcc.target/bfin/mcpu-bf539.c: Likewise.
+ * gcc.target/bfin/mcpu-bf542.c: Likewise.
+ * gcc.target/bfin/mcpu-bf544.c: Likewise.
+ * gcc.target/bfin/mcpu-default.c: Likewise.
+ * gcc.target/bfin/workarounds-any.c: Likewise.
+ * gcc.target/bfin/workarounds-none.c: Likewise.
+ * gcc.target/bfin/workarounds-1.c: Likewise.
+ * gcc.target/bfin/workarounds-2.c: Likewise.
+ * gcc.target/bfin/workarounds-3.c: Likewise.
+ * gcc.target/bfin/workarounds-4.c: Likewise.
+
2008-05-30 Tom Tromey <tromey@redhat.com>
PR preprocessor/36320:
Index: config/bfin/bfin.h
===================================================================
--- config/bfin/bfin.h (revision 136209)
+++ config/bfin/bfin.h (working copy)
@@ -133,6 +133,8 @@ extern int target_flags;
builtin_define ("__WORKAROUND_SPECULATIVE_LOADS"); \
if (ENABLE_WA_SPECULATIVE_SYNCS) \
builtin_define ("__WORKAROUND_SPECULATIVE_SYNCS"); \
+ if (ENABLE_WA_RETS) \
+ builtin_define ("__WORKAROUND_RETS"); \
\
if (TARGET_FDPIC) \
{ \
Index: testsuite/gcc.target/bfin/workarounds-any.c
===================================================================
--- testsuite/gcc.target/bfin/workarounds-any.c (revision 136234)
+++ testsuite/gcc.target/bfin/workarounds-any.c (working copy)
@@ -14,6 +14,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf522.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf522.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf522.c (working copy)
@@ -18,6 +18,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf523.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf523.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf523.c (working copy)
@@ -18,6 +18,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf542.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf542.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf542.c (working copy)
@@ -18,6 +18,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf524.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf524.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf524.c (working copy)
@@ -18,6 +18,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf561.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf561.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf561.c (working copy)
@@ -10,8 +10,12 @@
#error "__SILICON_REVISION__ is not 0x0005"
#endif
-#ifdef __WORKAROUNDS_ENABLED
-#error "__WORKAROUNDS_ENABLED is defined"
+#ifndef __WORKAROUNDS_ENABLED
+#error "__WORKAROUNDS_ENABLED is not defined"
+#endif
+
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
#endif
#ifdef __WORKAROUND_SPECULATIVE_LOADS
Index: testsuite/gcc.target/bfin/mcpu-bf525.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf525.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf525.c (working copy)
@@ -18,6 +18,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-default.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-default.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-default.c (working copy)
@@ -2,22 +2,92 @@
/* { dg-do preprocess } */
/* { dg-bfin-options "" } */
-#ifndef __ADSPBF532__
-#error "__ADSPBF532__ is not defined"
+#ifdef __ADSPBF522__
+#error "__ADSPBF522__ is defined"
#endif
+#ifdef __ADSPBF523__
+#error "__ADSPBF523__ is defined"
+#endif
+#ifdef __ADSPBF524__
+#error "__ADSPBF524__ is defined"
+#endif
+#ifdef __ADSPBF525__
+#error "__ADSPBF525__ is defined"
+#endif
+#ifdef __ADSPBF526__
+#error "__ADSPBF526__ is defined"
+#endif
+#ifdef __ADSPBF527__
+#error "__ADSPBF527__ is defined"
+#endif
+
-#if __SILICON_REVISION__ != 0x0005
-#error "__SILICON_REVISION__ is not 0x0005"
+#ifdef __ADSPBF531__
+#error "__ADSPBF531__ is defined"
+#endif
+#ifdef __ADSPBF532__
+#error "__ADSPBF532__ is defined"
+#endif
+#ifdef __ADSPBF533__
+#error "__ADSPBF533__ is defined"
+#endif
+#ifdef __ADSPBF534__
+#error "__ADSPBF534__ is defined"
+#endif
+#ifdef __ADSPBF536__
+#error "__ADSPBF536__ is defined"
+#endif
+#ifdef __ADSPBF537__
+#error "__ADSPBF537__ is defined"
+#endif
+#ifdef __ADSPBF538__
+#error "__ADSPBF538__ is defined"
+#endif
+#ifdef __ADSPBF539__
+#error "__ADSPBF539__ is defined"
+#endif
+
+#ifdef __ADSPBF542__
+#error "__ADSPBF542__ is defined"
+#endif
+#ifdef __ADSPBF544__
+#error "__ADSPBF544__ is defined"
+#endif
+#ifdef __ADSPBF547__
+#error "__ADSPBF547__ is defined"
+#endif
+#ifdef __ADSPBF548__
+#error "__ADSPBF548__ is defined"
+#endif
+#ifdef __ADSPBF549__
+#error "__ADSPBF548__ is defined"
+#endif
+
+#ifdef __ADSPBF561__
+#error "__ADSPBF561__ is defined"
+#endif
+
+
+#ifndef __SILICON_REVISION__
+#error "__SILICON_REVISION__ is not defined"
+#else
+#if __SILICON_REVISION__ != 0xffff
+#error "__SILICON_REVISION__ is not 0xFFFF"
+#endif
#endif
#ifndef __WORKAROUNDS_ENABLED
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
-#ifdef __WORKAROUND_SPECULATIVE_SYNCS
-#error "__WORKAROUND_SPECULATIVE_SYNCS is defined"
+#ifndef __WORKAROUND_SPECULATIVE_SYNCS
+#error "__WORKAROUND_SPECULATIVE_SYNCS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf544.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf544.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf544.c (working copy)
@@ -18,6 +18,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf526.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf526.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf526.c (working copy)
@@ -18,6 +18,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf527.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf527.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf527.c (working copy)
@@ -18,6 +18,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf547.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf547.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf547.c (working copy)
@@ -18,6 +18,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf548.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf548.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf548.c (working copy)
@@ -18,6 +18,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf549.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf549.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf549.c (working copy)
@@ -18,6 +18,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/workarounds-none.c
===================================================================
--- testsuite/gcc.target/bfin/workarounds-none.c (revision 136234)
+++ testsuite/gcc.target/bfin/workarounds-none.c (working copy)
@@ -14,6 +14,10 @@
#error "__WORKAROUNDS_ENABLED is defined"
#endif
+#ifdef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is defined"
+#endif
+
#ifdef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is defined"
#endif
Index: testsuite/gcc.target/bfin/workarounds-1.c
===================================================================
--- testsuite/gcc.target/bfin/workarounds-1.c (revision 136234)
+++ testsuite/gcc.target/bfin/workarounds-1.c (working copy)
@@ -14,6 +14,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/workarounds-2.c
===================================================================
--- testsuite/gcc.target/bfin/workarounds-2.c (revision 136234)
+++ testsuite/gcc.target/bfin/workarounds-2.c (working copy)
@@ -10,8 +10,12 @@
#error "__SILICON_REVISION__ is not 0x0003"
#endif
-#ifdef __WORKAROUNDS_ENABLED
-#error "__WORKAROUNDS_ENABLED is defined"
+#ifndef __WORKAROUNDS_ENABLED
+#error "__WORKAROUNDS_ENABLED is not defined"
+#endif
+
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
#endif
#ifdef __WORKAROUND_SPECULATIVE_LOADS
Index: testsuite/gcc.target/bfin/workarounds-3.c
===================================================================
--- testsuite/gcc.target/bfin/workarounds-3.c (revision 136234)
+++ testsuite/gcc.target/bfin/workarounds-3.c (working copy)
@@ -14,6 +14,10 @@
#error "__WORKAROUNDS_ENABLED is defined"
#endif
+#ifdef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is defined"
+#endif
+
#ifdef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is defined"
#endif
Index: testsuite/gcc.target/bfin/workarounds-4.c
===================================================================
--- testsuite/gcc.target/bfin/workarounds-4.c (revision 136234)
+++ testsuite/gcc.target/bfin/workarounds-4.c (working copy)
@@ -14,6 +14,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf531.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf531.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf531.c (working copy)
@@ -14,6 +14,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf532.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf532.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf532.c (working copy)
@@ -14,6 +14,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf533.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf533.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf533.c (working copy)
@@ -14,6 +14,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf534.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf534.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf534.c (working copy)
@@ -14,6 +14,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf536.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf536.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf536.c (working copy)
@@ -14,6 +14,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf537.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf537.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf537.c (working copy)
@@ -14,6 +14,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf538.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf538.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf538.c (working copy)
@@ -14,6 +14,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif
Index: testsuite/gcc.target/bfin/mcpu-bf539.c
===================================================================
--- testsuite/gcc.target/bfin/mcpu-bf539.c (revision 136234)
+++ testsuite/gcc.target/bfin/mcpu-bf539.c (working copy)
@@ -14,6 +14,10 @@
#error "__WORKAROUNDS_ENABLED is not defined"
#endif
+#ifndef __WORKAROUND_RETS
+#error "__WORKAROUND_RETS is not defined"
+#endif
+
#ifndef __WORKAROUND_SPECULATIVE_LOADS
#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
#endif