Subzero: give crosstest .sz intermediate files names that depend on flags

Currently only the output has a unique name (supplied by the invocation),
but the intermediate files (.sz.s, .sz.o) can get overwritten (w/ different
optlevels, or targets).

Would be nice to keep them around for debugging. (bug may happen
for Om1 but not O2).

BUG=none
R=stichnot@chromium.org

Review URL: https://codereview.chromium.org/333713004
diff --git a/crosstest/crosstest.py b/crosstest/crosstest.py
index e835193..a37b10f 100755
--- a/crosstest/crosstest.py
+++ b/crosstest/crosstest.py
@@ -82,8 +82,9 @@
                 f.write(line)
             f.close()
 
-        asm_sz = os.path.join(args.dir, base + '.sz.s')
-        obj_sz = os.path.join(args.dir, base + '.sz.o')
+        base_sz = '%s.O%s.%s' % (base, args.optlevel, args.target)
+        asm_sz = os.path.join(args.dir, base_sz + '.sz.s')
+        obj_sz = os.path.join(args.dir, base_sz + '.sz.o')
         obj_llc = os.path.join(args.dir, base + '.llc.o')
         shellcmd(['../llvm2ice',
                   '-O' + args.optlevel,