aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-11-13 12:56:43 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-11-13 12:56:43 -0800
commit70e73f08a4dad5592ecf27d54ba73b4826b54b42 (patch)
tree150851e189b10db284cff74595bd619d12bf41d2
parent14e3d744026e3b7e45bae71739b147ac893f94ca (diff)
use safe heap in all ta2 tests, to check for alignment issues
-rw-r--r--tests/runner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 0b9e7a33..36226769 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -65,6 +65,7 @@ class RunnerCore(unittest.TestCase):
# TODO: TA2 should be able to withstand unsafe opts, and we do use I64_MODE = 1 there
LLVM_OPT_OPTS = pick_llvm_opts(optimization_level, safe=True)
+ #LLVM_OPT_OPTS = pick_llvm_opts(optimization_level, safe=Settings.USE_TYPED_ARRAYS != 2)
def prep_ll_run(self, filename, ll_file, force_recompile=False, build_ll_hook=None):
if ll_file.endswith(('.bc', '.o')):
@@ -4337,6 +4338,7 @@ class %s(T):
Settings.TOTAL_MEMORY = Settings.FAST_MEMORY = None
if Settings.USE_TYPED_ARRAYS == 2:
Settings.I64_MODE = 1
+ Settings.SAFE_HEAP = 1 # only checks for alignment problems, which is very important with unsafe opts
if Settings.QUANTUM_SIZE == 1 or Settings.USE_TYPED_ARRAYS == 2:
Settings.RELOOP = 0 # XXX Would be better to use this, but it isn't really what we test in these cases, and is very slow