Commit f53c3881 authored by Simon Peyton Jones's avatar Simon Peyton Jones

Merge branch 'master' of http://darcs.haskell.org/testsuite

parents b1b2433e 84a7666d
{-# OPTIONS_GHC -fno-ignore-interface-pragmas -fasm #-}
{-# OPTIONS_GHC -fno-ignore-interface-pragmas #-}
-- This test breaks the linear register allocator when compiled the
-- flags -fnew-codegen, -fPIC and -dynamic, running out of stack
......
#include "Cmm.h"
g5149
{
jump %ENTRY_CODE(Sp(0));
}
/* This code is carefully arranged to tickle the bug reported in #5149 */
f5149
{
......@@ -23,7 +28,3 @@ f5149
RET_N(TO_W_(%f2i32(z)));
}
g5149
{
jump %ENTRY_CODE(Sp(0));
}
......@@ -20,6 +20,8 @@ ghcilink001 :
ifeq "$(WINDOWS)" "YES"
DLL = $1.dll
else ifeq "$(DARWIN)" "YES"
DLL = lib$1.dylib
else
DLL = lib$1.so
endif
......
......@@ -27,10 +27,11 @@ test('T1969',
# 221667908 (x86/OS X)
if_wordsize(64,
compiler_stats_num_field('bytes allocated', 420000000,
550000000)),
580000000)),
# 17/11/2009: 434,845,560 (amd64/Linux)
# 08/12/2009: 459,776,680 (amd64/Linux)
# 17/05/2010: 519,377,728 (amd64/Linux)
# 05/08/2011: 561,382,568 (amd64/OS X)
only_ways(['normal'])
],
compile,
......@@ -79,16 +80,18 @@ test('T4801',
if_wordsize(32,
compiler_stats_num_field('peak_megabytes_allocated', 30, 40)),
# expected value: 66 (amd64/Linux):
# expected value: 72 (amd64/OS X):
if_wordsize(64,
compiler_stats_num_field('peak_megabytes_allocated', 55, 70)),
compiler_stats_num_field('peak_megabytes_allocated', 55, 75)),
# expected value: 353463196 (x86/Windows)
if_wordsize(32,
compiler_stats_num_field('bytes allocated', 330000000,
370000000)),
# expected value: 145038576 (amd64/Linux):
# expected value: 145038576 (amd64/Linux): ?? makes no sense -=chak
# expected value: 813714032 (amd64/OS X):
if_wordsize(64,
compiler_stats_num_field('bytes allocated', 600000000,
750000000)),
850000000)),
# expected value: 14181360 (x86/Linux)
if_wordsize(32,
compiler_stats_num_field('max_bytes_used', 11000000,
......@@ -114,7 +117,7 @@ test('T3064',
# expected value: 56380288 (x86/Linux) (28/6/2011)
if_wordsize(32,
compiler_stats_num_field('bytes allocated', 50000000,
63000000)),
70000000)),
# expected value: 108937496 (amd64/Linux) (28/6/2011):
if_wordsize(64,
compiler_stats_num_field('bytes allocated', 110000000,
......@@ -151,3 +154,17 @@ test('T5030',
compile,
['-fcontext-stack=300'])
test('parsing001',
[# expected value: ?
if_wordsize(32,
compiler_stats_num_field('bytes allocated', 260000000,
300000000)),
# expected value: 587079016 (amd64/Linux):
if_wordsize(64,
compiler_stats_num_field('bytes allocated', 540000000,
600000000)),
only_ways(['normal']),
],
compile_fail, [''])
This diff is collapsed.
parsing001.hs:3:1:
Failed to load interface for `Wibble'
Use -v to see a list of the files searched for.
......@@ -35,7 +35,8 @@ test('divbyzero',
if_platform('i386-unknown-mingw32', exit_code(1))]),
compile_and_run, [''])
test('outofmem', normal, run_command, ['$MAKE -s --no-print-directory outofmem'])
test('outofmem', if_os('darwin', skip),
run_command, ['$MAKE -s --no-print-directory outofmem'])
test('outofmem2', extra_run_opts('+RTS -M5m -RTS'),
run_command, ['$MAKE -s --no-print-directory outofmem2'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment