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