match: Check the number of elements in broadcasting operands
[nasm/avx512.git] / test / iftoken.pl
blob925dd40c5f488a92c4b9801bd36cd00ceb0aa6ad
1 #!/usr/bin/perl
3 @list = ('', 'ZMACRO', 'NMACRO', 'TMACRO', '1', '+1', '1 2', '1,2',
4 'foo', 'foo bar', '%', '+foo', '<<');
5 @tests = ('token', 'empty');
7 print ";Testname=test; Arguments=-fbin -oiftoken.txt; Files=stdout stderr iftoken.txt"
8 print "%define ZMACRO\n";
9 print "%define NMACRO 1\n";
10 print "%define TMACRO 1 2\n";
12 foreach $x (@list) {
13 print "\tdb 'N \"$x\":'\n";
14 foreach $t (@tests) {
15 print "%if$t $x\n";
16 print "\tdb ' $t'\n";
17 print "%else\n";
18 print "\tdb ' n$t'\n";
19 print "%endif\n";
21 print "\tdb 10\n";
23 print "\tdb 'C \"$x\":'\n";
24 foreach $t (@tests) {
25 print "%if$t $x ; With a comment!\n";
26 print "\tdb ' $t'\n";
27 print "%else\n";
28 print "\tdb ' n$t'\n";
29 print "%endif\n";
31 print "\tdb 10\n";