Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.target / bfin / mcpu-bf531.c
blobefacc5a0ade4cb481d394f63fa3e63db8c0ee1b3
1 /* Test for -mcpu=. */
2 /* { dg-do preprocess } */
3 /* { dg-bfin-options "-mcpu=bf531" } */
5 #ifndef __ADSPBF531__
6 #error "__ADSPBF531__ is not defined"
7 #endif
9 #if __SILICON_REVISION__ != 0x0005
10 #error "__SILICON_REVISION__ is not 0x0005"
11 #endif
13 #ifndef __WORKAROUNDS_ENABLED
14 #error "__WORKAROUNDS_ENABLED is not defined"
15 #endif
17 #ifndef __WORKAROUND_SPECULATIVE_LOADS
18 #error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
19 #endif
21 #ifdef __WORKAROUND_SPECULATIVE_SYNCS
22 #error "__WORKAROUND_SPECULATIVE_SYNCS is defined"
23 #endif