Update run_tests and examples makefile for scalar target.

Fixed a number of tests that didn't handle the programCount == 1
case correctly.
This commit is contained in:
Matt Pharr
2012-01-29 16:22:25 -08:00
parent f6cd01f7cf
commit 0575b1f38d
64 changed files with 168 additions and 107 deletions

View File

@@ -53,7 +53,8 @@ if not is_windows:
else:
ispc_exe = "../Release/ispc.exe"
is_generic_target = options.target.find("generic-") != -1
is_generic_target = (options.target.find("generic-") != -1 and
options.target != "generic-1")
if is_generic_target and options.include_file == None:
if options.target == "generic-4":
sys.stderr.write("No generics #include specified; using examples/intrinsics/sse4.h\n")
@@ -224,7 +225,7 @@ def run_test(filename):
"in test %s\n" % filename)
return (1, 0)
else:
is_generic_target = options.target.find("generic-") != -1
global is_generic_target
if is_generic_target:
obj_name = "%s.cpp" % filename