summaryrefslogtreecommitdiff
path: root/ghc/misc/test-arch.c
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-01-21 18:37:51 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-01-21 18:37:51 +0000
commit47bd40986ff3c7e94ff76ab5c0e632d8fead9a39 (patch)
treedef5e5c1a7c903baa9133c555d9be617ba3ff80e /ghc/misc/test-arch.c
parent71130e6906dd3c673acd6b96220f4931451a3cc6 (diff)
downloadhaskell-47bd40986ff3c7e94ff76ab5c0e632d8fead9a39.tar.gz
rempve some unused files
Diffstat (limited to 'ghc/misc/test-arch.c')
-rw-r--r--ghc/misc/test-arch.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/ghc/misc/test-arch.c b/ghc/misc/test-arch.c
deleted file mode 100644
index d0e9666b96..0000000000
--- a/ghc/misc/test-arch.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- Compile this with GCC on a new platform, to learn various
- things about argument-passing, return-returning, stack
- layout, etc. WDP 95/05
-*/
-
-extern long int foo (long int, double, void *, char *, double, long int, char, long int);
-extern double bar (char, float, long int, long int, char *, char **);
-
-long int
-foo (long int a, double b, void *c, char *d, double e, long int f, char g, long int h)
-{
- __asm__ volatile ("--- BEGIN ---");
- bar(*d, (float) b, a, f, d, (char **) d);
- __asm__ volatile ("--- END ---");
-}
-
-double
-bar (char a, float b, long int c, long int d, char *e, char **f)
-{
- __asm__ volatile ("--- BEGIN ---");
- foo(c, (double) b, (void *) 0, e, 0.0, d, a, d);
- __asm__ volatile ("--- END ---");
-}
-
-double
-baz(w)
- int w;
-{
- int x[1000];
- int y;
-
- for(y = 0; y < 1000; y++)
- w += x[y];
-
- return ((double) w);
-}