[llvm-commits] CVS: llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c
Reid Spencer
reid at x10sys.com
Sat Nov 25 09:51:16 PST 2006
Changes in directory llvm-test/SingleSource/Benchmarks/Misc:
richards_benchmark.c updated: 1.3 -> 1.4
---
Log message:
Make this program detect its own success and report success/fail through
its exit code.
Patch by Anton Korobeynikov.
---
Diffs of the changes: (+13 -7)
richards_benchmark.c | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
Index: llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c
diff -u llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c:1.3 llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c:1.4
--- llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c:1.3 Tue Aug 30 12:49:18 2005
+++ llvm-test/SingleSource/Benchmarks/Misc/richards_benchmark.c Sat Nov 25 11:51:02 2006
@@ -22,8 +22,9 @@
#include <stdlib.h>
#define Count 10000*1000
-#define Qpktcountval 2326410
-#define Holdcountval 930563
+#define Qpktcountval 23263894
+#define Holdcountval 9305557
+
#define TRUE 1
#define FALSE 0
@@ -343,6 +344,7 @@
int main()
{
struct packet *wkq = 0;
+ int retval;
printf("Bench mark starting\n");
@@ -386,11 +388,15 @@
qpktcount, holdcount);
printf("These results are ");
- if (qpktcount == Qpktcountval && holdcount == Holdcountval)
- printf("correct");
- else printf("incorrect");
-
+ if (qpktcount == Qpktcountval && holdcount == Holdcountval) {
+ printf("correct");
+ retval = 0;
+ } else {
+ printf("incorrect");
+ retval = 1;
+ }
+
printf("\nend of run\n");
- return 0;
+ return retval;
}
More information about the llvm-commits
mailing list