[llvm-commits] [test-suite] r105407 - in /test-suite/trunk/MultiSource/Benchmarks/ASC_Sequoia/IRSmk: irsmk_input utility.c
Jakob Stoklund Olesen
stoklund at 2pi.dk
Thu Jun 3 13:37:36 PDT 2010
Author: stoklund
Date: Thu Jun 3 15:37:36 2010
New Revision: 105407
URL: http://llvm.org/viewvc/llvm-project?rev=105407&view=rev
Log:
Use hardwired constants instead of reading a small parameter file from a
hardwired filename.
This test would fail unless run from the source directory. It has probably been
failing for a long time.
Removed:
test-suite/trunk/MultiSource/Benchmarks/ASC_Sequoia/IRSmk/irsmk_input
Modified:
test-suite/trunk/MultiSource/Benchmarks/ASC_Sequoia/IRSmk/utility.c
Removed: test-suite/trunk/MultiSource/Benchmarks/ASC_Sequoia/IRSmk/irsmk_input
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/ASC_Sequoia/IRSmk/irsmk_input?rev=105406&view=auto
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/ASC_Sequoia/IRSmk/irsmk_input (original)
+++ test-suite/trunk/MultiSource/Benchmarks/ASC_Sequoia/IRSmk/irsmk_input (removed)
@@ -1,2 +0,0 @@
- 2 27 2 27 2 27 841 29
-
Modified: test-suite/trunk/MultiSource/Benchmarks/ASC_Sequoia/IRSmk/utility.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/ASC_Sequoia/IRSmk/utility.c?rev=105407&r1=105406&r2=105407&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/ASC_Sequoia/IRSmk/utility.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/ASC_Sequoia/IRSmk/utility.c Thu Jun 3 15:37:36 2010
@@ -16,15 +16,15 @@
//--------------
void readInput()
{
- FILE *fp;
- if ((fp = fopen("irsmk_input", "r"))==NULL) {
- printf("***** ERROR \n");
- printf(" Cannot open input file irsmk_input \n");
- exit(1);
- }
-
- fscanf(fp, "%d %d %d %d %d %d %d %d",
- &kmin, &kmax, &jmin, &jmax, &imin, &imax, &kp, &jp);
+ // Fixed test data.
+ kmin = 2;
+ kmax = 27;
+ jmin = 2;
+ jmax = 27;
+ imin = 2;
+ imax = 27;
+ kp = 841;
+ jp = 29;
printf("***** input \n");
printf("kmin = %8d kmax = %8d \n"
@@ -61,9 +61,6 @@
printf("***** array bounds \n");
printf("i_lb = %10d i_ub = %10d x_size = %10d \n \n \n",
i_lb, i_ub, x_size);
-
- fclose(fp);
-
}
More information about the llvm-commits
mailing list