match: Check the number of elements in broadcasting operands
[nasm/avx512.git] / test / perf / macro.pl
blobb72980547c4f851401b6106830378a3e6e4c9bbe
1 #!/usr/bin/perl
3 # Generate a test case for macro lookup performance
6 ($len) = @ARGV;
7 $len = 100000 unless ($len);
9 print "\tbits 32\n";
10 print "\tsection .data\n";
11 print "\n";
13 for ($i = 0; $i < $len; $i++) {
14 print "%define m$i $i\n";
15 for ($j = 0; $j < 8; $j++) {
16 print "\tdd m", int(rand($i+1)), "\n";