Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.target / bfin / mcpu-bf522.c
blob5674cab62446bf740f2651cf64f8fa9e1177e706
1 /* Test for -mcpu=. */
2 /* { dg-do preprocess } */
3 /* { dg-bfin-options "-mcpu=bf522" } */
5 #ifndef __ADSPBF522__
6 #error "__ADSPBF522__ is not defined"
7 #endif
9 #ifndef __ADSPBF52x__
10 #error "__ADSPBF52x__ is not defined"
11 #endif
13 #if __SILICON_REVISION__ != 0x0000
14 #error "__SILICON_REVISION__ is not 0x0000"
15 #endif
17 #ifndef __WORKAROUNDS_ENABLED
18 #error "__WORKAROUNDS_ENABLED is not defined"
19 #endif
21 #ifndef __WORKAROUND_SPECULATIVE_LOADS
22 #error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
23 #endif
25 #ifdef __WORKAROUND_SPECULATIVE_SYNCS
26 #error "__WORKAROUND_SPECULATIVE_SYNCS is defined"
27 #endif