diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-08 11:43:21 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-08 11:43:21 -0800 |
commit | 6a95326c3b8f577652457a3f5f410cb70fce587c (patch) | |
tree | 87b915d968b29b8ef16dbda0f76e89730a9c07c3 /tests | |
parent | c23a8a7d29effb37a00c3eb161c22d2027566187 (diff) |
fix and enable other.test_simd on fastcomp
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_other.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_other.py b/tests/test_other.py index 3f9bd93c..c5f0c583 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -2150,17 +2150,17 @@ int main() self.assertContained('File size: 722', out) def test_simd(self): - if os.environ.get('EMCC_FAST_COMPILER') == '1': return self.skip('todo in fastcomp') - if get_clang_version() == '3.2': - simd_args = ['-O3', '-vectorize', '-vectorize-loops', '-bb-vectorize-vector-bits=128', '-force-vector-width=4'] + simd_args = ['-O3', '-vectorize', '-vectorize-loops'] elif get_clang_version() == '3.3': - simd_args = ['-O3', '-vectorize-loops', '-vectorize-slp', '-vectorize-slp-aggressive'] + simd_args = ['-O3', '-vectorize-loops', '-vectorize-slp-aggressive', '-bb-vectorize-aligned-only'] # XXX this generates <2 x float> , '-vectorize-slp'] elif get_clang_version() == '3.4': simd_args = ['-O3'] # vectorization on by default, SIMD=1 makes us not disable it else: raise Exception('unknown llvm version') + simd_args += ['-bb-vectorize-vector-bits=128', '-force-vector-width=4'] + self.clear() Popen([PYTHON, EMCC, path_from_root('tests', 'linpack.c'), '-O2', '-s', 'SIMD=1', '-DSP', '--llvm-opts', str(simd_args)]).communicate() self.assertContained('Unrolled Single Precision', run_js('a.out.js')) |