aboutsummaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorNingxin Hu <ningxin.hu@intel.com>2014-06-04 08:57:00 +0800
committerNingxin Hu <ningxin.hu@intel.com>2014-06-04 08:57:43 +0800
commit9bce5fec791ed44199a2873ffdef67a94e392462 (patch)
tree6e6bb371dd433f854bb387735baa92b4171c56b6 /tests/test_core.py
parent3b6cd16ed015e90fa54127a903343e7bf65c86ce (diff)
Add test case for phi node handling in SIMD path
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index bcb03830..b9057f4e 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -4892,6 +4892,15 @@ return malloc(size);
self.do_run_from_file(src, output)
+ def test_simd4(self):
+ # test_simd4 is to test phi node handling of SIMD path
+ if Settings.ASM_JS: Settings.ASM_JS = 2 # does not validate
+
+ test_path = path_from_root('tests', 'core', 'test_simd4')
+ src, output = (test_path + s for s in ('.in', '.out'))
+
+ self.do_run_from_file(src, output)
+
def test_gcc_unmangler(self):
if os.environ.get('EMCC_FAST_COMPILER') == '0': Settings.NAMED_GLOBALS = 1 # test coverage for this; fastcomp never names globals