[llvm-commits] CVS: llvm/test/Programs/TEST.nightly.report

Chris Lattner lattner at cs.uiuc.edu
Wed Sep 17 17:04:01 PDT 2003


Changes in directory llvm/test/Programs:

TEST.nightly.report updated: 1.16 -> 1.17

---
Log message:

Add new GCC/CBE column


---
Diffs of the changes:

Index: llvm/test/Programs/TEST.nightly.report
diff -u llvm/test/Programs/TEST.nightly.report:1.16 llvm/test/Programs/TEST.nightly.report:1.17
--- llvm/test/Programs/TEST.nightly.report:1.16	Fri Aug 29 11:13:20 2003
+++ llvm/test/Programs/TEST.nightly.report	Wed Sep 17 17:03:10 2003
@@ -28,6 +28,16 @@
   }
 }
 
+sub GCCCBERatio {
+  my ($Cols, $Col) = @_;
+  if ($Cols->[$Col-4] ne "*" and $Cols->[$Col-5] ne "*" and
+      $Cols->[$Col-4] != "0") {
+    return sprintf("%3.2f", $Cols->[$Col-5]/$Cols->[$Col-4]);
+  } else {
+    return "n/a";
+  }
+}
+
 # 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
 # separators, and closures may be put in for custom processing.
@@ -48,4 +58,5 @@
  ["LLC"      , 'TEST-RESULT-llc-time: real\s*([.0-9m:]+)', \&FormatTime],
  ["JIT"      , 'TEST-RESULT-jit-time: real\s*([.0-9m:]+)', \&FormatTime],
  ["GCC/LLC"  , \&GCCLLCRatio]
+ ["GCC/CBE"  , \&GCCCBERatio]
 );





More information about the llvm-commits mailing list