annotate config/bm/Pygar/processor_test/audio_core_benchmark.cfx @ 40:7ac38b0f93fa pygar svn.41

[svn r41] made perl build script automatically generate program.vmh
author rlm
date Tue, 04 May 2010 19:53:09 -0400
parents 1a21b4cd85ee
children 97d1959f7c5c
rev   line source
punk@31 1 : # -*-Perl-*-
punk@31 2 eval 'exec perl -w "$0" ${1+"$@"}'
punk@31 3 if 0;
punk@31 4
punk@31 5 ##
punk@31 6 ## Directory of hasim benchmarks
punk@31 7 ## Remember to set this file as executable
punk@31 8
punk@31 9 use Asim;
punk@31 10 use strict;
punk@31 11
punk@31 12 my $gcfg = Asim::GenCFG->new();
punk@31 13
punk@31 14 my @tests = ("smipsv1_simple",
punk@31 15 "smipsv1_addiu",
punk@31 16 "smipsv1_bne",
punk@31 17 "smipsv1_lw",
punk@31 18 "smipsv1_sw",
punk@31 19 "smipsv2_addiu",
punk@31 20 "smipsv2_addu",
punk@31 21 "smipsv2_andi",
punk@31 22 "smipsv2_and",
punk@31 23 "smipsv2_beq",
punk@32 24 "smipsv2_bgez",
punk@32 25 "smipsv2_bgtz",
punk@32 26 "smipsv2_blez");
punk@31 27
rlm@34 28 my @bmarks = ("null.wav", "reuben_james_1sec.wav", "rlp.wav");
punk@31 29
punk@31 30 foreach my $test (@tests) {
punk@31 31 $gcfg->add(name => $test,
punk@31 32 tree => [ "tests" ],
rlm@40 33 setup => "scripts/setup-mit-6.375-bmark-audio-core --group instruction-tests --isa smips $test --data=../benchmarks/audio_processor_test/rlp.wav --linkto=../tools/audio_processor_test/null/checker",
punk@31 34 feeder => "vcs",
punk@31 35 feedflags => "program.0/${test}.smips.vmh",
punk@31 36 ccount => 800000,
punk@31 37 );
punk@31 38 }
punk@31 39
punk@31 40 foreach my $bmark (@bmarks) {
punk@31 41 $gcfg->add(name => $bmark,
punk@31 42 tree => [ "benchmarks" ],
punk@31 43 setup => "scripts/setup-mit-6.375-bmark --silent=1 --compare=1 --data=../benchmarks/audio_processor_test/$bmark $bmark --linkto=../tools/audio_processor_test/null/checker",
punk@31 44 feeder => "none",
punk@31 45 ccount => 800000, #Hmmm.... may need to edit
punk@31 46 );
punk@31 47 }
punk@31 48
punk@31 49 $gcfg->action(@ARGV);