NASM 2.02
[nasm/avx512.git] / test / iftoken.asm
blob7bf000c24a5bae27c9ec604f78b47a36110047a0
1 %define ZMACRO
2 %define NMACRO 1
3 %define TMACRO 1 2
4 db 'N "":'
5 %iftoken
6 db ' token'
7 %else
8 db ' ntoken'
9 %endif
10 %ifempty
11 db ' empty'
12 %else
13 db ' nempty'
14 %endif
15 db 10
16 db 'C "":'
17 %iftoken ; With a comment!
18 db ' token'
19 %else
20 db ' ntoken'
21 %endif
22 %ifempty ; With a comment!
23 db ' empty'
24 %else
25 db ' nempty'
26 %endif
27 db 10
28 db 'N "ZMACRO":'
29 %iftoken ZMACRO
30 db ' token'
31 %else
32 db ' ntoken'
33 %endif
34 %ifempty ZMACRO
35 db ' empty'
36 %else
37 db ' nempty'
38 %endif
39 db 10
40 db 'C "ZMACRO":'
41 %iftoken ZMACRO ; With a comment!
42 db ' token'
43 %else
44 db ' ntoken'
45 %endif
46 %ifempty ZMACRO ; With a comment!
47 db ' empty'
48 %else
49 db ' nempty'
50 %endif
51 db 10
52 db 'N "NMACRO":'
53 %iftoken NMACRO
54 db ' token'
55 %else
56 db ' ntoken'
57 %endif
58 %ifempty NMACRO
59 db ' empty'
60 %else
61 db ' nempty'
62 %endif
63 db 10
64 db 'C "NMACRO":'
65 %iftoken NMACRO ; With a comment!
66 db ' token'
67 %else
68 db ' ntoken'
69 %endif
70 %ifempty NMACRO ; With a comment!
71 db ' empty'
72 %else
73 db ' nempty'
74 %endif
75 db 10
76 db 'N "TMACRO":'
77 %iftoken TMACRO
78 db ' token'
79 %else
80 db ' ntoken'
81 %endif
82 %ifempty TMACRO
83 db ' empty'
84 %else
85 db ' nempty'
86 %endif
87 db 10
88 db 'C "TMACRO":'
89 %iftoken TMACRO ; With a comment!
90 db ' token'
91 %else
92 db ' ntoken'
93 %endif
94 %ifempty TMACRO ; With a comment!
95 db ' empty'
96 %else
97 db ' nempty'
98 %endif
99 db 10
100 db 'N "1":'
101 %iftoken 1
102 db ' token'
103 %else
104 db ' ntoken'
105 %endif
106 %ifempty 1
107 db ' empty'
108 %else
109 db ' nempty'
110 %endif
111 db 10
112 db 'C "1":'
113 %iftoken 1 ; With a comment!
114 db ' token'
115 %else
116 db ' ntoken'
117 %endif
118 %ifempty 1 ; With a comment!
119 db ' empty'
120 %else
121 db ' nempty'
122 %endif
123 db 10
124 db 'N "+1":'
125 %iftoken +1
126 db ' token'
127 %else
128 db ' ntoken'
129 %endif
130 %ifempty +1
131 db ' empty'
132 %else
133 db ' nempty'
134 %endif
135 db 10
136 db 'C "+1":'
137 %iftoken +1 ; With a comment!
138 db ' token'
139 %else
140 db ' ntoken'
141 %endif
142 %ifempty +1 ; With a comment!
143 db ' empty'
144 %else
145 db ' nempty'
146 %endif
147 db 10
148 db 'N "1 2":'
149 %iftoken 1 2
150 db ' token'
151 %else
152 db ' ntoken'
153 %endif
154 %ifempty 1 2
155 db ' empty'
156 %else
157 db ' nempty'
158 %endif
159 db 10
160 db 'C "1 2":'
161 %iftoken 1 2 ; With a comment!
162 db ' token'
163 %else
164 db ' ntoken'
165 %endif
166 %ifempty 1 2 ; With a comment!
167 db ' empty'
168 %else
169 db ' nempty'
170 %endif
171 db 10
172 db 'N "1,2":'
173 %iftoken 1,2
174 db ' token'
175 %else
176 db ' ntoken'
177 %endif
178 %ifempty 1,2
179 db ' empty'
180 %else
181 db ' nempty'
182 %endif
183 db 10
184 db 'C "1,2":'
185 %iftoken 1,2 ; With a comment!
186 db ' token'
187 %else
188 db ' ntoken'
189 %endif
190 %ifempty 1,2 ; With a comment!
191 db ' empty'
192 %else
193 db ' nempty'
194 %endif
195 db 10
196 db 'N "foo":'
197 %iftoken foo
198 db ' token'
199 %else
200 db ' ntoken'
201 %endif
202 %ifempty foo
203 db ' empty'
204 %else
205 db ' nempty'
206 %endif
207 db 10
208 db 'C "foo":'
209 %iftoken foo ; With a comment!
210 db ' token'
211 %else
212 db ' ntoken'
213 %endif
214 %ifempty foo ; With a comment!
215 db ' empty'
216 %else
217 db ' nempty'
218 %endif
219 db 10
220 db 'N "foo bar":'
221 %iftoken foo bar
222 db ' token'
223 %else
224 db ' ntoken'
225 %endif
226 %ifempty foo bar
227 db ' empty'
228 %else
229 db ' nempty'
230 %endif
231 db 10
232 db 'C "foo bar":'
233 %iftoken foo bar ; With a comment!
234 db ' token'
235 %else
236 db ' ntoken'
237 %endif
238 %ifempty foo bar ; With a comment!
239 db ' empty'
240 %else
241 db ' nempty'
242 %endif
243 db 10
244 db 'N "%":'
245 %iftoken %
246 db ' token'
247 %else
248 db ' ntoken'
249 %endif
250 %ifempty %
251 db ' empty'
252 %else
253 db ' nempty'
254 %endif
255 db 10
256 db 'C "%":'
257 %iftoken % ; With a comment!
258 db ' token'
259 %else
260 db ' ntoken'
261 %endif
262 %ifempty % ; With a comment!
263 db ' empty'
264 %else
265 db ' nempty'
266 %endif
267 db 10
268 db 'N "+foo":'
269 %iftoken +foo
270 db ' token'
271 %else
272 db ' ntoken'
273 %endif
274 %ifempty +foo
275 db ' empty'
276 %else
277 db ' nempty'
278 %endif
279 db 10
280 db 'C "+foo":'
281 %iftoken +foo ; With a comment!
282 db ' token'
283 %else
284 db ' ntoken'
285 %endif
286 %ifempty +foo ; With a comment!
287 db ' empty'
288 %else
289 db ' nempty'
290 %endif
291 db 10
292 db 'N "<<":'
293 %iftoken <<
294 db ' token'
295 %else
296 db ' ntoken'
297 %endif
298 %ifempty <<
299 db ' empty'
300 %else
301 db ' nempty'
302 %endif
303 db 10
304 db 'C "<<":'
305 %iftoken << ; With a comment!
306 db ' token'
307 %else
308 db ' ntoken'
309 %endif
310 %ifempty << ; With a comment!
311 db ' empty'
312 %else
313 db ' nempty'
314 %endif
315 db 10