aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/instr
diff options
context:
space:
mode:
Diffstat (limited to 'test/mppa/instr')
-rw-r--r--test/mppa/instr/framework.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/mppa/instr/framework.h b/test/mppa/instr/framework.h
index f6077c46..52ba97bc 100644
--- a/test/mppa/instr/framework.h
+++ b/test/mppa/instr/framework.h
@@ -3,6 +3,17 @@
#include "../prng/prng.c"
+#define BEGIN_TEST_N(type, N)\
+ int main(void){\
+ type t[N], c, i, j, S;\
+ srand(0);\
+ S = 0;\
+ for (i = 0 ; i < 100 ; i++){\
+ c = randlong();\
+ for (j = 0 ; j < N ; j++)\
+ t[j] = randlong();\
+ /* END BEGIN_TEST_N */
+
#define BEGIN_TEST(type)\
int main(void){\
type a, b, c, i, S;\