aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/ftest-support.h
blob: c56d2d58860081625422daf6eb88392017e31861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
/* For each of several ARM architecture features, check that relevant
   macros are defined or not, and that they have the expected values.  */

#ifdef NEED_ARM_ARCH
# ifdef __ARM_ARCH
#  if __ARM_ARCH != VALUE_ARM_ARCH
#   error __ARM_ARCH has unexpected value
#  endif
# else
#  error __ARM_ARCH is not defined but should be
# endif
#else
# ifdef __ARM_ARCH
#  error __ARM_ARCH is defined but should not be
# endif
#endif

#ifdef NEED_ARM_ARCH_ISA_ARM
# ifdef __ARM_ARCH_ISA_ARM
#  if __ARM_ARCH_ISA_ARM != VALUE_ARM_ARCH_ISA_ARM
#   error __ARM_ARCH_ISA_ARM has unexpected value
#  endif
# else
#  error __ARM_ARCH_ISA_ARM is not defined but should be
# endif
#else
# ifdef __ARM_ARCH_ISA_ARM
#  error __ARM_ARCH_ISA_ARM is defined but should not be
# endif
#endif

#ifdef NEED_ARM_ARCH_ISA_THUMB
# ifdef __ARM_ARCH_ISA_THUMB
#  if __ARM_ARCH_ISA_THUMB != VALUE_ARM_ARCH_ISA_THUMB
#   error __ARM_ARCH_ISA_THUMB has unexpected value
#  endif
# else
#  error __ARM_ARCH_ISA_THUMB is not defined but should be
# endif
#else
# ifdef __ARM_ARCH_ISA_THUMB
#  error __ARM_ARCH_ISA_THUMB is defined but should not be
# endif
#endif

#ifdef NEED_ARM_ARCH_PROFILE
# ifdef __ARM_ARCH_PROFILE
#  if __ARM_ARCH_PROFILE != VALUE_ARM_ARCH_PROFILE
#   error __ARM_ARCH_PROFILE has unexpected value
#  endif
# else
#  error __ARM_ARCH_PROFILE is not defined but should be
# endif
#else
# ifdef __ARM_ARCH_PROFILE
#  error __ARM_ARCH_PROFILE is defined but should not be
# endif
#endif

#ifdef NEED_ARM_FEATURE_UNALIGNED
# ifdef __ARM_FEATURE_UNALIGNED
#  if __ARM_FEATURE_UNALIGNED != VALUE_ARM_FEATURE_UNALIGNED
#   error __ARM_FEATURE_UNALIGNED has unexpected value
#  endif
# else
#  error __ARM_FEATURE_UNALIGNED is not defined but should be
# endif
#else
# ifdef __ARM_FEATURE_UNALIGNED
#  error __ARM_FEATURE_UNALIGNED is defined but should not be
# endif
#endif

#ifdef NEED_ARM_FEATURE_LDREX
# ifdef __ARM_FEATURE_LDREX
#  if __ARM_FEATURE_LDREX != VALUE_ARM_FEATURE_LDREX
#   error __ARM_FEATURE_LDREX has unexpected value
#  endif
# else
#  error __ARM_FEATURE_LDREX is not defined but should be
# endif
#else
# ifdef __ARM_FEATURE_LDREX
#  error __ARM_FEATURE_LDREX is defined but should not be
# endif
#endif

#ifdef NEED_ARM_FEATURE_CLZ
# ifdef __ARM_FEATURE_CLZ
#  if __ARM_FEATURE_CLZ != VALUE_ARM_FEATURE_CLZ
#   error __ARM_FEATURE_CLZ has unexpected value
#  endif
# else
#  error __ARM_FEATURE_CLZ is not defined but should be
# endif
#else
# ifdef __ARM_FEATURE_CLZ
#  error __ARM_FEATURE_CLZ is defined but should not be
# endif
#endif

#ifdef NEED_ARM_FEATURE_DSP
# ifdef __ARM_FEATURE_DSP
#  if __ARM_FEATURE_DSP != VALUE_ARM_FEATURE_DSP
#   error __ARM_FEATURE_DSP has unexpected value
#  endif
# else
#  error __ARM_FEATURE_DSP is not defined but should be
# endif
#else
# ifdef __ARM_FEATURE_DSP
#  error __ARM_FEATURE_DSP is defined but should not be
# endif
#endif

#ifdef NEED_ARM_FEATURE_SIMD32
# ifdef __ARM_FEATURE_SIMD32
#  if __ARM_FEATURE_SIMD32 != VALUE_ARM_FEATURE_SIMD32
#   error __ARM_FEATURE_SIMD32 has unexpected value
#  endif
# else
#  error __ARM_FEATURE_SIMD32 is not defined but should be
# endif
#else
# ifdef __ARM_FEATURE_SIMD32
#  error __ARM_FEATURE_SIMD32 is defined but should not be
# endif
#endif

#ifdef NEED_ARM_FEATURE_QBIT
# ifdef __ARM_FEATURE_QBIT
#  if __ARM_FEATURE_QBIT != VALUE_ARM_FEATURE_QBIT
#   error __ARM_FEATURE_QBIT has unexpected value
#  endif
# else
#  error __ARM_FEATURE_QBIT is not defined but should be
# endif
#else
# ifdef __ARM_FEATURE_QBIT
#  error __ARM_FEATURE_QBIT is defined but should not be
# endif
#endif

#ifdef NEED_ARM_FEATURE_SAT
# ifdef __ARM_FEATURE_SAT
#  if __ARM_FEATURE_SAT != VALUE_ARM_FEATURE_SAT
#   error __ARM_FEATURE_SAT has unexpected value
#  endif
# else
#  error __ARM_FEATURE_SAT is not defined but should be
# endif
#else
# ifdef __ARM_FEATURE_SAT
#  error __ARM_FEATURE_SAT is defined but should not be
# endif
#endif