Clean up unterminated lines
[nasm/avx512.git] / test / perf / token.pl
blob4a9e3aece2167ff2173d26e55b03304cb946f4cf
1 #!/usr/bin/perl
3 # Generate a test case for token lookup performance
6 @insns = qw(add sub adc sbb and or xor mov);
7 @regs = qw(eax ebx ecx edx esp ebp esi edi);
9 srand(0);
10 sub pickone(@) {
11 return $_[int(rand(scalar @_))];
14 ($len) = @ARGV;
15 $len = 1000000 unless ($len);
17 print "\tbits 32\n";
18 print "\n";
20 for ($i = 0; $i < $len; $i++) {
21 print "\t", pickone(@insns), " ",
22 pickone(@regs), ",", pickone(@regs), "\n";