aboutsummaryrefslogtreecommitdiff
path: root/TEST.beta-compare.report
blob: bf75708a66a0f2655dd6d5dda62761ef066134e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
##=== TEST.beta-compare.report - Compare llc vs llcbeta --------*- perl -*-===##
#
# This file defines a report to be generated for the beta-compare test.
#
##===----------------------------------------------------------------------===##

# Sort by name
$SortCol = 1;
$TrimRepeatedPrefix = 1;

sub SizeRatio {
  my ($Cols, $Col) = @_;
  my $LLC = $Cols->[$Col-2];
  my $BETA = $Cols->[$Col-1];
  return "n/a" if ($LLC eq "*" or $BETA eq "*");
  return sprintf("%2.3f", $LLC/$BETA);
}


# These are the columns for the report.  The first entry is the header for the
# column, the second is the regex to use to match the value.  Empty list create
# seperators, and closures may be put in for custom processing.
(
# Name
 ["Name:" , '\'([^\']+)\' Program'],
 [],
# Code Size
 ["#Insts", 'LLC: *([0-9]+).*Number of machine instrs printed'],
 ["Beta", 'LLCBETA: *([0-9]+).*Number of machine instrs printed'],
 ["LLC/BETA"  , \&SizeRatio],
 []
 );