completed knc-i1x16.h and added knc-i1x8.h with knc-i1x8unsafe_fast.h that doesnt pass several tests..

This commit is contained in:
evghenii
2013-09-18 18:14:07 +03:00
parent 0672289cb9
commit 922edb1128
4 changed files with 5961 additions and 2 deletions

View File

@@ -362,10 +362,13 @@ def run_test(testname):
gcc_isa=""
if options.target == 'generic-4':
gcc_isa = '-msse4.2'
if options.target == 'generic-8':
if (options.target == 'generic-8'):
if (options.include_file.find("knc-i1x8.h")!=-1 or options.include_file.find("knc-i1x8unsafe_fast.h")!=-1):
gcc_isa = '-mmic'
else:
gcc_isa = '-mavx'
if (options.target == 'generic-16' or options.target == 'generic-32' or options.target == 'generic-64') \
and (options.include_file.find("knc.h")!=-1 or options.include_file.find("knc2x.h")!=-1):
and (options.include_file.find("knc-i1x16.h")!=-1 or options.include_file.find("knc.h")!=-1 or options.include_file.find("knc2x.h")!=-1):
gcc_isa = '-mmic'
cc_cmd = "%s -O2 -I. %s %s test_static.cpp -DTEST_SIG=%d %s -o %s" % \