1 ##=== TEST.beta-compare.report - Compare llc vs llcbeta --------*- perl -*-===##
3 # This file defines a report to be generated for the beta-compare test.
5 ##===----------------------------------------------------------------------===##
9 $TrimRepeatedPrefix = 1;
12 my ($Cols, $Col) = @_;
13 my $LLC = $Cols->[$Col-2];
14 my $BETA = $Cols->[$Col-1];
15 return "n/a" if ($LLC eq "*" or $BETA eq "*");
16 return sprintf("%2.3f", $LLC/$BETA);
20 # These are the columns for the report. The first entry is the header for the
21 # column, the second is the regex to use to match the value. Empty list create
22 # seperators, and closures may be put in for custom processing.
25 ["Name:" , '\'([^\']+)\' Program'],
28 ["#Insts", 'LLC: *([0-9]+).*Number of machine instrs printed'],
29 ["Beta", 'LLCBETA: *([0-9]+).*Number of machine instrs printed'],
30 ["LLC/BETA" , \&SizeRatio],