Mercurial > pygar
diff config/bm/Pygar/processor_test/mips.cfx @ 23:90197e3375e2 pygar svn.24
[svn r24] added testing, but something is wrong with our c++ file.
author | rlm |
---|---|
date | Wed, 28 Apr 2010 08:19:09 -0400 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/config/bm/Pygar/processor_test/mips.cfx Wed Apr 28 08:19:09 2010 -0400 1.3 @@ -0,0 +1,78 @@ 1.4 +: # -*-Perl-*- 1.5 +eval 'exec perl -w "$0" ${1+"$@"}' 1.6 + if 0; 1.7 + 1.8 +use Asim; 1.9 +use strict; 1.10 + 1.11 +## 1.12 +## Generate cfg files for 6.375 tests and benchmarks. 1.13 +## 1.14 + 1.15 +my $gcfg = Asim::GenCFG->new(); 1.16 + 1.17 +my @tests = ("smipsv1_simple", 1.18 + "smipsv1_addiu", 1.19 + "smipsv1_bne", 1.20 + "smipsv1_lw", 1.21 + "smipsv1_sw", 1.22 + "smipsv2_addiu", 1.23 + "smipsv2_addu", 1.24 + "smipsv2_andi", 1.25 + "smipsv2_and", 1.26 + "smipsv2_beq", 1.27 + "smipsv2_bgez", 1.28 + "smipsv2_bgtz", 1.29 + "smipsv2_blez", 1.30 + "smipsv2_bltz", 1.31 + "smipsv2_bne", 1.32 + "smipsv2_jalr", 1.33 + "smipsv2_jal", 1.34 + "smipsv2_jr", 1.35 + "smipsv2_j", 1.36 + "smipsv2_lui", 1.37 + "smipsv2_lw", 1.38 + "smipsv2_nor", 1.39 + "smipsv2_ori", 1.40 + "smipsv2_or", 1.41 + "smipsv2_simple", 1.42 + "smipsv2_sll", 1.43 + "smipsv2_sllv", 1.44 + "smipsv2_slti", 1.45 + "smipsv2_sltiu", 1.46 + "smipsv2_slt", 1.47 + "smipsv2_sltu", 1.48 + "smipsv2_sra", 1.49 + "smipsv2_srav", 1.50 + "smipsv2_srl", 1.51 + "smipsv2_srlv", 1.52 + "smipsv2_subu", 1.53 + "smipsv2_sw", 1.54 + "smipsv2_xori", 1.55 + "smipsv2_xor"); 1.56 + 1.57 +my @bmarks = ("median", 1.58 + "multiply", 1.59 + "towers", 1.60 + "qsort", 1.61 + "vvadd"); 1.62 + 1.63 +foreach my $test (@tests) { 1.64 + $gcfg->add(name => $test, 1.65 + tree => [ "tests" ], 1.66 + setup => "scripts/setup-mit-6.375-bmark-processor --group instruction-tests --isa smips $test", 1.67 + feeder => "vcs", 1.68 + feedflags => "program.0/${test}.smips.vmh", 1.69 + ); 1.70 +} 1.71 + 1.72 +foreach my $bmark (@bmarks) { 1.73 + $gcfg->add(name => $bmark, 1.74 + tree => [ "benchmarks" ], 1.75 + setup => "scripts/setup-mit-6.375-bmark-processor --isa smips $bmark", 1.76 + feeder => "vcs", 1.77 + feedflags => "program.0/${bmark}.smips.vmh", 1.78 + ); 1.79 +} 1.80 + 1.81 +$gcfg->action(@ARGV);