blob: e82d86b03746f542fd12f7539e35b24d5d560a90 [file] [log] [blame]
Christophe Favergeonfeb73932020-05-20 14:48:06 +02001#include <cstdio>
Christophe Favergeond99acab2020-05-11 13:40:39 +02002#include "arm_math.h"
3extern int testmain(const char *);
Christophe Favergeon3b2a0ee2019-06-12 13:29:14 +02004
Christophe Favergeond99acab2020-05-11 13:40:39 +02005extern "C" const char *patternData;
Christophe Favergeon3f7bbfb2020-05-06 07:10:29 +02006
Christophe Favergeonfeb73932020-05-20 14:48:06 +02007//! \note for IAR
8#ifdef __IS_COMPILER_IAR__
9# undef __IS_COMPILER_IAR__
10#endif
11#if defined(__IAR_SYSTEMS_ICC__)
12# define __IS_COMPILER_IAR__ 1
13#endif
14
15
16
17
18//! \note for arm compiler 5
19#ifdef __IS_COMPILER_ARM_COMPILER_5__
20# undef __IS_COMPILER_ARM_COMPILER_5__
21#endif
22#if ((__ARMCC_VERSION >= 5000000) && (__ARMCC_VERSION < 6000000))
23# define __IS_COMPILER_ARM_COMPILER_5__ 1
24#endif
25//! @}
26
27//! \note for arm compiler 6
28#ifdef __IS_COMPILER_ARM_COMPILER_6__
29# undef __IS_COMPILER_ARM_COMPILER_6__
30#endif
31#if ((__ARMCC_VERSION >= 6000000) && (__ARMCC_VERSION < 7000000))
32# define __IS_COMPILER_ARM_COMPILER_6__ 1
33#endif
34
35#ifdef __IS_COMPILER_LLVM__
36# undef __IS_COMPILER_LLVM__
37#endif
38#if defined(__clang__) && !__IS_COMPILER_ARM_COMPILER_6__
39# define __IS_COMPILER_LLVM__ 1
40#else
41//! \note for gcc
42#ifdef __IS_COMPILER_GCC__
43# undef __IS_COMPILER_GCC__
44#endif
45#if defined(__GNUC__) && !(__IS_COMPILER_ARM_COMPILER_6__ || __IS_COMPILER_LLVM__)
46# define __IS_COMPILER_GCC__ 1
47#endif
48//! @}
49#endif
50//! @}
51
52#if defined(ARMCM33_DSP_FP) && defined(__IS_COMPILER_GCC__)
53extern "C" void _exit(int return_code);
54#endif
55
Christophe Favergeonf56d9272020-07-09 13:42:47 +020056
Christophe Favergeon3b2a0ee2019-06-12 13:29:14 +020057int main()
58{
Christophe Favergeonfeb73932020-05-20 14:48:06 +020059 int r;
60
61 r=testmain(patternData);
62
63 /*
64
65 Temporary solution to solve problems with IPSS support for M33.
66
67 */
68
69 #if defined(ARMCM33_DSP_FP) && defined(__IS_COMPILER_GCC__)
70 _exit(r);
71 #endif
72
73 return(r);
Christophe Favergeonc4c34802019-09-24 14:05:01 +020074}