]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.target/bfin/mcpu-bf533.c
bfin.h (TARGET_CPU_CPP_BUILTINS): Define __WORKAROUND_RETS when appropriate.
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / bfin / mcpu-bf533.c
CommitLineData
ea2382be
JZ
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__ != 0x0005
10#error "__SILICON_REVISION__ is not 0x0005"
11#endif
12
13#ifndef __WORKAROUNDS_ENABLED
14#error "__WORKAROUNDS_ENABLED is not defined"
15#endif
16
2643f14e
BS
17#ifndef __WORKAROUND_RETS
18#error "__WORKAROUND_RETS is not defined"
19#endif
20
ea2382be
JZ
21#ifndef __WORKAROUND_SPECULATIVE_LOADS
22#error "__WORKAROUND_SPECULATIVE_LOADS is not defined"
23#endif
24
25#ifdef __WORKAROUND_SPECULATIVE_SYNCS
26#error "__WORKAROUND_SPECULATIVE_SYNCS is defined"
27#endif