1 /* Test for -mcpu=. */ 2 /* { dg-do preprocess } */ 3 /* { dg-bfin-options "-mcpu=bf533" } */ 4 5 #ifndef __ADSPBF533__ 6 #error "__ADSPBF533__ is not defined" 7 #endif 8 9 #if __SILICON_REVISION__ != 0x0006 10 #error "__SILICON_REVISION__ is not 0x0006" 11 #endif 12 13 #ifndef __WORKAROUNDS_ENABLED 14 #error "__WORKAROUNDS_ENABLED is not defined" 15 #endif 16 17 #if __SILICON_REVISION__ <= 0x0005 18 #ifndef __WORKAROUND_RETS 19 #error "__WORKAROUND_RETS is not defined" 20 #endif 21 #else 22 #ifdef __WORKAROUND_RETS 23 #error "__WORKAROUND_RETS is defined" 24 #endif 25 #endif 26 27 #ifndef __WORKAROUND_SPECULATIVE_LOADS 28 #error "__WORKAROUND_SPECULATIVE_LOADS is not defined" 29 #endif 30 31 #ifdef __WORKAROUND_SPECULATIVE_SYNCS 32 #error "__WORKAROUND_SPECULATIVE_SYNCS is defined" 33 #endif 34