From 40af8d6ed564cc5970786459587ecdc487a1fc44 Mon Sep 17 00:00:00 2001 From: Evghenii Date: Thu, 12 Sep 2013 20:25:44 +0200 Subject: [PATCH] fixed segfault in tests/launch-*.ispc. nativeVectoWidth in avx-i64x4 was set to 4. Fixed --- ispc.cpp | 2 +- run_tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ispc.cpp b/ispc.cpp index 046c64c4..1a99154b 100644 --- a/ispc.cpp +++ b/ispc.cpp @@ -448,7 +448,7 @@ Target::Target(const char *arch, const char *cpu, const char *isa, bool pic) : } else if (!strcasecmp(isa, "avx-i64x4") ) { this->m_isa = Target::AVX; - this->m_nativeVectorWidth = 4; + this->m_nativeVectorWidth = 8; /* native vector width in terms of floats */ this->m_vectorWidth = 4; this->m_attributes = "+avx,+popcnt,+cmov"; this->m_maskingIsFree = false; diff --git a/run_tests.py b/run_tests.py index 180205a0..9729930f 100755 --- a/run_tests.py +++ b/run_tests.py @@ -75,7 +75,7 @@ if not os.path.exists(ispc_exe): sys.stderr.write("Fatal error: missing ispc compiler: %s\n" % ispc_exe) sys.exit() -ispc_exe += " -g " + options.ispc_flags +ispc_exe += " " + options.ispc_flags if __name__ == '__main__': sys.stdout.write("ispc compiler: %s\n" % ispc_exe)